From ad97e59dc3198f90f685c6538998624fa07cc199 Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期四, 07 十二月 2023 13:09:00 +0800 Subject: [PATCH] 出片队列添加手动完成任务 --- springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java index 8d1b7c3..b2dadd3 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java @@ -1,9 +1,7 @@ package com.example.springboot.component; import cn.hutool.json.JSONObject; -import cn.hutool.poi.excel.sax.handler.MapRowHandler; - -import java.sql.SQLException; +import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; @@ -16,6 +14,7 @@ import com.example.springboot.mapper.SpianMapper; import com.example.springboot.service.JdbcConnections; import com.example.springboot.service.North_Glass_Buffer1Service; +import com.example.springboot.service.OutSliceServive; import com.example.springboot.service.SpianService; @@ -23,6 +22,7 @@ @Autowired private HomeMapper homeMapper; + private OutSliceServive outSliceServive; private SpianMapper spianMapper; private SpianService spianService; private North_Glass_Buffer1Service north_Glass_Buffer1Service; @@ -32,7 +32,7 @@ //閾濇id public static String FrameNo; //鏄惁闇�瑕佹墜鍔ㄧ‘璁ょ幓鐠� - public static Boolean isConfirm=true; + public static Boolean isConfirm=false; // public static Map b=new HashMap<>(); // b.put() @Override @@ -49,6 +49,7 @@ homeMapper = WebSocketServer.applicationContext.getBean(HomeMapper.class); spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class); spianService = WebSocketServer.applicationContext.getBean(SpianService.class); + outSliceServive = WebSocketServer.applicationContext.getBean(OutSliceServive.class); north_Glass_Buffer1Service = WebSocketServer.applicationContext.getBean(North_Glass_Buffer1Service.class); // 绗煎瓙浣跨敤鎯呭喌 List<StorageCage> tableData = homeMapper.selectAll(); @@ -89,10 +90,11 @@ // if (inglassInfo.size() > 0) // jsonObject.append("loadglassheight", inglassInfo.get(0) * 70); // } + // 浼� 鑾峰彇杩涙槸鍚︽湁寰呯‘璁ょ殑鐜荤拑id String queid = spianMapper.Selectqueueid(); int state = spianMapper.Selectqueuestate(); - jsonObject.append("state", queid); + jsonObject.append("queid", queid); jsonObject.append("state", state); // 鑾峰彇鎵爜浣嶄笌涓婄墖浣嶇幓鐠冧俊鎭� Queue form2 = homeMapper.GetQueueInfo(2); @@ -104,10 +106,11 @@ jsonObject.append("form3", form3); } // 鑾峰彇鍑虹墖闃熷垪淇℃伅 - List<Out_slice> listoutslice = homeMapper.SelectProductionqueue(); - for (Out_slice out_slice : listoutslice) { - out_slice.setstorageCage(homeMapper.SelectStorageGlassById(out_slice.getGlassId())); - } + List<Out_slice> listoutslice=outSliceServive.SelectProductionqueue(); + // List<Out_slice> listoutslice = homeMapper.SelectProductionqueue(); + // for (Out_slice out_slice : listoutslice) { + // out_slice.setstorageCage(homeMapper.SelectStorageGlassById(out_slice.getGlassId())); + // } jsonObject.append("listoutslice", listoutslice); //鑾峰彇褰撳墠鍑虹墖闃熷垪鐘舵�� jsonObject.append("isAllowQueue",Plchome.isAllowQueue); -- Gitblit v1.8.0