From 774eae4b6ec65670a36ad74e561b09aca59a45c7 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 17 九月 2025 09:18:45 +0800
Subject: [PATCH] 修改物料修改问题
---
north-glass-erp/src/main/resources/mapper/mm/MaterialInventory.xml | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/mm/MaterialInventory.xml b/north-glass-erp/src/main/resources/mapper/mm/MaterialInventory.xml
index a7b58af..06eb1a9 100644
--- a/north-glass-erp/src/main/resources/mapper/mm/MaterialInventory.xml
+++ b/north-glass-erp/src/main/resources/mapper/mm/MaterialInventory.xml
@@ -632,6 +632,14 @@
select * from mm.material_inventory where material_code=#{materialCode} and date_of_manufacture is null and producer=#{producer}
</select>
+ <select id="getMaterialInventoryCount1" >
+ select * from mm.material_inventory where material_code=#{materialCode} and date_of_manufacture=#{dateOfManufacture} and producer=#{producer} and id!=#{id}
+ </select>
+
+ <select id="getMaterialInventoryCountNull1" >
+ select * from mm.material_inventory where material_code=#{materialCode} and date_of_manufacture is null and producer=#{producer} and id!=#{id}
+ </select>
+
<select id="getMaterialInventoryCountId" >
select id from mm.material_inventory where material_code=#{materialCode} and date_of_manufacture=#{dateOfManufacture} and producer=#{producer}
</select>
--
Gitblit v1.8.0