|
@@ -5,10 +5,10 @@
|
|
<select id="groupByDeptId" resultType="com.fdkankan.fusion.response.DataGroupVo">
|
|
<select id="groupByDeptId" resultType="com.fdkankan.fusion.response.DataGroupVo">
|
|
select dept_id as groupKey ,count(1) as dataCount from tm_project where is_delete = 0
|
|
select dept_id as groupKey ,count(1) as dataCount from tm_project where is_delete = 0
|
|
<if test="startTime !=null and startTime !='' ">
|
|
<if test="startTime !=null and startTime !='' ">
|
|
- and create_time >= #{startTime}
|
|
|
|
|
|
+ and accident_date >= #{startTime}
|
|
</if>
|
|
</if>
|
|
<if test="endTime !=null and endTime !='' ">
|
|
<if test="endTime !=null and endTime !='' ">
|
|
- and create_time <= #{endTime}
|
|
|
|
|
|
+ and accident_date <= #{endTime}
|
|
</if>
|
|
</if>
|
|
group by dept_id
|
|
group by dept_id
|
|
</select>
|
|
</select>
|