From 2787463df5575734ca497402c8585baa93b6bbda Mon Sep 17 00:00:00 2001
From: caoyizhong <1270296080>
Date: Wed, 20 Dec 2023 19:57:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BA=AB=E5=AD=98=E5=93=81=E6=95=B8=E9=87=8F?=
=?UTF-8?q?=E7=B6=AD=E8=AD=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../logpm/distribution/mapper/DistributionStockListMapper.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml
index c80c0a352..dfa3502bc 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml
@@ -295,7 +295,7 @@
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}
+ 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