|
@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
cpt.project_name,
|
|
|
cb.business_name,
|
|
|
cs.subject_name,
|
|
|
- (SELECT count(*) from exam_question where exam_id = e.exam_id ) question_num
|
|
|
+ eq.question_num
|
|
|
FROM
|
|
|
exam e
|
|
|
LEFT JOIN exam_paper ep ON e.exam_paper_id = ep.paper_id
|
|
@@ -93,7 +93,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN course_education_type cet ON qb.education_type_id = cet.id
|
|
|
LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id
|
|
|
LEFT JOIN course_business cb ON qb.business_id = cb.id
|
|
|
- LEFT JOIN course_subject cs ON cs.id = qb.subject_id where 1=1
|
|
|
+ LEFT JOIN course_subject cs ON cs.id = qb.subject_id
|
|
|
+ LEFT JOIN (SELECT count(*) question_num,exam_id from exam_question GROUP BY exam_id)eq on eq.exam_id = e.exam_id
|
|
|
+ where 1=1
|
|
|
<if test="status != null and status.size()!=0 ">
|
|
|
AND e.status in
|
|
|
<foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
|