From 5df5dba2a321098fd0fc7e18b71549f5c2312049 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 27 八月 2024 17:19:13 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java |  120 +++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 103 insertions(+), 17 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java
index 6c3b015..fc6c6b1 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/ProcessCardController.java
@@ -65,10 +65,12 @@
     //鍒犻櫎娴佺▼鍗�
     @ApiOperation("鍒犻櫎娴佺▼鍗℃帴鍙�")
     @SaCheckPermission("SelectProcessCard.delete")
-    @PostMapping("/deleteFlowCard/{orderId}/{processId}")
+    @PostMapping("/deleteFlowCard/{orderId}/{processId}/{userId}/{userName}")
     public Result deleteOrderWork(
             @PathVariable String orderId,
-            @PathVariable String processId
+            @PathVariable String processId,
+            @PathVariable String userId,
+            @PathVariable String userName
     ) {
 //        if(flowCardService.deleteFlowCardSv(orderId,processId)){
 //            return Result.seccess();
@@ -76,7 +78,7 @@
 //            throw new ServiceException(Constants.Code_500,"鍒犻櫎澶辫触,璇锋鏌ユ槸鍚﹀凡鎶ュ伐");
 //
 //        }
-        return Result.seccess(flowCardService.deleteFlowCardSv(orderId, processId));
+        return Result.seccess(flowCardService.deleteFlowCardSv(orderId, processId,userId,userName));
     }
 
     //淇敼鎺掔増鐘舵��
@@ -157,36 +159,40 @@
 
     @ApiOperation("娴佺▼鍗℃墦鍗版煡璇㈡帴鍙�")
     @SaCheckPermission("SelectPrintFlowCard.search")
-    @PostMapping("/selectPrintFlowCard/{selectTime1}/{selectTime2}/{orderId}/{project}")
+    @PostMapping("/selectPrintFlowCard/{selectTime1}/{selectTime2}/{orderId}/{project}/{userId}")
     public Result selectPrintFlowCard(
             @PathVariable Date selectTime1,
             @PathVariable Date selectTime2,
             @PathVariable String orderId,
             @PathVariable String project,
+            @PathVariable String userId,
             @RequestBody FlowCard flowCard) {
-        return Result.seccess(flowCardService.selectPrintFlowCardSv(selectTime1, selectTime2, orderId, project, flowCard));
+        return Result.seccess(flowCardService.selectPrintFlowCardSv(selectTime1, selectTime2, orderId, project,userId, flowCard));
     }
 
     @ApiOperation("娴佺▼鍗℃槑缁嗘煡璇㈡帴鍙�")
     @SaCheckPermission("PrintFlowCard.search")
-    @PostMapping("/selectPrint/{orderId}")
+    @PostMapping("/selectPrint/{inquiryMode}")
     public Result selectPrint(
-            @PathVariable String orderId,
-            @RequestBody FlowCard flowCard) {
-        return Result.seccess(flowCardService.selectPrintSv(orderId, flowCard));
+            @PathVariable String inquiryMode,
+            @RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.selectPrintSv(object,inquiryMode));
 
     }
 
     @ApiOperation("鎵撳嵃娴佺▼鍗℃暟鎹煡璇㈡帴鍙�")
-    @PostMapping("/getSelectPrinting")
-    public Result getSelectPrinting(@RequestBody Map<String, Object> object) {
-        return Result.seccess(flowCardService.getSelectPrintingSv(object));
+    @PostMapping("/getSelectPrinting/{printMerge}/{printLike}")
+    public Result getSelectPrinting(
+            @PathVariable String printMerge,
+            @PathVariable String printLike,
+            @RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.getSelectPrintingSv(object,printMerge,printLike));
     }
 
     @ApiOperation("鎵撳嵃鏍囩鏁版嵁鏌ヨ鎺ュ彛")
-    @PostMapping("/getSelectPrintLabel/{projectNo}")
-    public Result getSelectPrintLabel(@PathVariable String projectNo) {
-        return Result.seccess(flowCardService.getSelectPrintLabelSv(projectNo));
+    @PostMapping("/getSelectPrintLabel/{projectNo}/{type}")
+    public Result getSelectPrintLabel(@PathVariable String projectNo,@PathVariable String type) {
+        return Result.seccess(flowCardService.getSelectPrintLabelSv(projectNo,type));
     }
 
     @ApiOperation("鎵撳嵃鏍囩鏌ヨ鎺ュ彛")
@@ -215,11 +221,12 @@
     }
 
     @ApiOperation("娴佺▼鍗℃墦鍗版槑缁嗘暟鎹帓搴忔煡璇㈡帴鍙�")
