|
|
|
@ -98,13 +98,13 @@ |
|
|
|
<update id="updateActivity" parameterType="com.example.demo.domain.vo.coin.RechargeActivity"> |
|
|
|
UPDATE recharge_activity |
|
|
|
<set> |
|
|
|
<if test="activityName != null">activity_name = #{activityName},</if> |
|
|
|
<if test="businessBelong != null">business_belong = #{businessBelong},</if> |
|
|
|
<if test="area != null">area = #{area},</if> |
|
|
|
<if test="startTime != null">start_time = #{startTime},</if> |
|
|
|
<if test="endTime != null">end_time = #{endTime},</if> |
|
|
|
<if test="status != null">status = #{status},</if> |
|
|
|
<if test="creator != null">creator = #{creator},</if> |
|
|
|
<if test="activityName != null and activityName != ''">activity_name = #{activityName},</if> |
|
|
|
<if test="businessBelong != null and businessBelong != ''">business_belong = #{businessBelong},</if> |
|
|
|
<if test="area != null and area != ''">area = #{area},</if> |
|
|
|
<if test="startTime != null and startTime != ''">start_time = #{startTime},</if> |
|
|
|
<if test="endTime != null and endTime != ''">end_time = #{endTime},</if> |
|
|
|
<if test="status != null and status != ''">status = #{status},</if> |
|
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
|
update_time = NOW() |
|
|
|
</set> |
|
|
|
WHERE id = #{id} |
|
|
|
|