|
@@ -7,7 +7,7 @@
|
|
|
SELECT t.checked_person , t.checked_dept,ci.parent_id, ci.score FROM check_score t
|
|
SELECT t.checked_person , t.checked_dept,ci.parent_id, ci.score FROM check_score t
|
|
|
LEFT JOIN check_item ci ON t.check_item_id = ci.id
|
|
LEFT JOIN check_item ci ON t.check_item_id = ci.id
|
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
|
- WHERE 1=1 and ct.check_status!=22
|
|
|
|
|
|
|
+ WHERE 1=1 and ct.check_status!=23
|
|
|
<if test="start_date!=null and end_date != null">
|
|
<if test="start_date!=null and end_date != null">
|
|
|
AND ct.start_time >= #{start_date} AND ct.end_time <= #{end_date} AND ct.check_status != 23
|
|
AND ct.start_time >= #{start_date} AND ct.end_time <= #{end_date} AND ct.check_status != 23
|
|
|
</if>
|
|
</if>
|
|
@@ -20,7 +20,7 @@
|
|
|
|
|
|
|
|
<select id="selectCheckedTimes" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="com.xintong.visualinspection.bean.StatisticsBean">
|
|
<select id="selectCheckedTimes" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="com.xintong.visualinspection.bean.StatisticsBean">
|
|
|
SELECT COUNT(1) AS checked_num , t.checked_person AS user_id FROM check_task t
|
|
SELECT COUNT(1) AS checked_num , t.checked_person AS user_id FROM check_task t
|
|
|
- WHERE 1=1 and t.check_status!=22
|
|
|
|
|
|
|
+ WHERE 1=1 and t.check_status!=23
|
|
|
<if test="start_date!=null and end_date != null">
|
|
<if test="start_date!=null and end_date != null">
|
|
|
AND t.start_time >= #{start_date} AND t.end_time <= #{end_date} AND t.check_status != 23
|
|
AND t.start_time >= #{start_date} AND t.end_time <= #{end_date} AND t.check_status != 23
|
|
|
</if>
|
|
</if>
|
|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
|
|
<select id="selectFeeStationCheckNum" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="com.xintong.visualinspection.bean.StatisticsBean">
|
|
<select id="selectFeeStationCheckNum" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="com.xintong.visualinspection.bean.StatisticsBean">
|
|
|
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
|
|
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 and t.check_status!=22
|
|
|
|
|
|
|
+ WHERE 1=1 and t.check_status!=23
|
|
|
<if test="start_date!=null and end_date != null">
|
|
<if test="start_date!=null and end_date != null">
|
|
|
AND t.start_time >= #{start_date} AND t.end_time <= #{end_date} AND t.check_status != 23
|
|
AND t.start_time >= #{start_date} AND t.end_time <= #{end_date} AND t.check_status != 23
|
|
|
</if>
|
|
</if>
|
|
@@ -44,7 +44,7 @@
|
|
|
FROM check_score t
|
|
FROM check_score t
|
|
|
LEFT JOIN check_item c ON t.check_item_id = c.id
|
|
LEFT JOIN check_item c ON t.check_item_id = c.id
|
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
|
- WHERE 1=1 and ct.check_status!=22
|
|
|
|
|
|
|
+ WHERE 1=1 and ct.check_status!=23
|
|
|
<if test="start_date!=null and end_date != null">
|
|
<if test="start_date!=null and end_date != null">
|
|
|
AND ct.start_time >= #{start_date} AND ct.end_time <= #{end_date} AND ct.check_status != 23
|
|
AND ct.start_time >= #{start_date} AND ct.end_time <= #{end_date} AND ct.check_status != 23
|
|
|
</if>
|
|
</if>
|
|
@@ -56,7 +56,7 @@
|
|
|
SELECT t.checked_dept,ci.parent_id, ci.score FROM check_score t
|
|
SELECT t.checked_dept,ci.parent_id, ci.score FROM check_score t
|
|
|
LEFT JOIN check_item ci ON t.check_item_id = ci.id
|
|
LEFT JOIN check_item ci ON t.check_item_id = ci.id
|
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
|
- WHERE 1=1 and ct.check_status!=22
|
|
|
|
|
|
|
+ WHERE 1=1 and ct.check_status!=23
|
|
|
<if test="start_date!=null and end_date != null">
|
|
<if test="start_date!=null and end_date != null">
|
|
|
AND ct.start_time >= #{start_date} AND ct.end_time <= #{end_date} AND ct.check_status != 23
|
|
AND ct.start_time >= #{start_date} AND ct.end_time <= #{end_date} AND ct.check_status != 23
|
|
|
</if> )
|
|
</if> )
|
|
@@ -188,5 +188,4 @@
|
|
|
GROUP BY m.parent_id
|
|
GROUP BY m.parent_id
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
</mapper>
|
|
</mapper>
|