|
|
@@ -68,10 +68,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
question_chapter qc
|
|
|
LEFT JOIN question_business qb ON qc.chapter_exam_id = qb.major_id
|
|
|
AND qb.type = 3
|
|
|
- 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_education_type cet ON qb.education_type_id = cet.id AND cet.status =1
|
|
|
+ LEFT JOIN course_project_type cpt ON qb.project_id = cpt.id AND cpt.status =1
|
|
|
+ LEFT JOIN course_business cb ON qb.business_id = cb.id AND cb.status =1
|
|
|
+ LEFT JOIN course_subject cs ON cs.id = qb.subject_id AND cs.status =1
|
|
|
+ where 1=1
|
|
|
<if test="status != null and status.size()!=0 ">
|
|
|
AND qc.status in
|
|
|
<foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
|