Commit bb7477f1 by 阳浪

问卷参数统计

parent e17cd5e5
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
select count(1) num ,DATE_FORMAT(create_time, '%m' ) subType from publication where dept_name=#{deptName} select count(1) num ,DATE_FORMAT(create_time, '%m' ) subType from publication where dept_name=#{deptName}
<if test="typeId!=null"> <if test="typeId!=null">
and type_one = #{typeId} and (type_one = #{typeId} or type_two = #{typeId} )
</if> </if>
and create_time >= DATE_SUB(NOW(), INTERVAL 4 MONTH) and create_time >= DATE_SUB(NOW(), INTERVAL 4 MONTH)
group by DATE_FORMAT( create_time, '%m' ) group by DATE_FORMAT( create_time, '%m' )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment