From bbc5784cc34d65e64d639d949e75b978fe07bdb3 Mon Sep 17 00:00:00 2001 From: yyt <306727702@qq.com> Date: 星期一, 06 五月 2024 12:30:48 +0800 Subject: [PATCH] 更新首页 --- jcdm-main/src/main/java/com/jcdm/main/plcserver/CustomRunner.java | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/jcdm-main/src/main/java/com/jcdm/main/plcserver/CustomRunner.java b/jcdm-main/src/main/java/com/jcdm/main/plcserver/CustomRunner.java index 970139d..65fc450 100644 --- a/jcdm-main/src/main/java/com/jcdm/main/plcserver/CustomRunner.java +++ b/jcdm-main/src/main/java/com/jcdm/main/plcserver/CustomRunner.java @@ -1,12 +1,15 @@ package com.jcdm.main.plcserver; +import com.jcdm.main.bs.orderScheduling.service.IBsOrderSchedulingService; +import com.jcdm.main.bs.technologyRouteChild.service.IBsTechnologyRouteChildInfoService; import com.jcdm.main.da.collectionParamConf.service.IDaCollectionParamConfService; import com.jcdm.main.da.opcuaconfig.domain.DaOpcuaConfig; import com.jcdm.main.da.opcuaconfig.service.IDaOpcuaConfigService; import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService; import com.jcdm.main.da.passingStationCollection.service.impl.DaPassingStationCollectionServiceImpl; import com.jcdm.main.plcserver.sub.OPCUaSubscription; +import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService; import com.kangaroohy.milo.service.MiloService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; @@ -35,6 +38,15 @@ @Resource private IDaOpcuaConfigService iDaOpcuaConfigService; + @Resource + private IBsOrderSchedulingService bsOrderSchedulingService; + + @Resource + private IRmRepairRecordService rmRepairRecordService; + + @Resource + private IBsTechnologyRouteChildInfoService bsTechnologyRouteChildInfoService; + @Override public void run(ApplicationArguments args) throws Exception { @@ -43,9 +55,12 @@ OPCUaSubscription opcUaSubscription = new OPCUaSubscription( miloService, collectionParamConfService, - daParamCollectionService - ,passingStationCollectionServiceImpl, - lists); + daParamCollectionService, + passingStationCollectionServiceImpl, + bsOrderSchedulingService, + lists, + rmRepairRecordService, + bsTechnologyRouteChildInfoService); miloService.subscriptionFromOpcUa(collect,opcUaSubscription); @@ -57,6 +72,7 @@ */ public List<DaOpcuaConfig> getSubList(){ DaOpcuaConfig config = new DaOpcuaConfig(); + config.setState(0); List<DaOpcuaConfig> list = iDaOpcuaConfigService.selectDaOpcuaConfigList(config); // List<String> lists = new ArrayList<>(); // if (CollUtil.isNotEmpty(list)){ -- Gitblit v1.9.3