Browse Source

ExamTaskDetail去掉cardId

wangliang 2 years ago
parent
commit
5a49ec010b

+ 5 - 5
distributed-print-business/src/main/resources/mapper/ExamCardMapper.xml

@@ -102,9 +102,9 @@
             c.paper_type paperType
         FROM
             exam_card a
-                LEFT JOIN
+                JOIN
             exam_card_detail b ON a.id = b.card_id
-                LEFT JOIN
+                JOIN
             exam_task_detail c ON FIND_IN_SET(a.id, REPLACE(substring_index(substring_index(CONVERT((c.paper_attachment_ids ->>'$[*].cardId')
                                                                                                     USING utf8), ']', 1), '[',-1),'"',''))
         where a.id = #{cardId}
@@ -167,12 +167,12 @@
             d.content
         FROM
             exam_task a
-                LEFT JOIN
+                JOIN
             exam_task_detail b ON a.id = b.exam_task_id
-                LEFT JOIN
+                JOIN
             exam_card c ON FIND_IN_SET(c.id, REPLACE(substring_index(substring_index(CONVERT((b.paper_attachment_ids ->>'$[*].cardId')
                                                                                              USING utf8), ']', 1), '[',-1),'"',''))
-                LEFT JOIN
+                JOIN
             exam_card_detail d ON c.id = d.card_id
         WHERE
             a.school_id = #{schoolId}

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

@@ -617,14 +617,14 @@
             f.status as flowStatus
         FROM
             exam_task e
-                LEFT JOIN
+                JOIN
             exam_task_detail a on a.exam_task_id = e.id
-                LEFT JOIN
+                JOIN
             exam_task_paper_log c ON a.exam_task_id = c.exam_task_id and c.review = false
-                LEFT JOIN
+                JOIN
             exam_card b ON FIND_IN_SET(b.id, REPLACE(substring_index(substring_index(CONVERT((a.paper_attachment_ids ->>'$[*].cardId')
                                                                                              USING utf8), ']', 1), '[',-1),'"',''))
-                left join
+                join
             exam_card d on c.card_id = d.id
                 left join
             t_f_flow_approve f on e.flow_id = f.flow_id