|
@@ -95,8 +95,17 @@ public class InvalidLinesFinder {
|
|
|
//响应中断
|
|
|
if (Thread.interrupted()) throw new InterruptedException();
|
|
|
//不包含上节点或下节点,则收集
|
|
|
- if (!nos.contains(line.get(UP_NO)) || !nos.contains(line.get(DOWN_NO)))
|
|
|
- results.add(GisSurveyThirdImportElement.create(line, GisSurveyImportDefine.LayerType.LINE));
|
|
|
+ boolean notContainsUp = !nos.contains(line.get(UP_NO));
|
|
|
+ boolean notContainsDown = !nos.contains(line.get(DOWN_NO));
|
|
|
+ if (notContainsUp || notContainsDown) {
|
|
|
+ //根据条件构造表头
|
|
|
+ String propertyName;
|
|
|
+ if (notContainsUp && notContainsDown) propertyName = UP_NO + "," + DOWN_NO;
|
|
|
+ else if (notContainsUp) propertyName = UP_NO;
|
|
|
+ else propertyName = DOWN_NO;
|
|
|
+ //存入结果
|
|
|
+ results.add(GisSurveyThirdImportElement.create(line, propertyName, GisSurveyImportDefine.LayerType.LINE));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
long end = System.currentTimeMillis();
|