This commit is contained in:
sungsu
2024-01-22 18:11:01 +09:00
parent a53c6b9602
commit 70a5906299
10 changed files with 156 additions and 55 deletions

View File

@@ -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>