ソースを参照

bug - 待办任务查询创建时间

caozixuan 3 年 前
コミット
95ecaa2aaa

+ 9 - 3
distributed-print-business/src/main/resources/mapper/ExamTaskMapper.xml

@@ -780,7 +780,7 @@
                 tffa.status,
                 tffa.status auditStatus,
                 et.enable,
-                et.update_time createTime,
+                det.create_time as createTime,
                 art.EXECUTION_ID_ as executionId,
                 et.flow_id as flowId,
                 art.NAME_ as taskName,
@@ -805,6 +805,8 @@
                 et.user_id= d.id
             LEFT JOIN
                 sys_org so ON et.teaching_room_id = so.id
+            LEFT JOIN exam_task_detail det ON
+                det.exam_task_id = et.id
             where
                  art.ASSIGNEE_ = cast(#{userId} as char)
                 and et.school_id = #{schoolId}
@@ -829,7 +831,7 @@
                 tffa.status,
                 tffa.status auditStatus,
                 et.enable,
-                et.update_time createTime,
+                det.create_time as createTime,
                 art.EXECUTION_ID_ as executionId,
                 et.flow_id as flowId,
                 art.NAME_ as taskName,
@@ -856,6 +858,8 @@
                     et.user_id= d.id
             LEFT JOIN
                 sys_org so ON et.teaching_room_id = so.id
+            LEFT JOIN exam_task_detail det ON
+                    det.exam_task_id = et.id
             where
                 art.ASSIGNEE_ is null
                 and ari.USER_ID_ = cast(#{userId} as char)
@@ -882,7 +886,7 @@
                 et.flowStatus as status,
                 et.flowStatus as auditStatus,
                 et.enable,
-                et.update_time createTime,
+                det.create_time as createTime,
                 et.EXECUTION_ID_ as executionId,
                 et.flow_id as flowId,
                 et.NAME_ as taskName,
@@ -923,6 +927,8 @@
                 et.card_rule_id = b.id
             left join sys_user c ON
                 et.userId = c.id
+            LEFT JOIN exam_task_detail det ON
+                    det.exam_task_id = et.id
             LEFT JOIN
                 sys_org so ON et.teaching_room_id = so.id) t order by t.createTime desc
     </select>