|
|
@@ -9,7 +9,7 @@
|
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
|
WHERE 1=1 and ct.check_status!=22
|
|
|
<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}
|
|
|
</if>
|
|
|
<if test="dept_id!=null">
|
|
|
AND t.checked_dept =#{dept_id}
|
|
|
@@ -22,7 +22,7 @@
|
|
|
SELECT COUNT(1) AS checked_num , t.checked_person AS user_id FROM check_task t
|
|
|
WHERE 1=1 and t.check_status!=22
|
|
|
<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}
|
|
|
</if>
|
|
|
<if test="dept_id!=null">
|
|
|
AND t.checked_dept =#{dept_id}
|
|
|
@@ -34,7 +34,7 @@
|
|
|
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
|
|
|
<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}
|
|
|
</if>
|
|
|
GROUP BY t.checked_dept
|
|
|
</select>
|
|
|
@@ -46,7 +46,7 @@
|
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
|
WHERE 1=1 and ct.check_status!=22
|
|
|
<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}
|
|
|
</if>
|
|
|
GROUP BY t.checked_dept,t.checked_person
|
|
|
</select>
|
|
|
@@ -58,7 +58,7 @@
|
|
|
LEFT JOIN check_task ct ON ct.id = t.task_id
|
|
|
WHERE 1=1 and ct.check_status!=22
|
|
|
<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}
|
|
|
</if> )
|
|
|
u LEFT JOIN check_item s ON u.parent_id = s.id GROUP BY dept_id,item_id
|
|
|
</select>
|
|
|
@@ -77,7 +77,7 @@
|
|
|
check_score m
|
|
|
WHERE
|
|
|
t.id = m.task_id
|
|
|
- AND t.check_status != 23
|
|
|
+ AND t.check_status != 22
|
|
|
AND t.checked_person IS NOT NULL
|
|
|
<if test="start_date !=null">
|
|
|
AND t.start_time >= #{start_date}
|
|
|
@@ -102,7 +102,7 @@
|
|
|
check_task t
|
|
|
WHERE
|
|
|
t.checked_person IS NOT NULL
|
|
|
- AND t.check_status != 23
|
|
|
+ AND t.check_status != 22
|
|
|
<if test="start_date !=null">
|
|
|
AND t.start_time >= #{start_date}
|
|
|
</if>
|
|
|
@@ -183,7 +183,7 @@
|
|
|
) t
|
|
|
LEFT JOIN check_item ci ON t.parent_id = ci.id
|
|
|
) m ON t.id = m.task_id
|
|
|
- where t.check_status !=23
|
|
|
+ where t.check_status !=22
|
|
|
AND monthfunc( t.start_time ) = #{mth}
|
|
|
GROUP BY m.parent_id
|
|
|
</select>
|