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 | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 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 8ce263e..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 @@ -217,6 +217,37 @@ return Result.success(map); } + //鎵嬪姩娣诲姞鎵爜浣嶇幓鐠� + @PostMapping("/InsertQueueGlassId") + public Result InsertQueueGlassId(String glassid,Short id) { + Map<String, Object> map = new HashMap<>(); + 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