|
@@ -13,7 +13,7 @@
|
|
|
group by dept_id
|
|
|
</select>
|
|
|
<select id="groupByMonth" resultType="com.fdkankan.fusion.response.DataGroupVo">
|
|
|
- SELECT DATE_FORMAT(create_time,'%Y-%m') AS groupKey,count(1) AS dataCount FROM tm_project WHERE is_delete = 0
|
|
|
+ SELECT DATE_FORMAT(accident_date,'%Y-%m') AS groupKey,count(1) AS dataCount FROM tm_project WHERE is_delete = 0
|
|
|
<if test="deptIds != null and deptIds.size >0">
|
|
|
and dept_id in
|
|
|
<foreach item="deptId" collection="deptIds" open="(" separator="," close=")">
|
|
@@ -21,10 +21,10 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="startTime !=null and startTime !='' ">
|
|
|
- and create_time >= #{startTime}
|
|
|
+ and accident_date >= #{startTime}
|
|
|
</if>
|
|
|
<if test="endTime !=null and endTime !='' ">
|
|
|
- and create_time <= #{endTime}
|
|
|
+ and accident_date <= #{endTime}
|
|
|
</if>
|
|
|
GROUP BY groupKey
|
|
|
</select>
|
|
@@ -53,10 +53,10 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="startTime !=null and startTime !='' ">
|
|
|
- and create_time >= #{startTime}
|
|
|
+ and accident_date >= #{startTime}
|
|
|
</if>
|
|
|
<if test="endTime !=null and endTime !='' ">
|
|
|
- and create_time <= #{endTime}
|
|
|
+ and accident_date <= #{endTime}
|
|
|
</if>
|
|
|
group by fire_reason
|
|
|
</select>
|