From d77e9d8f3ca222fd6b9de32751edcfc2b0c79418 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期日, 27 四月 2025 14:43:16 +0800
Subject: [PATCH] 零件统计问题修复

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml
index eef9e6c..e924c26 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml
@@ -144,7 +144,7 @@
                pl.plan_end_day                                                                    as order_plan_end_day
         from aps_plate_plan as pl
                  left join aps_process_route as rt on pl.document_number = rt.work_order_no
-        where pl.document_number is not null
+        where pl.document_number is not null and rt.work_order_no is not null
         order by rt.work_order_no asc, rt.process_number desc
     </select>
     <update id="removeOtherStat" parameterType="String">

--
Gitblit v1.9.3