|
@@ -262,11 +262,13 @@ public class FieldClaServiceImpl implements IFieldClaService {
|
|
|
for (DataResourceTreeVo node : nodes) {
|
|
|
FieldCla fieldCla = getByCodeAndPath(node.getCode(), path);
|
|
|
if(null == fieldCla) {
|
|
|
- saveNodeAndChild(node, path, new Date());
|
|
|
+ String localPath = path;
|
|
|
+ saveNodeAndChild(node, localPath, new Date());
|
|
|
} else {
|
|
|
+ String localPath = path;
|
|
|
updateNode(node, fieldCla);
|
|
|
- path = path == null? fieldCla.getId():path + CommonCons.PATH_SEP + fieldCla.getId();
|
|
|
- sync(node.getChild(), path);
|
|
|
+ localPath = localPath == null? fieldCla.getId():path + CommonCons.PATH_SEP + fieldCla.getId();
|
|
|
+ sync(node.getChild(), localPath);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -326,7 +328,8 @@ public class FieldClaServiceImpl implements IFieldClaService {
|
|
|
List<DataResourceTreeVo> child = node.getChild();
|
|
|
if(CollectionUtils.isNotEmpty(child)) {
|
|
|
for (DataResourceTreeVo childNode : child) {
|
|
|
- saveNodeAndChild(childNode, path, date);
|
|
|
+ String localPath = path;
|
|
|
+ saveNodeAndChild(childNode, localPath, date);
|
|
|
}
|
|
|
}
|
|
|
}
|