From 6db03250bcbf51193b8dd71a698ea2b202c6d6ad Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 26 十二月 2025 15:59:20 +0800
Subject: [PATCH] 班组产量汇总报表,客户名称不能重复创建显示

---
 north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
index e00170b..029c7ca 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
@@ -39,7 +39,6 @@
             `order` as a
         where
             year(a.create_time)  = year(now())
-            and a.id>400
     </select>
 
     <select id="selectOrderIdMin">
@@ -450,4 +449,8 @@
         where level=2 and belong=#{belong}
 
     </select>
+
+    <select id="selectDeliveryStateConut">
+        select count(*) from sd.delivery_detail dd left join sd.delivery d on dd.delivery_id=d.delivery_id where dd.order_id= #{orderId} and d.delivery_state=0
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0