|
@@ -86,7 +86,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN course_subject cs ON csb.subject_id = cs.id
|
|
|
LEFT JOIN course_chapter_section ccs ON csb.id = ccs.section_id
|
|
|
LEFT JOIN course_chapter cc ON ccs.chapter_id = cc.chapter_id
|
|
|
-
|
|
|
+ WHERE
|
|
|
+ 1 = 1
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ AND c.name like concat('%', #{name}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="publishStatus != null and publishStatus != ''">
|
|
|
+ AND c.publish_status = #{publishStatus}
|
|
|
+ </if>
|
|
|
+ <if test="educationTypeId != null and educationTypeId != ''">
|
|
|
+ AND csb.education_type_id = #{educationTypeId}
|
|
|
+ </if>
|
|
|
+ <if test="subjectId != null and subjectId != ''">
|
|
|
+ AND csb.subject_id = #{subjectId}
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null and businessId != ''">
|
|
|
+ AND csb.business_id = #{businessId}
|
|
|
+ </if>
|
|
|
+ <if test="sectionType != null and sectionType != ''">
|
|
|
+ AND c.section_type = #{sectionType}
|
|
|
+ </if>
|
|
|
+ <if test="prefixName != null and prefixName != ''">
|
|
|
+ AND c.prefix_name like concat('%', #{prefixName}, '%')
|
|
|
+ </if>
|
|
|
|
|
|
</select>
|
|
|
</mapper>
|