|
@@ -37,9 +37,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
FROM
|
|
|
question_business qb
|
|
|
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 qb.subject_id = cs.id
|
|
|
+ AND cs.`status` = 1
|
|
|
WHERE
|
|
|
type = #{type} and qb.major_id =#{majorId}
|
|
|
</select>
|