|
@@ -1327,7 +1327,8 @@
|
|
(
|
|
(
|
|
select distinct
|
|
select distinct
|
|
et.id,
|
|
et.id,
|
|
- GROUP_CONCAT(distinct bc.name, '(', bc.code, ')') as courseNameCode,
|
|
+ bc.name as courseName,
|
|
|
|
+ bc.code as courseCode,
|
|
et.paper_number as paperNumber,
|
|
et.paper_number as paperNumber,
|
|
replace(substring_index(substring_index(convert((etd.paper_attachment_ids ->>'$[*].cardId') using utf8), ']', 1), '[',-1), '"', '') as cardId,
|
|
replace(substring_index(substring_index(convert((etd.paper_attachment_ids ->>'$[*].cardId') using utf8), ']', 1), '[',-1), '"', '') as cardId,
|
|
so.name as college,
|
|
so.name as college,
|
|
@@ -1384,8 +1385,7 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- </where>
|
|
+ </where>) t
|
|
- group by et.id,bc.name,bc.code,et.paper_number) t
|
|
|
|
left join exam_card ec on ec.id = t.cardId
|
|
left join exam_card ec on ec.id = t.cardId
|
|
<where>
|
|
<where>
|
|
<if test="cardType != null and cardType != ''">
|
|
<if test="cardType != null and cardType != ''">
|
|
@@ -1424,7 +1424,8 @@
|
|
distinct
|
|
distinct
|
|
mp.id,
|
|
mp.id,
|
|
so.name as college,
|
|
so.name as college,
|
|
- GROUP_CONCAT(distinct bc.name, '(', bc.code, ')') as courseNameCode,
|
|
+ bc.name as courseName,
|
|
|
|
+ bc.code as courseCode,
|
|
mp.paper_number as paperNumber,
|
|
mp.paper_number as paperNumber,
|
|
replace(substring_index(substring_index(convert((etd.paper_attachment_ids ->>'$[*].cardId') using utf8), ']', 1), '[',-1), '"', '') as cardId,
|
|
replace(substring_index(substring_index(convert((etd.paper_attachment_ids ->>'$[*].cardId') using utf8), ']', 1), '[',-1), '"', '') as cardId,
|
|
IFNULL(mp.student_count, 0) as studentCount,
|
|
IFNULL(mp.student_count, 0) as studentCount,
|
|
@@ -1476,12 +1477,7 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- </where>
|
|
+ </where>) t
|
|
- group by
|
|
|
|
- mp.id,
|
|
|
|
- bc.name,
|
|
|
|
- bc.code,
|
|
|
|
- mp.paper_number) t
|
|
|
|
left join exam_card ec on ec.id = t.cardId
|
|
left join exam_card ec on ec.id = t.cardId
|
|
<where>
|
|
<where>
|
|
<if test="cardType != null and cardType != ''">
|
|
<if test="cardType != null and cardType != ''">
|