From f53fb4af943e9a82c250fb60ad6ed941fd8f5d33 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期日, 07 七月 2024 09:07:53 +0800
Subject: [PATCH] 提交相关程序

---
 north-glass-erp/src/main/java/com/example/erp/service/pp/ReplenishService.java |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReplenishService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReplenishService.java
index ad1787d..abf91c4 100644
--- a/north-glass-erp/src/main/java/com/example/erp/service/pp/ReplenishService.java
+++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/ReplenishService.java
@@ -4,9 +4,11 @@
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.dynamic.datasource.annotation.DS;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.example.erp.entity.pp.FlowCard;
 import com.example.erp.entity.pp.PatchLog;
 import com.example.erp.entity.pp.ReportingWork;
 import com.example.erp.entity.userInfo.SysError;
+import com.example.erp.mapper.pp.FlowCardMapper;
 import com.example.erp.mapper.pp.PatchLogMapper;
 import com.example.erp.mapper.pp.ReportingWorkMapper;
 import com.example.erp.service.userInfo.SysErrorService;
@@ -32,10 +34,14 @@
     final
     ReportingWorkMapper reportingWorkMapper;
 
-    public ReplenishService(PatchLogMapper patchMapper, SysErrorService sysErrorService, ReportingWorkMapper reportingWorkMapper) {
+    final
+    FlowCardMapper flowCardMapper;
+
+    public ReplenishService(PatchLogMapper patchMapper, SysErrorService sysErrorService, ReportingWorkMapper reportingWorkMapper,FlowCardMapper flowCardMapper) {
         this.patchMapper = patchMapper;
         this.sysErrorService = sysErrorService;
         this.reportingWorkMapper = reportingWorkMapper;
+        this.flowCardMapper = flowCardMapper;
     }
 
 
@@ -126,7 +132,6 @@
                    patchMapper.updateReplenish(patchLog,userName);
                     ReportingWork reportingWork = reportingWorkMapper
                             .selectOne(new QueryWrapper<ReportingWork>().eq("reporting_work_id",patchLog.getReportingWorkId()));
-                    System.out.println(patchLog);
                     //淇敼灏忕墖娴佺▼鍗℃暟閲�
                     patchMapper.updateOrderProcessDetail(patchLog,reportingWork);
                 }
@@ -165,8 +170,30 @@
         return oddNumbers;
     }
 
+    public Object selectPrintSv(java.sql.Date selectTime1, java.sql.Date selectTime2, FlowCard flowCard) {
+        Map<String, Object> map = new HashMap<>();
+        map.put("data", flowCardMapper.selectReplenishPrintMp(selectTime1,selectTime2,flowCard));
+        map.put("type", flowCardMapper.selectType());
+        return map;
+    }
+
+    public Map<String, Object> getSelectPrintCustomLabelSv(String type, Map<String, Object> object) {
+        Map<String, Object> map = new HashMap<>();
+        List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();//鏈�缁堢粨鏋�
+        List<FlowCard> flowCardList = JSONArray.parseArray(JSONObject.toJSONString(object.get("printList")), FlowCard.class);
+        if (!flowCardList.isEmpty()) {
+            for (FlowCard flowCard : flowCardList) {
+
+                Map<String, Object> itemmap = new HashMap<>();
+                itemmap.put("data", flowCardMapper.getRepairPrintCustomData(flowCard.getProcessId(),flowCard.getTechnologyNumber()));
+                list.add(itemmap);
 
 
-
+            }
+        }
+        map.put("data", list);
+        map.put("title", flowCardMapper.getPrintTitle(type));
+        return map;
+    }
 }
 

--
Gitblit v1.8.0