|
|
@@ -31,8 +31,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="endTime" column="end_time"/>
|
|
|
<result property="price" column="price"/>
|
|
|
<result property="quantity" column="quantity"/>
|
|
|
- <result property="validityTime" column="validity_time"/>
|
|
|
- <result property="discount" column="discount"/>
|
|
|
<result property="liveContent" column="live_content"/>
|
|
|
<result property="liveAdress" column="live_adress"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
@@ -121,55 +119,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
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
|
|
|
- <if test="id != null" >
|
|
|
- and c.id = #{id,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="activityName != null" >
|
|
|
- and c.activity_name = #{activityName,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="activityType != null" >
|
|
|
- and c.activity_type = #{activityType,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="description != null" >
|
|
|
- and c.description = #{description,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="startTime != null" >
|
|
|
- and c.start_time = #{startTime,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="endTime != null" >
|
|
|
- and c.end_time = #{endTime,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="price != null" >
|
|
|
- and c.price = #{price,jdbcType=DECIMAL}
|
|
|
- </if>
|
|
|
- <if test="quantity != null" >
|
|
|
- and c.quantity = #{quantity,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="validityTime != null" >
|
|
|
- and c.validity_time = #{validityTime,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="discount != null" >
|
|
|
- and c.discount = #{discount,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="liveContent != null" >
|
|
|
- and c.live_content = #{liveContent,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="liveAdress != null" >
|
|
|
- and c.live_adress = #{liveAdress,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="createTime != null" >
|
|
|
- and c.create_time = #{createTime,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="updateTime != null" >
|
|
|
- and c.update_time = #{updateTime,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <choose>
|
|
|
- <when test="status !=null and status != ''">
|
|
|
- and c.status = #{status,jdbcType=TINYINT}
|
|
|
- </when>
|
|
|
- <otherwise>
|
|
|
- and c.status != 0
|
|
|
- </otherwise>
|
|
|
- </choose>
|
|
|
+ and c.id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
</mapper>
|