|
|
@@ -347,7 +347,7 @@
|
|
|
|
|
|
<select id="selectFsWork" parameterType="com.xintong.visualinspection.bean.StatisticsFsWork" resultMap="statisticsFsWork">
|
|
|
SELECT t.* , ct.id AS check_id FROM sys_user_class t
|
|
|
- LEFT JOIN check_task ct ON t.id = ct.user_class_id AND ct.check_status != 22
|
|
|
+ LEFT JOIN check_task ct ON t.id = ct.user_class_id AND ct.check_status != 22 AND t.class_type = ct.class_type AND t.user_id = ct.checked_person
|
|
|
WHERE 1=1
|
|
|
<include refid="select_Fswork_condition" />
|
|
|
ORDER BY t.work_date , t.user_id
|
|
|
@@ -363,7 +363,7 @@
|
|
|
|
|
|
<select id="selectFsUnregularWork" parameterType="com.xintong.visualinspection.bean.StatisticsFsWork" resultMap="statisticsFsWork">
|
|
|
SELECT t.* , ct.id AS check_id FROM sys_user_class_unregular t
|
|
|
- LEFT JOIN check_task ct ON t.id = ct.user_class_unregular_id AND ct.check_status != 22
|
|
|
+ LEFT JOIN check_task ct ON t.id = ct.user_class_unregular_id AND ct.check_status != 22 AND t.class_type = ct.class_type AND t.user_id = ct.checked_person
|
|
|
WHERE 1=1
|
|
|
<include refid="select_Fswork_condition" />
|
|
|
ORDER BY t.work_date
|