达芬奇密码2018-07-12 10:06一.业务背景
select * from tb_status where status=0 order by id asc limit 1;
select * from tb_status where status=0 order by id asc limit 1 for update;
select <include refid="allColumns" />
from <include refid="table"/>
<![CDATA[
where gameId=#{gameId} and status=1
]]>
order by id desc limit 1;
@Transactional(rollbackFor = {Exception.class }, propagation = Propagation.REQUIRED)
本文来自网易实践者社区,经作者田躲躲授权发布。