From e54885f442dbfc3364f2be919af667d9225c65fc Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期四, 20 三月 2025 10:22:25 +0800
Subject: [PATCH] 修改case条件面积计算方式

---
 north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 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 c122755..183eb0a 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
@@ -348,7 +348,7 @@
         ifnull(if((d.reporting_work_num_count+ifnull(c.reworkNumSum,0)-b.reporting_work_num_count-b.broken_num)&lt; 0,
            0,
            (d.reporting_work_num_count+ifnull(c.reworkNumSum,0)-b.reporting_work_num_count-b.broken_num)
-            ),0)
+            ),0) as num
         from pp.flow_card as a
         left join sd.order_process_detail as b
         on
@@ -812,7 +812,7 @@
     <update id="ReviewReportingWorkMp">
         update reporting_work as rw
             left join reporting_work_detail as rwd on rw.reporting_work_id = rwd.reporting_work_id
-        set rw.reviewed_state = 1 ,rw.reviewed=#{userName}
+        set rw.reviewed_state = 1 ,rw.reviewed=#{userName},rw.examine_time=NOW()
         where rw.process_id = #{substring} and rw.this_process=#{process}
           and POSITION(rwd.technology_number in #{result}) and reviewed_state=0
     </update>

--
Gitblit v1.8.0