From 800ff9835e75535dbf72c32e6c4617e1f99ff689 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 22 八月 2024 08:00:10 +0800
Subject: [PATCH] 补片返工流程卡上显示责任信息,优化班组产量查询效率

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

diff --git a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
index 3230cc8..fdc9834 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
@@ -206,7 +206,7 @@
         LEFT JOIN sd.order_glass_detail AS ogd
                 ON od.order_id = ogd.order_id
                 AND od.order_number = ogd.order_number
-        <if test="process == '澶硅兌'">
+        <if test="process == '澶硅兌' or (process == '鎵撹兌鍜岀矘妗�' and previousProcess=='澶硅兌')">
             AND ogd.`group` = (select `group`
                                from sd.order_glass_detail
                                where order_id = ogd.order_id
@@ -248,7 +248,7 @@
 
         WHERE
             fc.process_id = #{processIdStr}
-        <if test="process != '涓┖' and process != '澶硅兌' and process != '鍖呰'">
+        <if test="process != '涓┖' and process != '澶硅兌' and process != '鍖呰' and process != '鎵撹兌鍜岀矘妗�' ">
            AND fc.technology_number = #{technologyStr}
         </if>
         AND odpd.process = #{process}
@@ -501,7 +501,7 @@
         select rw.reporting_work_id,
                (rw.reporting_work_time) as reporting_work_time,
                o.order_id,
-               rw.process_id,
+               CONCAT(rw.process_id,'/',GROUP_CONCAT(distinct rwd.technology_number SEPARATOR '')) as process_id,
                o.project,
                o.batch,
                rw.this_process,

--
Gitblit v1.8.0