蓝线调整

This commit is contained in:
tiger_zhou 2023-12-22 10:31:20 +08:00
parent bf5e64a6c2
commit 37402ba638
2 changed files with 5 additions and 1 deletions

View File

@ -138,6 +138,10 @@ public class LineGraphicDataRepository {
} }
} }
private void initDeviceStationCenter() {
}
public static Optional<Platform> findLayoutPlatformFromSection(Integer lineId, String sectionName) { public static Optional<Platform> findLayoutPlatformFromSection(Integer lineId, String sectionName) {
MessageOrBuilder sectionMsg = LineGraphicDataRepository.getDeviceByCodeNotException(lineId, sectionName); MessageOrBuilder sectionMsg = LineGraphicDataRepository.getDeviceByCodeNotException(lineId, sectionName);
if (Objects.isNull(sectionMsg)) { if (Objects.isNull(sectionMsg)) {

View File

@ -97,7 +97,7 @@ public class BuleDisplayMonitoringTask implements AlertMonitoringTask {
if (allShutdownList.size() == interLockCount && allShutdownList.stream().allMatch(d -> d)) { if (allShutdownList.size() == interLockCount && allShutdownList.stream().allMatch(d -> d)) {
if (alertManager.putAlterDevice(lineId, ALL_BULE_DISPLAY_NAME, "All")) { if (alertManager.putAlterDevice(lineId, ALL_BULE_DISPLAY_NAME, "All")) {
NccAlertInfo alertInfo = this.alertInfoService.createAlert2(null, AlertType.BLUE_DISPLAY, lineId, LocalDateTime.now(), "全线蓝线", null, NccAlertInfo alertInfo = this.alertInfoService.createAlert2(null, AlertType.ALL_LINE_BLUE_DISPLAY, lineId, LocalDateTime.now(), "全线蓝线", null,
AlertDeviceType.DEVICE_TYPE_RTU, false); AlertDeviceType.DEVICE_TYPE_RTU, false);
alertManager.emit(alertInfo); alertManager.emit(alertInfo);
} }