From 02609fcedd8fb55383da0a1f823a8cba913510e7 Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期一, 26 五月 2025 09:03:10 +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/GlassOptimizeController.java |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/pp/GlassOptimizeController.java b/north-glass-erp/src/main/java/com/example/erp/controller/pp/GlassOptimizeController.java
index 046fd12..e6f0a0e 100644
--- a/north-glass-erp/src/main/java/com/example/erp/controller/pp/GlassOptimizeController.java
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/pp/GlassOptimizeController.java
@@ -33,10 +33,10 @@
     private UserService userService;
     //宸ョ▼淇℃伅
     @ApiOperation("宸ョ▼淇℃伅鎺ュ彛")
-    @PostMapping  ("/projectInfo/{projectNo}")
+    @PostMapping  ("/projectInfo/{projectNo}/{username}")
     public Result projectInfo(
-            @PathVariable String projectNo){
-        return Result.seccess(glassOptimizeService.projectInfoSv(projectNo));
+            @PathVariable String projectNo,@PathVariable String username){
+        return Result.seccess(glassOptimizeService.projectInfoSv(projectNo,username));
     }
 
     //宸ョ▼淇℃伅娴佺▼鍗�
@@ -53,8 +53,8 @@
     public Result materialStore(
             @PathVariable  String thickness,
             @PathVariable  String model,@PathVariable  String projectNumber,
-            @RequestParam(name = "type", required = false) Integer type ){
-        return Result.seccess(glassOptimizeService.materialStoreSv(thickness,model,projectNumber,type));
+            @RequestParam(name = "type", required = false) Integer type,@RequestParam(name = "username", required = false) String username  ){
+        return Result.seccess(glassOptimizeService.materialStoreSv(thickness,model,projectNumber,type,username));
     }
 
 
@@ -271,15 +271,15 @@
         return new ResponseEntity<>(optContent.getBytes(), headers, HttpStatus.OK);
     }
 
-    @PostMapping("/getConfiguration/{type}")
-    public Result getConfiguration(@PathVariable String type) {
-        return Result.seccess(glassOptimizeService.getConfiguration(type));
+    @PostMapping("/getConfiguration/{type}/{username}")
+    public Result getConfiguration(@PathVariable String type,@PathVariable String username) {
+        return Result.seccess(glassOptimizeService.getConfiguration(type,username));
     }
 
     @ApiOperation("淇墖纾ㄩ噺淇敼")
-    @PostMapping("/saveConfiguration/{type}")
-    public Result saveConfiguration(@PathVariable String type, @RequestBody Map<String,Object>  object){
-        return Result.seccess(glassOptimizeService.saveConfiguration(object,type));
+    @PostMapping("/saveConfiguration/{type}/{username}")
+    public Result saveConfiguration(@PathVariable String type,@PathVariable String username, @RequestBody Map<String,Object>  object){
+        return Result.seccess(glassOptimizeService.saveConfiguration(object,type,username));
     }
 
     @ApiOperation("妯℃嫙鎺掔増")

--
Gitblit v1.8.0