|
|
|
|
@ -907,17 +907,17 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
task.setStartStationRegion(station.getStationRegion()); |
|
|
|
|
|
|
|
|
|
// 查询站台中心(可能为null)
|
|
|
|
|
StationCenter stationCenter = stationCenterService.selectByStationId(station.getId()); |
|
|
|
|
if (stationCenter == null) { |
|
|
|
|
List<StationCenter> stationCenterList = stationCenterService.selectByStationId(station.getId()); |
|
|
|
|
if (CollectionUtils.isEmpty(stationCenterList)) { |
|
|
|
|
log.warn("未找到站台中心信息, stationId: {}", station.getId()); |
|
|
|
|
return task; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 安全设置工作中心ID
|
|
|
|
|
if (stationCenter.getWcId() != null) { |
|
|
|
|
task.setStartWcId(stationCenter.getWcId()); |
|
|
|
|
if (stationCenterList.size() == 1) { |
|
|
|
|
task.setStartWcId(stationCenterList.get(0).getWcId()); |
|
|
|
|
} else { |
|
|
|
|
log.warn("站台中心的工作中心ID为空, stationCenterId: {}", stationCenter.getId()); |
|
|
|
|
log.warn("站台中心的工作中心ID为空, stationCenterId: {}", stationCenterList.get(0).getStationId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|