Browse Source

Merge remote-tracking branch 'origin/prod-20240506' into prod-20240506

zhongwei
yang_shj 6 months ago
parent
commit
2a4b94eea9
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/report/service/impl/OperStationMonthReportServiceImpl.java

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/report/service/impl/OperStationMonthReportServiceImpl.java

@ -487,9 +487,11 @@ public class OperStationMonthReportServiceImpl implements IOperStationMonthRepor
fdpRunReportVO.setIndex(index); fdpRunReportVO.setIndex(index);
fdpRunReportVO.setLastBeginTime(fdpFaultHistoryDataEntity.getCreateTime()); fdpRunReportVO.setLastBeginTime(fdpFaultHistoryDataEntity.getCreateTime());
fdpRunReportVO.setType("智能预警"); fdpRunReportVO.setType("智能预警");
fdpRunReportVO.setOrd(fdpFaultHistoryDataEntity.getOrd()); fdpRunReportVO.setOrd(fdpFaultHistoryDataEntity.getOrd()==null?"":fdpFaultHistoryDataEntity.getOrd());
List<StationEntity> stationEntities = stationEntityList.stream().filter(s -> s.getCode().equals(fdpFaultHistoryDataEntity.getStation())).collect(Collectors.toList()); List<StationEntity> stationEntities = stationEntityList.stream().filter(s -> s.getCode().equals(fdpFaultHistoryDataEntity.getStation())).collect(Collectors.toList());
if (CollectionUtil.isNotEmpty(stationEntities)){
fdpRunReportVO.setStation(stationEntities.get(0).getName()); fdpRunReportVO.setStation(stationEntities.get(0).getName());
}
fdpRunReportVO.setContent(fdpFaultHistoryDataEntity.getName()); fdpRunReportVO.setContent(fdpFaultHistoryDataEntity.getName());
fdpRunReportVO.setNum(String.valueOf(fdpFaultHistoryDataEntities.size())); fdpRunReportVO.setNum(String.valueOf(fdpFaultHistoryDataEntities.size()));
fdpRunReportVO.setReason(fdpFaultHistoryDataEntity.getDiagReason()); fdpRunReportVO.setReason(fdpFaultHistoryDataEntity.getDiagReason());

Loading…
Cancel
Save