From 4b9e197e0308ff6b42c3c941d46fdf366a566c47 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期日, 29 十二月 2024 22:31:43 +0800
Subject: [PATCH] 模板文件样例功能以实现:1、按指定长度自动填充空格 2、按照列表循环生成文件

---
 hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java
index 5ff1a1b..d174f6c 100644
--- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java
+++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/bigstorage/controller/BigStorageCageDetailsController.java
@@ -71,7 +71,7 @@
         return Result.build(200, "鍒犻櫎鎴愬姛", bigStorageCageService.querybigStorageCageDetail());
     }
 
-    @ApiOperation("鐞嗙墖绗间换鍔$牬鎹�0/鎷胯蛋1")
+    @ApiOperation("鐞嗙墖绗肩鍐呯幓鐠冪牬鎹�0/鎷胯蛋1")
     @PostMapping("/damageBigStorageCageDetails")
     public Result damageBigStorageCageDetails(@RequestBody BigStorageCageDetails bigStorageCageDetails, int status) {
         bigStorageCageDetailsService.damageBigStorageCageDetails(bigStorageCageDetails.getGlassId(), status);
@@ -104,12 +104,28 @@
         }
     }
 
+    @ApiOperation("鎸囧畾閽㈠寲宸ョ▼")
+    @PostMapping("/appointTemperingEngineerId")
+    public Result appointTemperingEngineerId(@RequestBody BigStorageCageDetails bigStorageCageDetails) {
+        boolean result = bigStorageCageDetailsService.appointTemperingEngineerId(bigStorageCageDetails.getEngineerId());
+        if (result == true) {
+            return Result.build(200, "鎸囧畾閽㈠寲鎴愬姛", 1);
+        } else {
+            return Result.build(200, "宸插瓨鍦ㄩ挗鍖栦换鍔★紝璇风瓑寰呴挗鍖栧畬鎴愬啀鎸囧畾閽㈠寲", 1);
+        }
+    }
+
     @ApiOperation("閽㈠寲/闈為挗鍖栨煡璇細0 闈為挗鍖�  1锛氶挗鍖�")
     @PostMapping("/selectTemperingGlass")
     public Result<List<TemperingGlassCountDTO>> selectTemperingGlass(int isTempering) {
         return Result.build(200, "鏌ヨ鎴愬姛", bigStorageCageDetailsService.selectTemperingGlass(isTempering));
     }
 
+    @ApiOperation("绗煎唴瀹為檯鏁伴噺鏌ヨ")
+    @PostMapping("/queryRealGlassInfo")
+    public Result<List<BigStorageCageDetails>> queryRealGlassInfo(@RequestBody BigStorageQueryVO bigStorageQueryVO) {
+        return Result.build(200, "鏌ヨ鎴愬姛", bigStorageCageDetailsService.queryRealGlassInfo(bigStorageQueryVO));
+    }
     @ApiOperation("缂虹墖鏁伴噺鏌ヨ")
     @PostMapping("/queryLackGlassInfo")
     public Result<List<GlassInfoLackDTO>> queryLackGlassInfo(@RequestBody BigStorageQueryVO bigStorageQueryVO) {
@@ -163,13 +179,11 @@
             return Result.build(200, "鎸囧畾娴佺▼鍗℃垚鍔�", 1);
         }
     }
-
-    @ApiOperation("鎸囧畾宸ョ▼")
-    @PostMapping("/appointEngineerId")
-    public Result appointEngineerId(@RequestBody BigStorageCageDetails bigStorageCageDetails) {
-        bigStorageCageDetailsService.appointEngineerId(bigStorageCageDetails.getEngineerId());
-        return Result.build(200, "淇敼鎴愬姛", 1);
+    @ApiOperation("澶х悊鐗囩鎶ョ牬鎹�")
+    @PostMapping("/bigStorageGlassDamageByGlassId")
+    public Result<String> bigStorageGlassDamageByGlassId(@RequestBody Map<String, String> map) {
+        String glassId=map.get("glassId");
+        return Result.build(200, "鎶ョ牬鎹熸垚鍔�", bigStorageCageDetailsService.bigStorageGlassDamageByGlassId(glassId));
     }
-
 }
 

--
Gitblit v1.8.0