From 8fb3ee9eae369f7a5c39da8ed69d0e8cea3ae2f8 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期三, 24 十二月 2025 16:24:59 +0800
Subject: [PATCH] 生产加工单上显示图纸和图纸尺寸调整功能,流程卡上图纸尺寸调整功能

---
 north-glass-erp/src/main/java/com/example/erp/service/pp/ReportingWorkService.java |   52 ++++++++++++++++++++++++++++++++++------------------
 1 files changed, 34 insertions(+), 18 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 0f99f24..d3e2920 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
@@ -204,24 +204,7 @@
                             });
                         }
                         map.put("Detail",details );
-//                    }else {
-//                        //涓嶆槸绗竴閬撳伐搴忥紝鏌ヨ鎶ュ伐鏁版嵁
-//                        List<Map<String,String>>  details = reportingWorkMapper.SelectReworlDetailMpReview(processIdStr, technologyStr, process,previousProcess,laminating);
-//                        if(process.equals("涓┖")){
-//                            String orderId = reportingWorkMapper.selectOrderid(processIdStr);
-//                            details.forEach( detail -> {
-//                                Integer glassId = orderGlassDetailMapper.
-//                                        getMinIdByGroup(orderId,
-//                                                String.valueOf(detail.get("order_number")),
-//                                                String.valueOf(detail.get("group")));
-//                                int listGlassId = Integer.parseInt(String.valueOf(detail.get("glassId")));
-//                                if(listGlassId  !=glassId){
-//                                    detail.put("rowClass","latter");
-//                                }
-//                            });
-//                        }
-//                        map.put("Detail",details );
-//                    }
+
                 }
             }
 
@@ -1796,4 +1779,37 @@
 
         return result;
     }
+
+    @Transactional(rollbackFor = Exception.class)
+    public Result addWorkInProgress(Map<String, Object> object) {
+        List<Map<String,Object>> list = (List<Map<String,Object>>) object.get("reportingWorks");
+
+        list.forEach(item -> {
+            ReportingWork reportingWork = JSONObject.parseObject(
+                    JSONObject.toJSONString(item.get("processTitle")), ReportingWork.class);
+            Map<String, String> mapTitle = new HashMap<>();
+            String[] processIdStr = reportingWork.getProcessId() != null
+                    ? reportingWork.getProcessId().split("/")
+                    : new String[]{""};
+            mapTitle.put("process", reportingWork.getPreviousProcess());
+            mapTitle.put("processId", reportingWork.getProcessId());
+            mapTitle.put("thisProcess", reportingWork.getThisProcess());
+            mapTitle.put("technologyStr", processIdStr[1]);
+            mapTitle.put("userName", object.get("userName").toString());
+            ReviewReportingWorkSv(mapTitle);
+
+
+            Map<String, Object> map = new HashMap<>();
+            map.put("detail", item.get("processList"));
+            map.put("title", item.get("processTitle"));
+            map.put("type", object.get("type"));
+            map.put("userId", object.get("userId"));
+            map.put("userName", object.get("userName"));
+            map.put("qualityInsStatus", object.get("qualityInsStatus"));
+            map.put("class", object.get("class"));
+            SaveReportingWorkSv(map);
+        });
+
+        return Result.success(true);
+    }
 }

--
Gitblit v1.8.0