Browse Source

庫存品數量維護

single_db
caoyizhong 1 year ago
parent
commit
2787463df5
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml

@ -295,7 +295,7 @@
where id = #{stockListId} where id = #{stockListId}
</update> </update>
<update id="deductionQuantityStock"> <update id="deductionQuantityStock">
UPDATE logpm_distribution_stock_list SET quantity_stock = (quantity_stock - 1) , quantity_occupied = (quantity_occupied - 1) , outbound_quantity = (outbound_quantity + 1) WHERE id = #{stockListId} UPDATE logpm_distribution_stock_list SET quantity_stock = (quantity_stock - 1) , quantity_occupied = (quantity_occupied - 1) , outbound_quantity = (outbound_quantity + 1) WHERE id = #{stockListId} and quantity_stock>= 0 and quantity_occupied >= 0 and outbound_quantity>= 0
</update> </update>
<select id="getAllStockMall" resultType="com.logpm.distribution.vo.app.StockMallVO"> <select id="getAllStockMall" resultType="com.logpm.distribution.vo.app.StockMallVO">

Loading…
Cancel
Save