Commit 8d3d431e authored by zhoushiguang's avatar zhoushiguang

Merge remote-tracking branch 'origin/master'

parents b4009ed2 94951937
...@@ -314,12 +314,14 @@ public class TrendServiceImpl implements TrendService { ...@@ -314,12 +314,14 @@ public class TrendServiceImpl implements TrendService {
if (Objects.equals(realtimeStatus, CrossStatusEnum.SPILLOVER.getCode())) { if (Objects.equals(realtimeStatus, CrossStatusEnum.SPILLOVER.getCode())) {
// 溢出只返回溢出方向的关联路口 // 溢出只返回溢出方向的关联路口
String spilloverDirs = abnormalCrossListVO.getSpilloverDirs(); String spilloverDirs = abnormalCrossListVO.getSpilloverDirs();
String[] split = spilloverDirs.split(","); if (ObjectUtil.isNotNull(spilloverDirs)){
List<Integer> spilloverDirList = new ArrayList<>(); String[] split = spilloverDirs.split(",");
for (String s : split) { List<Integer> spilloverDirList = new ArrayList<>();
spilloverDirList.add(Integer.parseInt(s)); for (String s : split) {
spilloverDirList.add(Integer.parseInt(s));
}
buildRidData(abnormalCrossListVO, endCrossId, spilloverDirList);
} }
buildRidData(abnormalCrossListVO, endCrossId, spilloverDirList);
} else if (Objects.equals(realtimeStatus, CrossStatusEnum.CONGESTION.getCode())) { } else if (Objects.equals(realtimeStatus, CrossStatusEnum.CONGESTION.getCode())) {
// 拥堵返回所有方向关联路口 // 拥堵返回所有方向关联路口
List<Integer> inDirs = baseCrossDirInfoMapper.selectInDirsByCrossId(endCrossId); List<Integer> inDirs = baseCrossDirInfoMapper.selectInDirsByCrossId(endCrossId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment