Explorar o código

命题任务禁用后,流程待办能看见bug修复

xiaof %!s(int64=3) %!d(string=hai) anos
pai
achega
4a81d89495

+ 4 - 2
distributed-print-business/src/main/resources/mapper/ExamTaskMapper.xml

@@ -879,7 +879,8 @@
             LEFT JOIN exam_task_detail det ON
             LEFT JOIN exam_task_detail det ON
                 det.exam_task_id = et.id
                 det.exam_task_id = et.id
             where
             where
-                 art.ASSIGNEE_ = cast(#{userId} as char)
+                et.enable = true
+                and art.ASSIGNEE_ = cast(#{userId} as char)
                 and et.school_id = #{schoolId}
                 and et.school_id = #{schoolId}
             UNION all
             UNION all
                     select
                     select
@@ -935,7 +936,8 @@
             LEFT JOIN exam_task_detail det ON
             LEFT JOIN exam_task_detail det ON
                     det.exam_task_id = et.id
                     det.exam_task_id = et.id
             where
             where
-                art.ASSIGNEE_ is null
+                  et.enable = true
+                and art.ASSIGNEE_ is null
                 and ari.USER_ID_ = cast(#{userId} as char)
                 and ari.USER_ID_ = cast(#{userId} as char)
                 and ari.TYPE_ = 'candidate'
                 and ari.TYPE_ = 'candidate'
                 and et.school_id = #{schoolId}
                 and et.school_id = #{schoolId}