加入购物车扣除库存逻辑修改

This commit is contained in:
GYJ
2024-06-24 15:12:39 +08:00
parent 487a9e7b6b
commit c24434b121
3 changed files with 140 additions and 78 deletions

View File

@@ -913,6 +913,12 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateStockById">
update tb_product
set stock_number = stock_number - #{number,jdbcType=INTEGER}
where id = #{productId}
</update>
<select id="selectByIdIn" resultMap="BaseResultMap">
select *
from tb_product