update 文档拆分导入只按excel中的顺序导入,不判断序号 UN,EU也不需要判断
This commit is contained in:
+20
-19
@@ -3540,25 +3540,26 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
||||
SarFileSplitMenuTreeNode treeNode = new SarFileSplitMenuTreeNode();
|
||||
treeNode.setId(UUIDUtils.randomUUID20());
|
||||
treeNode.setName(itemNum);
|
||||
if(itemNum.matches(regex)) {
|
||||
//父级是 总目录时,不做处理
|
||||
if(itemNum.contains(".")) {
|
||||
String parentName = itemNum.substring(0, itemNum.lastIndexOf("."));
|
||||
treeNode.setParentName(parentName);
|
||||
|
||||
List<SarFileSplitMenuTreeNode> p = treeNodeList.stream().filter(e -> e.getName().equals(parentName)).collect(Collectors.toList());
|
||||
if (CollectionUtil.isNotEmpty(p)) {
|
||||
//其他节点
|
||||
treeNode.setParentId(p.get(0).getId());
|
||||
}else{
|
||||
//一级节点
|
||||
treeNode.setParentId(menuId);
|
||||
}
|
||||
}else{
|
||||
treeNode.setParentId(menuId);
|
||||
}
|
||||
}
|
||||
else if (StringUtils.isBlank(itemTitle)){
|
||||
//if(itemNum.matches(regex)) {
|
||||
// //父级是 总目录时,不做处理
|
||||
// if(itemNum.contains(".")) {
|
||||
// String parentName = itemNum.substring(0, itemNum.lastIndexOf("."));
|
||||
// treeNode.setParentName(parentName);
|
||||
//
|
||||
// List<SarFileSplitMenuTreeNode> p = treeNodeList.stream().filter(e -> e.getName().equals(parentName)).collect(Collectors.toList());
|
||||
// if (CollectionUtil.isNotEmpty(p)) {
|
||||
// //其他节点
|
||||
// treeNode.setParentId(p.get(0).getId());
|
||||
// }else{
|
||||
// //一级节点
|
||||
// treeNode.setParentId(menuId);
|
||||
// }
|
||||
// }else{
|
||||
// treeNode.setParentId(menuId);
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
if (StringUtils.isBlank(itemTitle)){
|
||||
treeNode.setParentId(parentId);
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user