|
@@ -19,11 +19,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<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" />
|
|
<result property="topUp" column="top_up" />
|
|
|
|
+ <result property="topIndex" column="top_index" />
|
|
</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, top_up from rec_sale_info
|
|
|
|
|
|
+ images, event_start_time, end_time_of_activity, top_up, top_index from rec_sale_info
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectRecSaleInfoList" parameterType="RecSaleInfo" resultMap="RecSaleInfoResult">
|
|
<select id="selectRecSaleInfoList" parameterType="RecSaleInfo" resultMap="RecSaleInfoResult">
|
|
@@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<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>
|
|
<if test="topUp != null "> and top_up = #{topUp}</if>
|
|
|
|
+ <if test="topIndex != null "> and top_index = #{topIndex}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -65,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<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>
|
|
<if test="info.topUp != null">top_up,</if>
|
|
|
|
+ <if test="info.topIndex != null">top_index,</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>
|
|
@@ -81,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<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">#{info.topUp},</if>
|
|
<if test="info.topUp != null">#{info.topUp},</if>
|
|
|
|
+ <if test="info.topIndex != null">#{info.topIndex},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -100,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<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>
|
|
<if test="topUp != null">top_up = #{topUp},</if>
|
|
|
|
+ <if test="topIndex != null">top_index = #{topIndex},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|