From 26633e17d9e9a612e4744405d214cf513d13bffd Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期四, 26 九月 2024 13:56:34 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java
index 4f1139d..67448c5 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ReportingWorkController.java
@@ -40,9 +40,9 @@
         return  Result.seccess(reportingWorkService.AddSelectLastWorkSv(processIdStr,technologyStr,process,reportType));
     }
     @ApiOperation("鏌ヨ宸ュ簭")
-    @PostMapping  ("/selectProcess")
-    public Result SelectProcess()  {
-        return  Result.seccess(reportingWorkService.SelectProcessSv());
+    @PostMapping  ("/selectProcess/{userId}")
+    public Result SelectProcess(@PathVariable String userId)  {
+        return  Result.seccess(reportingWorkService.SelectProcessSv(userId));
     }
 
     @ApiOperation("鎶ュ伐鏂板")
@@ -144,8 +144,17 @@
     @ApiOperation("mes鎶ュ伐鎺ュ彛")
     @PostMapping  ("/mesReportingWork")
     public Result mesReportingWork(@RequestBody Map<String,Object> reportingWork){
-        return Result.seccess(reportingWorkService.mesReportingWorkSv(reportingWork));
-
+        Boolean aBoolean = reportingWorkService.mesReportingWorkSv(reportingWork);
+        if(aBoolean){
+            return Result.seccess(aBoolean);
+        }else{
+            throw new ServiceException(Constants.Code_600, "涓婂伐搴忓凡瀹屽伐鏁伴噺灏忎簬鏈伐搴忔姤宸ユ暟閲忥紝璇锋鏌�");
+        }
+    }
+    @ApiOperation("mes鎶ュ伐娆$牬鏂板")
+    @PostMapping  ("/mesSaveReportingWorkWorn")
+    public Result mesSaveReportingWorkWorn(@RequestBody Map<String,Object> reportingWork)  {
+        return  Result.seccess(reportingWorkService.SaveReportingWorkSv(reportingWork));
     }
 
 }

--
Gitblit v1.8.0