From be244a9e202ef069ccb57040ffbec59c89d40cfd Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期二, 21 十一月 2023 10:32:24 +0800
Subject: [PATCH] 电气管理增加渲染变频器参数页面、大车笼子定位页面、小车笼子定位页面

---
 springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 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 631af41..7d20171 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
@@ -219,20 +219,35 @@
 
     //鎵嬪姩娣诲姞鎵爜浣嶇幓鐠�
     @PostMapping("/InsertQueueGlassId")
-    public Result InsertQueueGlassId(String glassid) {
-        homeMapper.InsertQueueGlassId(glassid);
+    public Result InsertQueueGlassId(String glassid,Short id) {
         Map<String, Object> map = new HashMap<>();
-        map.put("message", "200");
+        short result = homeMapper.SelectStorageByGlassId(glassid);
+        if (result > 0) {
+            map.put("message", "300");
+        }else{
+            homeMapper.InsertQueueGlassId(glassid,id);
+            map.put("message", "200");
+        }
         return Result.success(map);
     }
     
-    //鎵嬪姩娣诲姞鎵爜浣嶇幓鐠�
+    //纭鎵爜浣嶇幓鐠冧俊鎭�
     @PostMapping("/UpdateQueueState")
     public Result UpdateQueueState() {
         homeMapper.UpdateQueueState();
         Map<String, Object> map = new HashMap<>();
         map.put("message", "200");
         return Result.success(map);
-    }   
+    }
+
+    //娓呴櫎涓婄墖闃熷垪鐜荤拑
+    @PostMapping("/DeleteQueueGlass")
+    public Result DeleteQueueGlass(String id) {
+        homeMapper.DeleteQueueGlass(id);
+        Map<String, Object> map = new HashMap<>();
+        map.put("message", "200");
+        return Result.success(map);
+    }
+    
     
 }

--
Gitblit v1.8.0