From 16d2bf2937c57f5ebfa80e46a493b98ada061b85 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 29 七月 2024 10:39:15 +0800
Subject: [PATCH] 修改订单结算面积取消时方法以及客户报表导出的其他金额

---
 north-glass-erp/src/main/java/com/example/erp/service/pp/ReplenishService.java |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 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 13c704b..4302585 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
@@ -7,10 +7,12 @@
 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.Log;
 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.LogService;
 import com.example.erp.service.userInfo.SysErrorService;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
@@ -37,11 +39,14 @@
     final
     FlowCardMapper flowCardMapper;
 
-    public ReplenishService(PatchLogMapper patchMapper, SysErrorService sysErrorService, ReportingWorkMapper reportingWorkMapper,FlowCardMapper flowCardMapper) {
+    final LogService logService;
+
+    public ReplenishService(PatchLogMapper patchMapper, SysErrorService sysErrorService, ReportingWorkMapper reportingWorkMapper,FlowCardMapper flowCardMapper,LogService logService) {
         this.patchMapper = patchMapper;
         this.sysErrorService = sysErrorService;
         this.reportingWorkMapper = reportingWorkMapper;
         this.flowCardMapper = flowCardMapper;
+        this.logService = logService;
     }
 
 
@@ -108,6 +113,14 @@
             saveState = false;
 
         }
+
+        //淇濆瓨鏃ュ織
+        Log log = new Log();
+        log.setContent(object.toString());
+        log.setFunction("saveReplenish琛ョ墖鏂板");
+        log.setOperatorId((String) object.get("userId"));
+        log.setOperator((String) object.get("userName"));
+        logService.saveLog(log);
 
         return saveState;
 
@@ -186,7 +199,7 @@
             for (FlowCard flowCard : flowCardList) {
 
                 Map<String, Object> itemmap = new HashMap<>();
-                itemmap.put("data", flowCardMapper.getRepairPrintCustomData(flowCard.getProcessId(),flowCard.getTechnologyNumber()));
+                itemmap.put("data", flowCardMapper.getRepairPrintCustomData(flowCard.getProcessId(),flowCard.getTechnologyNumber(),flowCard.getReportingWorkId()));
                 list.add(itemmap);
 
 

--
Gitblit v1.8.0