|
@@ -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}
|