From 8b116fd4f2633194b050a0eca13964ce4f2e18f7 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 01 八月 2025 16:41:22 +0800
Subject: [PATCH] 订单转生产订单根据工艺流程区分不同产品,报工修改逻辑调整

---
 north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml b/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
index 7c21908..7e9e30c 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
@@ -413,8 +413,9 @@
 
     <select id="selectProjectCount">
         SELECT COUNT(*)
-        FROM flow_card
-        WHERE process_id= #{processId} and project_no IS not NULL;
+        FROM patch_log
+        WHERE process_id= #{processId} and patch_id=#{patchId} and technology_number = #{technologyNumber}
+          and project_no IS not NULL;
     </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0