From f68d3c71819feb59e7a227a5d992b059b900916c Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期五, 28 三月 2025 08:28:26 +0800 Subject: [PATCH] 修改报表,界面添加查询流程卡个数,调整推送数据到前端的间隔 --- hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/job/PlcSlicecage.java | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/job/PlcSlicecage.java b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/job/PlcSlicecage.java index 2170ec9..c0e3a13 100644 --- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/job/PlcSlicecage.java +++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/job/PlcSlicecage.java @@ -6,12 +6,12 @@ import com.mes.bigstorage.entity.BigStorageCageDetails; import com.mes.bigstorage.service.BigStorageCageDetailsService; import com.mes.bigstorage.service.BigStorageCageService; -import com.mes.common.utils.RedisUtil; import com.mes.glassinfo.entity.GlassInfo; import com.mes.glassinfo.service.GlassInfoService; import com.mes.temperingglass.entity.TemperingGlassInfo; import com.mes.temperingglass.service.TemperingGlassInfoService; import com.mes.tools.WebSocketServer; +import com.mes.utils.RedisUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; @@ -118,17 +118,16 @@ * fixedRate : 涓婁竴涓皟鐢ㄥ紑濮嬪悗鍐嶆璋冪敤鐨勫欢鏃讹紙涓嶇敤绛夊緟涓婁竴娆¤皟鐢ㄥ畬鎴愶級 * fixedDelay : 涓婁竴涓皟鐢ㄧ粨鏉熷悗鍐嶆璋冪敤鐨勫欢鏃� */ - @Scheduled(fixedDelay = 300) + @Scheduled(fixedDelay = 3000) public void plcStorageCageTask() throws InterruptedException { jsonObject = new JSONObject(); try { - //鏌ヨ浣跨敤鏁版嵁婧�1鏌ヨ鏁版嵁 - queryDataSource1(); - //鏌ヨ浣跨敤鏁版嵁婧�2鏌ヨ鏁版嵁 - queryDataSource2(); - ArrayList<WebSocketServer> sendwServer = WebSocketServer.sessionMap.get("slicecage"); if (sendwServer != null) { + //鏌ヨ浣跨敤鏁版嵁婧�1鏌ヨ鏁版嵁 + queryDataSource1(); + //鏌ヨ浣跨敤鏁版嵁婧�2鏌ヨ鏁版嵁 + queryDataSource2(); for (WebSocketServer webserver : sendwServer) { if (webserver != null) { webserver.sendMessage(jsonObject.toString()); @@ -147,7 +146,7 @@ } } - @Scheduled(fixedDelay = 300) + @Scheduled(fixedDelay = 3000) public void temperingIsRun() { JSONObject jsonObject = new JSONObject(); //杩涚墖浠诲姟鏁版嵁 -- Gitblit v1.8.0