Commit 1ac73972 authored by hanbing's avatar hanbing

[update] 配置文件判空

parent b74d5a28
...@@ -1012,6 +1012,7 @@ public class TrendServiceImpl implements TrendService { ...@@ -1012,6 +1012,7 @@ public class TrendServiceImpl implements TrendService {
} }
private Integer convertDirCode(String dirStr, String crossId, Integer dirCode) { private Integer convertDirCode(String dirStr, String crossId, Integer dirCode) {
if (ObjectUtil.isNotEmpty(directionMappingsConfig)) {
List<String> dirMapList = directionMappingsConfig.getMappings().get(crossId); // 如 ["东:2","西:6"] List<String> dirMapList = directionMappingsConfig.getMappings().get(crossId); // 如 ["东:2","西:6"]
if (CollectionUtil.isNotEmpty(dirMapList)) { if (CollectionUtil.isNotEmpty(dirMapList)) {
for (String dirMapStr : dirMapList) { for (String dirMapStr : dirMapList) {
...@@ -1021,6 +1022,7 @@ public class TrendServiceImpl implements TrendService { ...@@ -1021,6 +1022,7 @@ public class TrendServiceImpl implements TrendService {
} }
} }
} }
}
return dirCode; return dirCode;
} }
......
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