|
@@ -18,11 +18,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="images" column="images" />
|
|
<result property="images" column="images" />
|
|
<result property="eventStartTime" column="event_start_time" />
|
|
<result property="eventStartTime" column="event_start_time" />
|
|
<result property="endTimeOfActivity" column="end_time_of_activity" />
|
|
<result property="endTimeOfActivity" column="end_time_of_activity" />
|
|
|
|
+ <result property="topUp" column="top_up" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectRecSaleInfoVo">
|
|
<sql id="selectRecSaleInfoVo">
|
|
select id, sale_name,catalog, sale_price, market, store_id, create_by, create_date, update_by, update_date,
|
|
select id, sale_name,catalog, sale_price, market, store_id, create_by, create_date, update_by, update_date,
|
|
- images, event_start_time, end_time_of_activity from rec_sale_info
|
|
|
|
|
|
+ images, event_start_time, end_time_of_activity, top_up from rec_sale_info
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectRecSaleInfoList" parameterType="RecSaleInfo" resultMap="RecSaleInfoResult">
|
|
<select id="selectRecSaleInfoList" parameterType="RecSaleInfo" resultMap="RecSaleInfoResult">
|
|
@@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="images != null "> and images = #{images}</if>
|
|
<if test="images != null "> and images = #{images}</if>
|
|
<if test="eventStartTime != null "> and event_start_time = #{eventStartTime}</if>
|
|
<if test="eventStartTime != null "> and event_start_time = #{eventStartTime}</if>
|
|
<if test="endTimeOfActivity != null "> and end_time_of_activity = #{endTimeOfActivity}</if>
|
|
<if test="endTimeOfActivity != null "> and end_time_of_activity = #{endTimeOfActivity}</if>
|
|
|
|
+ <if test="topUp != null "> and top_up = #{topUp}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="info.images != null">images,</if>
|
|
<if test="info.images != null">images,</if>
|
|
<if test="info.eventStartTime != null">event_start_time,</if>
|
|
<if test="info.eventStartTime != null">event_start_time,</if>
|
|
<if test="info.endTimeOfActivity != null">end_time_of_activity,</if>
|
|
<if test="info.endTimeOfActivity != null">end_time_of_activity,</if>
|
|
|
|
+ <if test="info.topUp != null">top_up,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="info.id != null">#{info.id},</if>
|
|
<if test="info.id != null">#{info.id},</if>
|
|
@@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="info.images != null">#{info.images},</if>
|
|
<if test="info.images != null">#{info.images},</if>
|
|
<if test="info.eventStartTime != null">#{info.eventStartTime},</if>
|
|
<if test="info.eventStartTime != null">#{info.eventStartTime},</if>
|
|
<if test="info.endTimeOfActivity != null">#{info.endTimeOfActivity},</if>
|
|
<if test="info.endTimeOfActivity != null">#{info.endTimeOfActivity},</if>
|
|
|
|
+ <if test="info.topUp != null">#{topUp},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -95,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="images != null">images = #{images},</if>
|
|
<if test="images != null">images = #{images},</if>
|
|
<if test="eventStartTime != null">event_start_time = #{eventStartTime},</if>
|
|
<if test="eventStartTime != null">event_start_time = #{eventStartTime},</if>
|
|
<if test="endTimeOfActivity != null">end_time_of_activity = #{endTimeOfActivity},</if>
|
|
<if test="endTimeOfActivity != null">end_time_of_activity = #{endTimeOfActivity},</if>
|
|
|
|
+ <if test="topUp != null">top_up = #{topUp},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -114,5 +119,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<include refid="selectRecSaleInfoVo"/>
|
|
<include refid="selectRecSaleInfoVo"/>
|
|
where (create_date between #{start,jdbcType=TIMESTAMP} and #{end,jdbcType=TIMESTAMP})
|
|
where (create_date between #{start,jdbcType=TIMESTAMP} and #{end,jdbcType=TIMESTAMP})
|
|
or (event_start_time < #{start,jdbcType=TIMESTAMP} and end_time_of_activity >= #{end,jdbcType=TIMESTAMP})
|
|
or (event_start_time < #{start,jdbcType=TIMESTAMP} and end_time_of_activity >= #{end,jdbcType=TIMESTAMP})
|
|
|
|
+ order by create_date desc
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|