From a62fc01c617ed7d6837d897a120905c2b307ad89 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期一, 22 一月 2024 09:02:28 +0800 Subject: [PATCH] 增加汇报写入判断限制 --- springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 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 f2f32ee..69666cd 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 @@ -275,16 +275,21 @@ @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 { - homeMapper.InsertQueueGlassId(queue, id); + if (id == 1) { // 璋冪敤浼嶅瓨鍌ㄨ繃绋� - spianService.selectAll(queue.getglassId()); + zhi=spianService.selectAll(queue.getglassId()); + if(zhi==200){ + homeMapper.InsertQueueGlassId(queue, id); + } } - map.put("message", "200"); + + map.put("message",zhi); } return Result.success(map); } -- Gitblit v1.8.0