Browse Source

2024-06-21

master
zelian_wu 2 years ago
parent
commit
dace0307aa
  1. 12
      src/main/java/com/spring/modules/cdc/task/GatherDataTask.java

12
src/main/java/com/spring/modules/cdc/task/GatherDataTask.java

@ -53,19 +53,11 @@ public class GatherDataTask {
@Value("${collect.data.line2Port}") @Value("${collect.data.line2Port}")
private int line2Port; private int line2Port;
private static final String BASE_NO = "last_send_time";
@Autowired
private ICDCBaseDataService cdcBaseDataService;
@Autowired
private ICollectService collectService;
@Autowired @Autowired
private IDeviceService deviceService; private IDeviceService deviceService;
@Autowired @Autowired
private ICollectRecordService collectRecordService; private ICollectRecordService collectRecordService;
@Autowired @Autowired
private ICollectDetailService collectDetailService;
@Autowired
private IMailConfigService mailConfigService; private IMailConfigService mailConfigService;
@Autowired @Autowired
private IMobileService mobileService; private IMobileService mobileService;
@ -94,11 +86,11 @@ public class GatherDataTask {
deviceVos.addAll(readXMZValueList); deviceVos.addAll(readXMZValueList);
log.info("大线:{}",readXMZValueList.stream().map(DeviceVo::getValue).collect(Collectors.toList())); log.info("大线:{}",readXMZValueList.stream().map(DeviceVo::getValue).collect(Collectors.toList()));
}else if (ip.equals(line2IP)){ }else if (ip.equals(line2IP)){
List<DeviceVo> readSLValueList = CollectUtils.getReadSLValueList(deviceList, ip, line2Port, new BigDecimal(line1Value));
List<DeviceVo> readSLValueList = CollectUtils.getReadSLValueList(deviceList, ip, line2Port, new BigDecimal(line2Value));
deviceVos.addAll(readSLValueList); deviceVos.addAll(readSLValueList);
log.info("小线:{}",readSLValueList.stream().map(DeviceVo::getValue).collect(Collectors.toList())); log.info("小线:{}",readSLValueList.stream().map(DeviceVo::getValue).collect(Collectors.toList()));
}else if (ip.equals(line3IP)){ }else if (ip.equals(line3IP)){
List<DeviceVo> readValueList = CollectUtils.getReadValueList(deviceList, ip, new BigDecimal(line1Value));
List<DeviceVo> readValueList = CollectUtils.getReadValueList(deviceList, ip, new BigDecimal(line3Value));
deviceVos.addAll(readValueList); deviceVos.addAll(readValueList);
log.info("配胶间:{}",readValueList.stream().map(DeviceVo::getValue).collect(Collectors.toList())); log.info("配胶间:{}",readValueList.stream().map(DeviceVo::getValue).collect(Collectors.toList()));
}else { }else {

Loading…
Cancel
Save