|
|
@@ -923,11 +923,14 @@ public class WbsTreeContractController extends BladeController {
|
|
|
for (String s : oldSp) {
|
|
|
//单个单元格的数据
|
|
|
String[] split1 = s.split("_\\^_");
|
|
|
- //根据旧数据的坐标去新数据中查询
|
|
|
- String s1 = newCoordinate.get(split1[1]);
|
|
|
- //如果没有查询到就需要当前坐标数据
|
|
|
- if (s1 == null) {
|
|
|
- oldRetainData.add(s);
|
|
|
+ //错误数据
|
|
|
+ if(split1.length == 2){
|
|
|
+ //根据旧数据的坐标去新数据中查询
|
|
|
+ String s1 = newCoordinate.get(split1[1]);
|
|
|
+ //如果没有查询到就需要当前坐标数据
|
|
|
+ if (s1 == null) {
|
|
|
+ oldRetainData.add(s);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (CollectionUtil.isNotEmpty(oldRetainData)) {
|
|
|
@@ -966,6 +969,7 @@ public class WbsTreeContractController extends BladeController {
|
|
|
}
|
|
|
return R.success("ok");
|
|
|
} catch (IndexOutOfBoundsException e) {
|
|
|
+ e.printStackTrace();
|
|
|
return R.fail("导入失败,请检查导入表格:是否有修改导入模板(如:拆分、合并、增加或减少行列)、本次导入模版是否统一。");
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException(e);
|