...
|
...
|
@@ -31,4 +31,93 @@ |
|
|
#{item}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|
|
|
<insert id="updateCollageActivity">
|
|
|
INSERT INTO cutdown_price_activity
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="params.activityId != null and params.activityId != ''">
|
|
|
activity_id,
|
|
|
</if>
|
|
|
<if test="params.activityName != null and params.activityName != ''">
|
|
|
activity_name,
|
|
|
</if>
|
|
|
<if test="params.beginTime != null and params.beginTime != ''">
|
|
|
begin_time,
|
|
|
</if>
|
|
|
<if test="params.endTime != null and params.endTime != ''">
|
|
|
end_time,
|
|
|
</if>
|
|
|
<if test="params.createTime != null and params.createTime != ''">
|
|
|
create_time,
|
|
|
</if>
|
|
|
<if test="params.updateTime != null and params.updateTime != ''">
|
|
|
update_time,
|
|
|
</if>
|
|
|
<if test="params.banner != null and params.banner != ''">
|
|
|
banner,
|
|
|
</if>
|
|
|
<if test="params.jumpUrl != null and params.jumpUrl != ''">
|
|
|
jump_url,
|
|
|
</if>
|
|
|
<if test="params.status != null and params.status != ''">
|
|
|
status,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="params.activityId != null and params.activityId != ''">
|
|
|
#{params.activityId},
|
|
|
</if>
|
|
|
<if test="params.activityName != null and params.activityName != ''">
|
|
|
#{params.activityName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="params.beginTime != null and params.beginTime != ''">
|
|
|
#{params.beginTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="params.endTime != null and params.endTime != ''">
|
|
|
#{params.endTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="params.createTime != null and params.createTime != ''">
|
|
|
#{params.createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="params.updateTime != null and params.updateTime != ''">
|
|
|
#{params.updateTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="params.banner != null and params.banner != ''">
|
|
|
#{params.banner,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="params.jumpUrl != null and params.jumpUrl != ''">
|
|
|
#{params.jumpUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="params.status != null and params.status != ''">
|
|
|
#{params.status},
|
|
|
</if>
|
|
|
</trim>
|
|
|
ON DUPLICATE KEY UPDATE
|
|
|
<trim suffixOverrides=",">
|
|
|
<if test="params.activityName != null and params.activityName != ''">
|
|
|
activity_name = VALUES(activity_name),
|
|
|
</if>
|
|
|
<if test="params.updateTime != null and params.updateTime != ''">
|
|
|
update_time = VALUES(update_time),
|
|
|
</if>
|
|
|
<if test="params.beginTime != null and params.beginTime != ''">
|
|
|
begin_time = VALUES(begin_time),
|
|
|
</if>
|
|
|
<if test="params.endTime != null and params.endTime != ''">
|
|
|
end_time = VALUES(end_time),
|
|
|
</if>
|
|
|
<if test="params.status != null and params.status != ''">
|
|
|
status = VALUES(status),
|
|
|
</if>
|
|
|
<if test="params.banner != null and params.banner != ''">
|
|
|
banner = VALUES(banner),
|
|
|
</if>
|
|
|
<if test="params.jumpUrl != null and params.jumpUrl != ''">
|
|
|
jump_url = VALUES(jump_url)
|
|
|
</if>
|
|
|
<if test="params.status != null and params.status != ''">
|
|
|
status = VALUES(status),
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|