|
|
@ -819,6 +819,7 @@ public class PatrolResultServiceImpl implements IPatrolResultService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
patrolResultRef.setDevType(value.stream().map(item -> item.getDevType() != null ? item.getDevType() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setDevType(value.stream().map(item -> item.getDevType() != null ? item.getDevType() : "").distinct().findFirst().orElse("")); |
|
|
|
|
|
patrolResultRef.setDeviceSource(value.stream().map(item -> item.getDeviceSource() != null ? item.getDeviceSource() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setTime(value.stream().map(item -> item.getTime() != null ? item.getTime() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setTime(value.stream().map(item -> item.getTime() != null ? item.getTime() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setThreshold(value.stream().map(item -> item.getThreshold() != null ? item.getThreshold() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setThreshold(value.stream().map(item -> item.getThreshold() != null ? item.getThreshold() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setAlgName(value.get(0).getAlgName()); |
|
|
patrolResultRef.setAlgName(value.get(0).getAlgName()); |
|
|
@ -860,7 +861,7 @@ public class PatrolResultServiceImpl implements IPatrolResultService { |
|
|
reportData.setEqName(basePointAreaInfo.getMainName()); |
|
|
reportData.setEqName(basePointAreaInfo.getMainName()); |
|
|
reportData.setParts(basePointAreaInfo.getDeviceName()); |
|
|
reportData.setParts(basePointAreaInfo.getDeviceName()); |
|
|
reportData.setPointName(basePointAreaInfo.getPatrolPointName()); |
|
|
reportData.setPointName(basePointAreaInfo.getPatrolPointName()); |
|
|
reportData.setDataSources("0".equals(devType) ? messageUtils.get("无人机") : "1".equals(devType) ? messageUtils.get("机器人") : messageUtils.get("高清视频")); |
|
|
|
|
|
|
|
|
reportData.setDataSources(patrolResultRef.getDeviceSource()); |
|
|
reportData.setAcquisitionTime(DateUtils.parse(DateUtils.yyyyMMddHHmmss2, patrolResultRef.getTime())); |
|
|
reportData.setAcquisitionTime(DateUtils.parse(DateUtils.yyyyMMddHHmmss2, patrolResultRef.getTime())); |
|
|
if ("1".equals(patrolResultRef.getResultType()) && validAlgTypes.contains(patrolResultRef.getAlgType())) { |
|
|
if ("1".equals(patrolResultRef.getResultType()) && validAlgTypes.contains(patrolResultRef.getAlgType())) { |
|
|
reportData.setInspectionResults(patrolResultRef.getValue()); |
|
|
reportData.setInspectionResults(patrolResultRef.getValue()); |
|
|
@ -1366,6 +1367,7 @@ public class PatrolResultServiceImpl implements IPatrolResultService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
patrolResultRef.setDevType(value.stream().map(item -> item.getDevType() != null ? item.getDevType() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setDevType(value.stream().map(item -> item.getDevType() != null ? item.getDevType() : "").distinct().findFirst().orElse("")); |
|
|
|
|
|
patrolResultRef.setDeviceSource(value.stream().map(item -> item.getDeviceSource() != null ? item.getDeviceSource() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setTime(value.stream().map(item -> item.getTime() != null ? item.getTime() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setTime(value.stream().map(item -> item.getTime() != null ? item.getTime() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setThreshold(value.stream().map(item -> item.getThreshold() != null ? item.getThreshold() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setThreshold(value.stream().map(item -> item.getThreshold() != null ? item.getThreshold() : "").distinct().findFirst().orElse("")); |
|
|
patrolResultRef.setAlgName(value.get(0).getAlgName()); |
|
|
patrolResultRef.setAlgName(value.get(0).getAlgName()); |
|
|
@ -1401,7 +1403,7 @@ public class PatrolResultServiceImpl implements IPatrolResultService { |
|
|
reportData.setEqName(basePointAreaInfo.getMainName()); |
|
|
reportData.setEqName(basePointAreaInfo.getMainName()); |
|
|
reportData.setParts(basePointAreaInfo.getDeviceName()); |
|
|
reportData.setParts(basePointAreaInfo.getDeviceName()); |
|
|
reportData.setPointName(basePointAreaInfo.getPatrolPointName()); |
|
|
reportData.setPointName(basePointAreaInfo.getPatrolPointName()); |
|
|
reportData.setDataSources("0".equals(devType) ? messageUtils.get("无人机") : "1".equals(devType) ? messageUtils.get("机器人") : messageUtils.get("高清视频")); |
|
|
|
|
|
|
|
|
reportData.setDataSources(patrolResultRef.getDeviceSource()); |
|
|
reportData.setAcquisitionTime(DateUtils.parse(DateUtils.yyyyMMddHHmmss2, patrolResultRef.getTime())); |
|
|
reportData.setAcquisitionTime(DateUtils.parse(DateUtils.yyyyMMddHHmmss2, patrolResultRef.getTime())); |
|
|
if ("1".equals(patrolResultRef.getResultType()) && validAlgTypes.contains(patrolResultRef.getAlgType())) { |
|
|
if ("1".equals(patrolResultRef.getResultType()) && validAlgTypes.contains(patrolResultRef.getAlgType())) { |
|
|
reportData.setInspectionResults(patrolResultRef.getValue()); |
|
|
reportData.setInspectionResults(patrolResultRef.getValue()); |
|
|
|