mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 12:13:33 +09:00
#update
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
|
||||
<update id="updateWarehouseDeleteStock" parameterType="com.no1.wms.out.ProductOutDto">
|
||||
update warehouse
|
||||
set current_capacity = current_capacity - #{outQuantity}
|
||||
set current_capacity = current_capacity - #{quantity}
|
||||
where id = #{warehouse_id};
|
||||
</update>
|
||||
|
||||
@@ -117,13 +117,13 @@
|
||||
|
||||
<update id="outNowUpdate" parameterType="com.no1.wms.out.ProductOutDto">
|
||||
update product_out
|
||||
set quantity = #{outQuantity}, expected_delivery_date = #{expected_delivery_date}, delivery_date = #{delivery_date}
|
||||
set quantity = #{quantity}, expected_delivery_date = #{expected_delivery_date}, delivery_date = #{delivery_date}
|
||||
where id = #{id};
|
||||
</update>
|
||||
|
||||
<update id="stockQuantityUpdate" parameterType="com.no1.wms.out.ProductOutDto">
|
||||
update stock
|
||||
set quantity = quantity - #{outQuantity}
|
||||
set quantity = quantity - #{quantity}
|
||||
where product_id = #{product_id} and warehouse_id = #{warehouse_id};
|
||||
</update>
|
||||
<!-- update -->
|
||||
@@ -143,4 +143,9 @@
|
||||
where id = #{id}
|
||||
</delete>
|
||||
<!-- delete -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user