|
|
@@ -30,7 +30,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectFeeStationCheckNum" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="com.xintong.visualinspection.bean.StatisticsBean">
|
|
|
- SELECT COUNT(DISTINCT( t.checked_person )) AS check_num ,t.checked_dept AS dept_id FROM check_task t
|
|
|
+ SELECT COUNT(DISTINCT( t.checked_person )) AS checked_people_num , COUNT(t.checked_person) AS checked_num ,t.checked_dept AS dept_id FROM check_task t
|
|
|
WHERE 1=1
|
|
|
<if test="start_date!=null and end_date != null">
|
|
|
AND t.start_time >= #{start_date} AND t.end_time <= #{end_date}
|
|
|
@@ -43,7 +43,7 @@
|
|
|
FROM check_score t
|
|
|
WHERE 1=1
|
|
|
<if test="start_date!=null and end_date != null">
|
|
|
- AND t.start_time >= #{start_date} AND t.end_time <= #{end_date}
|
|
|
+ AND t.update_time >= #{start_date} AND t.update_time <= #{end_date}
|
|
|
</if>
|
|
|
GROUP BY t.checked_dept,t.checked_person
|
|
|
</select>
|
|
|
@@ -54,7 +54,7 @@
|
|
|
LEFT JOIN check_item ci ON t.check_item_id = ci.id
|
|
|
WHERE 1=1
|
|
|
<if test="start_date!=null and end_date != null">
|
|
|
- AND t.start_time >= #{start_date} AND t.end_time <= #{end_date}
|
|
|
+ AND t.update_time >= #{start_date} AND t.update_time <= #{end_date}
|
|
|
</if> )
|
|
|
u LEFT JOIN check_item s ON u.parent_id = s.id GROUP BY dept_id,item_id
|
|
|
</select>
|