MySQL

1
2
3
4
5
6
7
<update id="updateAddLockCount" parameterType="java.lang.String">
<![CDATA[
update group_buy_order
set lock_count = lock_count + 1, update_time= now()
where team_id = #{teamId} and lock_count < target_count
]]>
</update>

责任链模型结构