功能优化
This commit is contained in:
@@ -45,7 +45,7 @@ public class AccessApplicationRunner implements ApplicationRunner {
|
||||
public void run(ApplicationArguments args) {
|
||||
//项目启动60s后发起自动接入
|
||||
Runnable task = () -> {
|
||||
log.info("系统重启,所有符合条件的装置全部接入!");
|
||||
log.info("系统重启,所有符合条件的装置发起接入!");
|
||||
List<CsEquipmentDeliveryPO> list = csEquipmentDeliveryService.getOnlineDev();
|
||||
if (CollUtil.isNotEmpty(list)) {
|
||||
ExecutorService executor = Executors.newFixedThreadPool(10);
|
||||
|
||||
@@ -83,7 +83,7 @@ public class AutoAccessTimer implements ApplicationRunner {
|
||||
|
||||
public void accessDev(List<CsEquipmentDeliveryPO> list) {
|
||||
list.forEach(item->{
|
||||
System.out.println(Thread.currentThread().getName() + ": reboot : nDid : " + item.getNdid());
|
||||
System.out.println(Thread.currentThread().getName() + ": auto : nDid : " + item.getNdid());
|
||||
String version = csTopicService.getVersion(item.getNdid());
|
||||
if (!Objects.isNull(version)){
|
||||
//判断设备类型 便携式设备需要特殊处理 未注册的要先注册、再接入;已注册的直接重新接入
|
||||
|
||||
@@ -33,6 +33,7 @@ public class CsDataSetServiceImpl extends ServiceImpl<CsDataSetMapper, CsDataSet
|
||||
public List<CsDataSet> getDataSetData(String modelId) {
|
||||
return this.lambdaQuery()
|
||||
.eq(CsDataSet::getPid, modelId)
|
||||
.and(item->item.eq(CsDataSet::getConType,1).or().isNull(CsDataSet::getConType))
|
||||
.and(item->item.eq(CsDataSet::getDataType,"Stat").or().isNull(CsDataSet::getDataType))
|
||||
.list();
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ public class EventServiceImpl implements IEventService {
|
||||
//新项目入库
|
||||
WlRecord wlRecord = new WlRecord();
|
||||
wlRecord.setId(IdUtil.simpleUUID());
|
||||
wlRecord.setItemName("基础数据");
|
||||
wlRecord.setItemName("在线监测");
|
||||
wlRecord.setGcName(item.getPrjName());
|
||||
wlRecord.setDevId(vo.getId());
|
||||
wlRecord.setLineId(appEventMessage.getId() + item.getClDid().toString());
|
||||
|
||||
@@ -46,8 +46,6 @@ public class AppAutoDataConsumer extends EnhanceConsumerMessageHandler<AppAutoDa
|
||||
private RocketMqLogFeignClient rocketMqLogFeignClient;
|
||||
@Resource
|
||||
private RtFeignClient rtFeignClient;
|
||||
// @Resource
|
||||
// private WlRecordFeignClient wlRecordFeignClient
|
||||
|
||||
@Override
|
||||
protected void handleMessage(AppAutoDataMessage appAutoDataMessage) {
|
||||
|
||||
Reference in New Issue
Block a user