Przeglądaj źródła

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

xiaof 3 lat temu
rodzic
commit
4a81d89495

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

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