From ad71edbf0f9d2cf2bc46cd2ba1e0239f80949e68 Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期四, 21 十二月 2023 15:12:56 +0800 Subject: [PATCH] 增加清除id调用终止出片任务 --- springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 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 c832698..ff2c6d6 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 @@ -47,18 +47,21 @@ @RequestMapping("/home") public class HomeController { @Autowired + HomeMapper homeMapper; @Autowired HomeService storageRackService; @Autowired + SpianService spianService; @Autowired SpianMapper spianMapper; @Autowired + OutSliceServive outSliceServive; @Autowired @@ -139,7 +142,7 @@ // 鎵嬪姩瀹屾垚杩�/鍑虹墖浠诲姟 缁堟杩涚墖/鍑虹墖浠诲姟 @GetMapping("/UpdateTask") - public Result UpdateTask(Integer types, Integer shelfrack, String glassid) { + public Result UpdateTask(Integer types, Integer shelfrack, String glassid) { Map<String, Object> map = new HashMap<>(); if (types == 0) {// 瀹屾垚杩涚墖 spianService.overtask(glassid); @@ -157,7 +160,7 @@ //缁堟杩涚墖/鍑虹墖浠诲姟 @GetMapping("/EndTask") - public Result EndTask(int types) { + public Result EndTask(int types) { if (types == 0) {// 缁堟杩涚墖浠诲姟 List<StorageTask> cageList = homeMapper.SelectTaskByState(types); for (StorageTask storageTask : cageList) { @@ -221,6 +224,7 @@ String position = jdbcConnections.SelectPositionByFrameBarcode(north_glass_buffer1.getFrameBarcode()); if (position != null) { int sequence = homeMapper.SelectMaxSquence(); + homeMapper.AddOutSliceS(glassid, flip, north_glass_buffer1.getFrameBarcode(), north_glass_buffer1.getglasslengthmm().toString(), north_glass_buffer1.getglassheightmm().toString(), sequence, position, (short) 0, north_glass_buffer1.getordernumber(), north_glass_buffer1.getlistnumber(), -- Gitblit v1.8.0