<update id="reduceStock" parameterType="Integer">
update t_goods_miaosha set stock=stock-1 where id=#{id} and stock>0
</update>
解决高下的超卖问题
最新推荐文章于 2024-08-24 22:00:45 发布
<update id="reduceStock" parameterType="Integer">
update t_goods_miaosha set stock=stock-1 where id=#{id} and stock>0
</update>