|
@@ -50,7 +50,7 @@
|
|
|
FROM
|
|
|
exam_card a
|
|
|
LEFT JOIN
|
|
|
- exam_task_detail b ON FIND_IN_SET(a.id, REPLACE(substring_index(substring_index(CONVERT((b.paper_attachment_ids ->>'$[*].cardId') USING utf8), ']', 1), '[',-1),'"',''))
|
|
|
+ exam_task_detail b ON FIND_IN_SET(a.id, REPLACE(REPLACE(substring_index(substring_index(CONVERT((b.paper_attachment_ids ->>'$[*].cardId') USING utf8), ']', 1), '[',-1),' "','"'),'"',''))
|
|
|
LEFT JOIN
|
|
|
exam_task c ON b.exam_task_id = c.id
|
|
|
LEFT JOIN
|
|
@@ -182,8 +182,7 @@
|
|
|
left JOIN
|
|
|
exam_task_detail b ON a.id = b.exam_task_id
|
|
|
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),'"',''))
|
|
|
+ exam_card c ON FIND_IN_SET(c.id, REPLACE(REPLACE(substring_index(substring_index(CONVERT((b.paper_attachment_ids ->>'$[*].cardId') USING utf8), ']', 1), '[',-1),' "','"'),'"',''))
|
|
|
left JOIN
|
|
|
exam_card_detail d ON c.id = d.card_id
|
|
|
WHERE
|
|
@@ -244,7 +243,7 @@
|
|
|
exam_task_detail b
|
|
|
LEFT JOIN exam_task et on b.exam_task_id = et.id
|
|
|
WHERE
|
|
|
- et.paper_number = #{paperNumber} and et.status = 'STAGE' and FIND_IN_SET(a.id, REPLACE(substring_index(substring_index(CONVERT((b.paper_attachment_ids ->>'$[*].cardId') USING utf8), ']', 1), '[',-1),'"','')))
|
|
|
+ et.paper_number = #{paperNumber} and et.status = 'STAGE' and FIND_IN_SET(a.id, REPLACE(REPLACE(substring_index(substring_index(CONVERT((b.paper_attachment_ids ->>'$[*].cardId') USING utf8), ']', 1), '[',-1),' "','"'),'"','')))
|
|
|
order by a.create_time desc
|
|
|
</select>
|
|
|
</mapper>
|