|
@@ -117,4 +117,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND c.prefix_name like concat('%', #{prefixName}, '%')
|
|
AND c.prefix_name like concat('%', #{prefixName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectList_COUNT" resultType="Long">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ count( DISTINCT c.module_id )
|
|
|
|
|
+ FROM
|
|
|
|
|
+ course_module c
|
|
|
|
|
+ LEFT JOIN course_module_business cmb ON cmb.module_id = c.module_id
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ 1 = 1
|
|
|
|
|
+ <if test="status != null and status.size()!=0 ">
|
|
|
|
|
+ AND c.status in
|
|
|
|
|
+ <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="publishStatus != null and publishStatus != ''">
|
|
|
|
|
+ AND c.publish_status = #{publishStatus}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="educationTypeId != null and educationTypeId != ''">
|
|
|
|
|
+ AND cmb.education_type_id = #{educationTypeId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="subjectId != null and subjectId != ''">
|
|
|
|
|
+ AND cmb.subject_id = #{subjectId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="businessId != null and businessId != ''">
|
|
|
|
|
+ AND cmb.business_id = #{businessId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="moduleName != null and moduleName != ''">
|
|
|
|
|
+ AND c.module_name like concat('%', #{moduleName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="prefixName != null and prefixName != ''">
|
|
|
|
|
+ AND c.prefix_name like concat('%', #{prefixName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|