修改库存

This commit is contained in:
韩鹏辉
2024-06-12 10:03:09 +08:00
parent 7e8a86db6f
commit a1764e77c6
9 changed files with 269 additions and 12 deletions

View File

@@ -355,4 +355,13 @@
resultType="com.chaozhanggui.system.cashierservice.entity.TbProductSkuWithBLOBs">
select * from tb_product_sku where product_id = #{productId}
</select>
<update id="batchStockNum">
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
update tb_product_sku
set stock_number= stock_number+ #{item.number},
where id = #{item.skuId}
</foreach>
</update>
</mapper>