修改默认停站时间、运行等级校验
This commit is contained in:
parent
fa4383cce6
commit
197819a417
@ -28,6 +28,9 @@ public class UserConfigDataBuilder {
|
||||
Function.identity()));
|
||||
}
|
||||
List<MapStationRunLevelVO> runLevelList = map.getLogicDataNew().getRunLevelList();
|
||||
if (CollectionUtils.isEmpty(runLevelList)) {
|
||||
errMsgList.add("无默认运行等级数据");
|
||||
}
|
||||
for (MapStationRunLevelVO vo : runLevelList) {
|
||||
String key = StationRunLevel.buildKey(vo.getStartSectionCode(), vo.getEndSectionCode());
|
||||
voMap.putIfAbsent(key, new RunPlanRunlevelVO(vo));
|
||||
@ -52,9 +55,6 @@ public class UserConfigDataBuilder {
|
||||
stationRunLevel.setL5(vo.getL5());
|
||||
runLevelMap.putIfAbsent(stationRunLevel.buildKey(), stationRunLevel);
|
||||
}
|
||||
if (CollectionUtils.isEmpty(runLevelMap)) {
|
||||
errMsgList.add("无运行等级数据");
|
||||
}
|
||||
repository.setRunLevelMap(runLevelMap);
|
||||
}
|
||||
|
||||
@ -66,6 +66,9 @@ public class UserConfigDataBuilder {
|
||||
.collect(Collectors.toMap(RunPlanParkingTimeVO::getSectionCode, Function.identity()));
|
||||
}
|
||||
List<MapStationParkingTimeVO> parkingTimeList = map.getLogicDataNew().getParkingTimeList();
|
||||
if (CollectionUtils.isEmpty(parkingTimeList)) {
|
||||
errMsgList.add("无默认停站时间数据");
|
||||
}
|
||||
for (MapStationParkingTimeVO vo : parkingTimeList) {
|
||||
voMap.putIfAbsent(vo.getSectionCode(), new RunPlanParkingTimeVO(vo));
|
||||
}
|
||||
@ -75,9 +78,6 @@ public class UserConfigDataBuilder {
|
||||
StationParkTime stationParkTime = new StationParkTime(section, vo.getParkingTime());
|
||||
parkTimeMap.putIfAbsent(section.getCode(), stationParkTime);
|
||||
}
|
||||
if (CollectionUtils.isEmpty(parkTimeMap)) {
|
||||
errMsgList.add("无停站时间数据");
|
||||
}
|
||||
repository.setParkTimeMap(parkTimeMap);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user