From 94b7e690bc6941b440720eb5702b924db1edf00c Mon Sep 17 00:00:00 2001
From: huangjiayang <5265313@qq.com>
Date: 星期一, 12 五月 2025 17:27:08 +0800
Subject: [PATCH] 【UPDATE】1.新增库存信息存入到Redis中 2.修改为批量插入Redis 3.同步库存数据后将库存数据存入到Redis中

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsPartRouteStatMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 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 8b55af0..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,7 +123,7 @@
         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 pl.work_order_no is not null
+        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