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/java/com/example/erp/service/pp/ReportingWorkService.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java
index 2673d3f..829693b 100644
--- a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java
+++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java
@@ -30,6 +30,7 @@
 import org.springframework.transaction.interceptor.TransactionAspectSupport;
 
 import java.text.SimpleDateFormat;
+import java.time.LocalDate;
 import java.time.LocalDateTime;
 import java.util.*;
 
@@ -272,6 +273,9 @@
                     if (!damageDetail.getResponsibleProcess().equals(reportingWork.getThisProcess()) && qualityInsStatus==2) {
                         damageDetail.setQualityInsStatus(1);
                     }
+                    if (isPatch == 1){
+                        damageDetail.setQualityInsStatus(2);
+                    }
                     damageDetailsMapper.insert(damageDetail);
                 });
             }
@@ -380,8 +384,11 @@
         String result = processId.substring(index);
         String technologyStr = reportingWork.get("technologyStr");
         String[] processIdStr = processId.split("/");
+        String nowDate = LocalDate.now().toString();
+        //鑾峰彇鎶ュ伐宸ュ簭鏄惁涓哄鍚堝伐绋�
+        String laminating = reportingWorkMapper.getProcessLaminating(thisProcess);
 //鍚堢墖宸ュ簭
-if (thisProcess.equals("澶硅兌") || thisProcess.equals("涓┖") || thisProcess.equals("鍖呰")){
+if (laminating.equals("laminating")){
     LambdaUpdateWrapper
                 <ReportingWork> updateWrapper = new LambdaUpdateWrapper<>();
         updateWrapper
@@ -389,7 +396,8 @@
                 .eq(ReportingWork::getThisProcess, reportingWork.get("process"))
                 .eq(ReportingWork::getReviewedState, 0)
                 .setSql("reviewed_state =1")
-                .set(ReportingWork::getReviewed, userName);
+                .set(ReportingWork::getReviewed, userName)
+                .set(ReportingWork::getExamineTime, nowDate);
         reportingWorkMapper.update(null, updateWrapper);
 }else {
     reportingWorkMapper.ReviewReportingWorkMp(processIdStr[0],reportingWork.get("process"),technologyStr,userName);

--
Gitblit v1.8.0