|
@@ -601,7 +601,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="countStudentBaseExams" resultType="java.lang.Integer">
|
|
|
- SELECT COUNT(er.id_) FROM exam_registration er
|
|
|
+ SELECT COUNT(DISTINCT eb.id_) FROM exam_registration er
|
|
|
<include refid="queryStudentBaseExamsSql"/>
|
|
|
</select>
|
|
|
<resultMap id="StudentBaseExamsDtoMap" type="com.keao.edu.user.dto.StudentBaseExamsDto">
|
|
@@ -613,7 +613,8 @@
|
|
|
SELECT eb.name_ examBaseName,eb.tenant_id_,er.examination_basic_id_ FROM examination_basic eb
|
|
|
LEFT JOIN exam_registration er ON er.examination_basic_id_ = eb.id_
|
|
|
<include refid="queryStudentBaseExamsSql"/>
|
|
|
- ORDER BY er.update_time_ DESC
|
|
|
+ GROUP BY eb.id_
|
|
|
+ ORDER BY eb.update_time_ DESC
|
|
|
<include refid="global.limit"/>
|
|
|
</select>
|
|
|
<sql id="queryStudentBaseExamsSql">
|