| | |
| | | where id=#{record.id} and revision=#{record.revision} |
| | | </update> |
| | | |
| | | <update id="updateScoreWithVersion"> |
| | | update mall_member_wallet |
| | | set revision = revision + 1, |
| | | score = #{record.score} |
| | | where id=#{record.id} and revision=#{record.revision} |
| | | </update> |
| | | |
| | | <update id="updateCommissionWithVersion"> |
| | | update mall_member_wallet |
| | | set revision = revision + 1, |
| | |
| | | </if> |
| | | where id=#{record.id} and revision=#{record.revision} |
| | | </update> |
| | | |
| | | <update id="updateScore"> |
| | | UPDATE mall_member_wallet |
| | | SET score = 0 |
| | | where id IN |
| | | <foreach collection = "list" item = "item" separator="," open = "(" close = ")" > |
| | | #{item} |
| | | </foreach > |
| | | </update> |
| | | </mapper> |