|
|
@ -116,7 +116,9 @@ public class OrganizationService implements IOrganizationService { |
|
|
|
if (row.length <= parentIndex || row[parentIndex] == null || StrUtil.isBlank((String)row[parentIndex])) { |
|
|
|
return; |
|
|
|
} |
|
|
|
String parentName = (String) row[parentIndex]; |
|
|
|
String parentCell = (String) row[parentIndex]; |
|
|
|
String[] parentNames = parentCell.split(Constant.STRING_REGEX); |
|
|
|
for (String parentName: parentNames) { |
|
|
|
parentName = parentName.trim(); |
|
|
|
if (!nameMap.containsKey(parentName)) { |
|
|
|
builder.append(name).append("的上级").append(parentName) |
|
|
@ -137,6 +139,8 @@ public class OrganizationService implements IOrganizationService { |
|
|
|
parent.setOperator(userId); |
|
|
|
parents.add(parent); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
if (CollectionUtil.isNotEmpty(organizations)) { |
|
|
|
organizationDao.batchInsert(organizations); |
|
|
|