看代码,sql <update id="updatePessLockInMySQL"> update product set stock=stock-1 where id=#{id} and stock>0 </update> 并没有加锁啊