-    @PostMapping("/printFlowCardDetails/{processId}/{technologyNumber}")
+    @PostMapping("/printFlowCardDetails/{processId}/{technologyNumber}/{process}")
     public Result printFlowCardDetails(@PathVariable String processId,
                                        @PathVariable String technologyNumber,
+                                       @PathVariable String process,
                                        @RequestBody FlowCard flowCard) {
-        return Result.seccess(flowCardService.printFlowCardDetailsSv(processId, technologyNumber, flowCard));
+        return Result.seccess(flowCardService.printFlowCardDetailsSv(processId, technologyNumber,process, flowCard));
     }
 
     @ApiOperation("淇濆瓨鎵撳嵃鎺掑簭鎺ュ彛")
@@ -262,4 +269,83 @@
 
         return Result.seccess(flowCardService.updatePrintStateSv(printState,object));
     }
+
+    @ApiOperation("娴佺▼鍗℃墦鍗拌鍗曟暟鎹帓搴忔煡璇㈡帴鍙�")
+    @PostMapping("/printFlowCardOrderSort/{orderId}")
+    public Result printFlowCardOrderSort(@PathVariable String orderId,
+                                       @RequestBody FlowCard flowCard) {
+        return Result.seccess(flowCardService.printFlowCardOrderSortSv(orderId, flowCard));
+    }
+
+    @ApiOperation("淇濆瓨鎵撳嵃璁㈠崟鎺掑簭鎺ュ彛")
+    @PostMapping("/printOrderSort")
+    public Result printOrderSort(@RequestBody Map<String, Object> object) {
+        if (flowCardService.printOrderSort(object)) {
+            return Result.seccess();
+        } else {
+            throw new ServiceException(Constants.Code_500, "淇濆瓨澶辫触");
+
+        }
+    }
+
+    @ApiOperation("鎵撳嵃娴佺▼鍗¤ˉ鐗囨暟鎹煡璇㈡帴鍙�")
+    @PostMapping("/getSelectPrintingRefund/{printMerge}/{printLike}/{mergeTechnologyNumber}")
+    public Result getSelectPrintingRefund(
+            @PathVariable String printMerge,
+            @PathVariable String printLike,
+            @PathVariable String mergeTechnologyNumber,
+            @RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.getSelectPrintingRefundSv(object,printMerge,printLike,mergeTechnologyNumber));
+    }
+
+    @ApiOperation("鎵撳嵃娴佺▼鍗¤繑宸ユ暟鎹煡璇㈡帴鍙�")
+    @PostMapping("/getSelectPrinRework/{printMerge}/{printLike}")
+    public Result getSelectPrinRework(
+            @PathVariable String printMerge,
+            @PathVariable String printLike,
+            @RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.getSelectPrinReworkSv(object,printMerge,printLike));
+    }
+
+    @ApiOperation("娴佺▼鍗℃槑缁嗘寜缂栧彿鏌ヨ鎺ュ彛")
+    @PostMapping("/selectPrintDetails/{inquiryMode}")
+    public Result selectPrintDetails(
+            @PathVariable String inquiryMode,
+            @RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.selectPrintDetailsSv(object,inquiryMode));
+
+    }
+
+    @ApiOperation("鎵撳嵃鑷畾涔夋爣绛炬暟鎹寜缂栧彿鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectPrintCustomLabelDetails/{type}/{lableType}")
+    public Result getSelectPrintCustomLabelDetails( @PathVariable String type,
+                                             @PathVariable Integer lableType,
+                                             @RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.getSelectPrintCustomLabelDetailsSv(type,lableType,object));
+
+    }
+
+    @ApiOperation("鎺掑簭姹囨�绘煡璇㈡帴鍙�")
+    @PostMapping("/selectSortTable")
+    public Result selectSortTable(
+                                  @RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.selectSortTableSv(object));
+    }
+
+    @ApiOperation("鍚堝苟娴佺▼鍗℃帴鍙�")
+    @PostMapping("/mergeFlowCard")
+    public Result mergeFlowCard(@RequestBody Map<String, Object> object) {
+        return Result.seccess(flowCardService.mergeFlowCard(object));
+    }
+    @ApiOperation("姹夌幓鑾峰彇娴佺▼鍗℃帴鍙�")
+    @PostMapping("/getProcessCardList/hanbo")
+    public Result getProcessCard() {
+        return Result.seccess(flowCardService.getProcessCard());
+    }
+
+    @ApiOperation("姹夌幓纭鎺ユ敹鎺ュ彛")
+    @PostMapping("/updateProcessCardState/hanbo")
+    public Result updateProcessCardState(@RequestBody Integer id) {
+        return Result.seccess(flowCardService.updateProcessCardState(id));
+    }
 }

--
Gitblit v1.8.0