From a080d67b9964cd632f52c481c0f20ef2e3e7073a Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期五, 09 五月 2025 10:19:07 +0800
Subject: [PATCH] 放开权限

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

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartRouteStatMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartRouteStatMapper.xml
index 75d31fb..77781d3 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartRouteStatMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartRouteStatMapper.xml
@@ -123,9 +123,8 @@
         from aps_part_plan  as pl
             left join aps_process_route as rt on pl.document_number=rt.work_order_no
             left join aps_resource_group as rs on rs.resource_group_name=rt.process_name
-        where  document_status in (0,1,2,4)
-            /*宸ュ簭璁″垝寮�宸ユ棩 灏忎簬绛変簬 璧勬簮缁勭殑鎴鏃ユ湡*/
-            and rt.process_plan_start_day  &lt;= rs.request_date
+        where pl.document_number is not null and rt.work_order_no is not null
+             and  rt.process_plan_start_day  &lt;= rs.request_date
             order by rt.work_order_no,process_plan_start_day
     </select>
 

--
Gitblit v1.9.3