|
@@ -122,33 +122,33 @@
|
|
|
<foreach collection="updateDraw" item="draw" separator=";">
|
|
|
UPDATE luck_draw_prize
|
|
|
<set>
|
|
|
- <if test="name != null">
|
|
|
- name_ = #{name,jdbcType=VARCHAR},
|
|
|
+ <if test="draw.name != null">
|
|
|
+ name_ = #{draw.name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="chances != null">
|
|
|
- chances_ = #{chances,jdbcType=DOUBLE},
|
|
|
+ <if test="draw.chances != null">
|
|
|
+ chances_ = #{draw.chances,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
- <if test="stock != null">
|
|
|
- stock_ = #{stock,jdbcType=INTEGER},
|
|
|
+ <if test="draw.stock != null">
|
|
|
+ stock_ = #{draw.stock,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="enabled != null">
|
|
|
- enabled_ = #{enabled,jdbcType=BIT},
|
|
|
+ <if test="draw.enabled != null">
|
|
|
+ enabled_ = #{draw.enabled,jdbcType=BIT},
|
|
|
</if>
|
|
|
- <if test="rewardType != null">
|
|
|
- reward_type_ = #{rewardType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ <if test="draw.rewardType != null">
|
|
|
+ reward_type_ = #{draw.rewardType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
- <if test="memo != null">
|
|
|
- memo_ = #{memo,jdbcType=VARCHAR},
|
|
|
+ <if test="draw.memo != null">
|
|
|
+ memo_ = #{draw.memo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="groupId != null">
|
|
|
- group_id_ = #{groupId,jdbcType=INTEGER},
|
|
|
+ <if test="draw.groupId != null">
|
|
|
+ group_id_ = #{draw.groupId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="isDefault != null">
|
|
|
- is_default_ = #{isDefault},
|
|
|
+ <if test="draw.isDefault != null">
|
|
|
+ is_default_ = #{draw.isDefault},
|
|
|
</if>
|
|
|
modify_on_ = NOW()
|
|
|
</set>
|
|
|
- WHERE id_ = #{id,jdbcType=INTEGER}
|
|
|
+ WHERE id_ = #{draw.id,jdbcType=INTEGER}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|