修改库存
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user