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} + +