From a29bf5164c1b8bdd35b48f879673706db88f855f Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期二, 23 四月 2024 16:45:11 +0800
Subject: [PATCH] 添加启用禁用的确认提示框

---
 springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java |   30 +++++-------------------------
 1 files changed, 5 insertions(+), 25 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java b/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
index 69666cd..e06e23f 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
@@ -180,7 +180,7 @@
       north_glass_buffer1 north_glass_buffer1 = jdbcConnections.SelectGlassByGlassIdOrderIdFrameId(glassid, "", "");
       String flip = jdbcConnections.SelectFlipByFrameBarcode(north_glass_buffer1.getFrameBarcode());
 
-      if (flip != null) {
+      if (flip != null&&flip != "") {
         String position = jdbcConnections.SelectPositionByFrameBarcode(north_glass_buffer1.getFrameBarcode());
         if (position != null) {
           String framelength = jdbcConnections.SelectFrameLengthByFrameBarcode(north_glass_buffer1.getFrameBarcode());
@@ -274,24 +274,8 @@
   // 鎵嬪姩娣诲姞鎵爜浣嶇幓鐠�
   @PostMapping("/InsertQueueGlassId")
   public Result InsertQueueGlassId(Short id, @RequestBody Queue queue) {
-    Map<String, Object> map = new HashMap<>();
-    Short zhi=200;
-    short result = homeMapper.SelectStorageByGlassId(queue.getglassId());
-    if (result > 0) {
-      map.put("message", "300");
-    } else {
-      
-      if (id == 1) {
-        // 璋冪敤浼嶅瓨鍌ㄨ繃绋�
-        zhi=spianService.selectAll(queue.getglassId());
-        if(zhi==200){
-          homeMapper.InsertQueueGlassId(queue, id);
-        }
-      }
-      
-      map.put("message",zhi);
-    }
-    return Result.success(map);
+    return storageCageService.InsertQueueGlassId(id, queue);
+    
   }
 
   // 纭鎵爜浣嶇幓鐠冧俊鎭�
@@ -335,11 +319,7 @@
   // 鏍规嵁閾濇id鍒犻櫎鍑虹墖闃熷垪鐜荤拑
   @PostMapping("/DeleteProductionQueueGlass")
   public Result DeleteProductionQueueGlass(String FrameNo) {
-    homeMapper.CompleteQueueByFrameNo(FrameNo);
-
-    Map<String, Object> map = new HashMap<>();
-    map.put("message", "200");
-    return Result.success(map);
+    return outSliceServive.CompleteQueueByFrameNo(FrameNo);
   }
 
   // 娣诲姞閾濇id瀵瑰簲鐜荤拑鍒板嚭鐗囬槦鍒�
@@ -382,7 +362,7 @@
     return Result.success(map);
   }
 
-  // 淇敼鍑虹墖闃熷垪鐘舵�佷笌鍑虹墖闃熷垪璋冨簭
+  // 淇槸鍚﹂渶瑕佺‘璁�
   @PostMapping("/isConfirmStates")
   public Result isConfirmStates(Boolean isConfirmStates) {
     Plchome.isConfirm = isConfirmStates;

--
Gitblit v1.8.0