|
@@ -218,7 +218,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="selectCountActivity" parameterType="com.zhongzheng.modules.course.bo.CourseQueryBo" resultMap="ActivityConfigurationResult">
|
|
|
|
|
|
|
+ <select id="selectlistConfiguration" parameterType="com.zhongzheng.modules.course.bo.CourseQueryBo" resultMap="ActivityConfigurationResult">
|
|
|
SELECT
|
|
SELECT
|
|
|
c.id,
|
|
c.id,
|
|
|
c.activity_name,
|
|
c.activity_name,
|
|
@@ -247,15 +247,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by c.update_time desc
|
|
order by c.update_time desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <select id="selectConfigures" parameterType="java.lang.Long" resultMap="ActivityConfigurationResultVO">
|
|
|
|
|
|
|
+ <select id="selectCountActivity" parameterType="java.lang.Long" resultType="integer">
|
|
|
SELECT
|
|
SELECT
|
|
|
- c.*,
|
|
|
|
|
- s.*
|
|
|
|
|
|
|
+ COUNT(a.id)
|
|
|
FROM
|
|
FROM
|
|
|
- activity_configuration c
|
|
|
|
|
- LEFT JOIN activity_configuration_course f ON c.id = f.configuration_id
|
|
|
|
|
- LEFT JOIN course s ON f.configuration_id = s.course_id
|
|
|
|
|
- WHERE 1=1
|
|
|
|
|
- and c.id = #{id,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ activity_configuration a
|
|
|
|
|
+ LEFT JOIN activity_configuration_course t ON a.id = t.configuration_id
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ 1 = 1
|
|
|
|
|
+ <if test="activityId != null and activityId != ''" >
|
|
|
|
|
+ AND a.id = #{activityId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="goodsId != null and goodsId != ''" >
|
|
|
|
|
+ AND t.course_id =#{goodsId}
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|