|
@@ -73,7 +73,7 @@
|
|
|
<result property="goodsId" column="goods_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
- <select id="selectList" parameterType="com.zhongzheng.modules.course.bo.CourseQueryBo" resultMap="CourseResultVo">
|
|
|
+ <select id="selectCourseList" parameterType="com.zhongzheng.modules.course.bo.CourseQueryBo" resultMap="CourseResultVo">
|
|
|
SELECT
|
|
|
c.*,
|
|
|
cet.education_name,
|
|
@@ -124,44 +124,15 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectList_COUNT" resultType="Long">
|
|
|
+ <select id="selectCourseList_COUNT" resultType="Long">
|
|
|
SELECT
|
|
|
c.course_id
|
|
|
FROM
|
|
|
course c
|
|
|
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>
|
|
|
+ c.status = 1
|
|
|
+
|
|
|
|
|
|
- <if test="educationTypeId != null and educationTypeId != ''">
|
|
|
- AND c.education_type_id = #{educationTypeId}
|
|
|
- </if>
|
|
|
- <if test="subjectId != null and subjectId != ''">
|
|
|
- AND c.subject_id = #{subjectId}
|
|
|
- </if>
|
|
|
- <if test="businessId != null and businessId != ''">
|
|
|
- AND c.business_id = #{businessId}
|
|
|
- </if>
|
|
|
- <if test="prefixName != null and prefixName != ''">
|
|
|
- AND c.prefix_name like concat('%', #{prefixName}, '%')
|
|
|
- </if>
|
|
|
- <if test="courseName != null and courseName != ''">
|
|
|
- AND c.course_name like concat('%', #{courseName}, '%')
|
|
|
- </if>
|
|
|
- <if test="publishStatus != null and publishStatus != ''">
|
|
|
- AND c.publish_status = #{publishStatus}
|
|
|
- </if>
|
|
|
- <if test="schoolId != null and schoolId != ''">
|
|
|
- AND c.school_id = #{schoolId}
|
|
|
- </if>
|
|
|
- <if test="majorId != null and majorId != ''">
|
|
|
- AND c.major_id = #{majorId}
|
|
|
- </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDetailById" parameterType="Long" resultMap="CourseResultVo">
|