From cf4dbbfd757f4a4830c1aadf3929924343d9ba60 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Thu, 1 May 2025 12:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=8C=81=E6=9C=BA=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8E=9F=E6=96=99=E4=BE=9B=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/drp/DrpInventoryMapper.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/drp/DrpInventoryMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/drp/DrpInventoryMapper.xml index e1664874..6cdc86e2 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/drp/DrpInventoryMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/drp/DrpInventoryMapper.xml @@ -2,6 +2,19 @@ + + UPDATE drp_inventory + SET material_num = material_num - #{fetchNum} + WHERE + inventory_id = #{inventoryId} + + + UPDATE drp_inventory + SET material_num = material_num + #{materialNum} + WHERE + inventory_id = #{inventoryId} + +