From dae61fa269844f76ccc9edf9eb316ef5c3dd0798 Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期一, 06 五月 2024 07:57:56 +0800 Subject: [PATCH] 根据客户需求修改复位倒计时,修改手动页面英文显示 --- springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java b/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java index d007afd..8cc5317 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java +++ b/springboot-vue3/src/main/java/com/example/springboot/service/StorageCageService.java @@ -18,6 +18,8 @@ import com.example.springboot.entity.north_glass_buffer1; import com.example.springboot.mapper.HomeMapper; +import lombok.extern.slf4j.Slf4j; +@Slf4j @Service public class StorageCageService { @Autowired @@ -57,6 +59,7 @@ ClearGlassId("DB101.10.3"); outSliceServive.StopTask(storageTask.getGlassId(), types); } + log.info("stopfeedid:"+storageTask.getGlassId()+"D02id:"+D02glassid+"devicestate:"+DeviceList.get(1)); if (storageTask.getGlassId().equals(D02glassid) && DeviceList.get(1) == 0) { ClearGlassId("DB101.9.3"); outSliceServive.StopTask(storageTask.getGlassId(), types); @@ -195,7 +198,7 @@ Short zhi = 200; short result = homeMapper.SelectStorageByGlassId(queue.getglassId()); if (result > 0) { - map.put("message", "300"); + map.put("message", "500"); } else { if (id == 1) { // 璋冪敤浼嶅瓨鍌ㄨ繃绋� @@ -213,4 +216,29 @@ return Result.success(map); } + public Short InsertQueueGlassIds(Short id, Queue queue) throws SQLException { + Map<String, Object> map = new HashMap<>(); + + Short zhi = 0; + short result = homeMapper.SelectStorageByGlassId(queue.getglassId()); + if (result > 0) { + zhi=500; + map.put("message", "500"); + } else { + if (id == 1) { + // 璋冪敤浼嶅瓨鍌ㄨ繃绋� + north_glass_buffer1 north_glass_buffer1 = jdbcConnections.SelectGlassByGlassIdOrderIdFrameId(queue.getglassId(), "", ""); + zhi = spianService.selectAll(north_glass_buffer1); + if (zhi == 200) { + homeMapper.InsertQueueGlassId(queue, id); + } + } + map.put("message", zhi); + } + if (zhi != 200) { + Plchome.FeedState = true; + } + return zhi; + } + } -- Gitblit v1.8.0