|
|
@@ -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.start_time >= #{start_date} AND t.end_time < #{end_date}
|
|
|
</if>
|
|
|
<if test="dept_id!=null">
|
|
|
AND t.checked_dept =#{dept_id}
|
|
|
@@ -35,7 +35,7 @@
|
|
|
FROM check_task t left join t_sys_users u on t.checked_person = u.id
|
|
|
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.start_time >= #{start_date} AND t.end_time < #{end_date}
|
|
|
</if>
|
|
|
<if test="position_ids != null and position_ids.size() > 0">
|
|
|
AND u.positionid in
|
|
|
@@ -54,7 +54,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.start_time >= #{start_date} AND ct.end_time < #{end_date}
|
|
|
</if>
|
|
|
GROUP BY t.checked_dept,t.checked_person
|
|
|
</select>
|
|
|
@@ -67,7 +67,7 @@
|
|
|
LEFT JOIN t_sys_users uu on t.checked_person = uu.id
|
|
|
WHERE 1=1 and ct.check_status!=22 and ci.score is not null
|
|
|
<if test="start_date!=null and end_date != null">
|
|
|
- AND ct.start_time >= #{start_date} AND ct.end_time <= #{end_date}
|
|
|
+ AND ct.start_time >= #{start_date} AND ct.end_time < #{end_date}
|
|
|
</if>
|
|
|
<if test="position_ids != null and position_ids.size() > 0">
|
|
|
AND uu.positionid in
|