|
|
|
@ -624,9 +624,12 @@ public class ReportServiceImpl implements ReportService {
|
|
|
|
|
List<PlanGenerationEntity> plans = planService.planGeneration(stations.stream().map(StationEntity::getCode).collect(Collectors.toList()), null ,DateUtil.format(new Date(),"yyyy")); |
|
|
|
|
// 查询站点设备
|
|
|
|
|
List<RideDeviceVo> devices = deviceService.rideDevices(stations.stream().map(StationEntity::getRefDept).collect(Collectors.toList())); |
|
|
|
|
List<RunMonthEntity> runs = new ArrayList<>(); |
|
|
|
|
stations.forEach(station->{ |
|
|
|
|
RunMonthEntity run = new RunMonthEntity(); |
|
|
|
|
run.setTenantId(station.getTenantId()); |
|
|
|
|
run.setCreateDept(station.getRefDept()); |
|
|
|
|
run.setCreateUser(station.getCreateUser()); |
|
|
|
|
run.setUpdateUser(station.getUpdateUser()); |
|
|
|
|
run.setStationCode(station.getCode()); |
|
|
|
|
run.setStationName(station.getName()); |
|
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
@ -645,9 +648,9 @@ public class ReportServiceImpl implements ReportService {
|
|
|
|
|
run.setCurveData(this.curveData(stationDevices)); |
|
|
|
|
// TODO 运行数据分析
|
|
|
|
|
// TODO 运行建议及其他
|
|
|
|
|
runs.add(run); |
|
|
|
|
runMonService.save(run); |
|
|
|
|
}); |
|
|
|
|
runMonService.saveBatch(runs); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|