修改三级单位
This commit is contained in:
@@ -146,7 +146,7 @@ public class SysDataUserPullServiceImpl extends BaseServiceImpl<Sys_user_source>
|
||||
.collect(Collectors.toMap(Sys_unit::getId, unit -> unit));
|
||||
}
|
||||
|
||||
// 信息中心三级单位的层级入库后为4,其直属二级单位层级为3;单位号位数不参与判断。
|
||||
// 按单位表的实际等级判断:三级单位为3、直属二级单位为2;单位号位数不参与判断。
|
||||
Map<String, String> tertiaryParentUnitIds = new HashMap<>();
|
||||
for (String sourceUnitId : sourceUnitIds) {
|
||||
Sys_unit unit = unitMap.get(sourceUnitId);
|
||||
@@ -154,11 +154,11 @@ public class SysDataUserPullServiceImpl extends BaseServiceImpl<Sys_user_source>
|
||||
log.warn("人员单位号{}在单位表中不存在,保留信息中心原始单位号", sourceUnitId);
|
||||
continue;
|
||||
}
|
||||
if (!Integer.valueOf(4).equals(unit.getUnitLevel())) {
|
||||
if (!Integer.valueOf(3).equals(unit.getUnitLevel())) {
|
||||
continue;
|
||||
}
|
||||
Sys_unit parentUnit = unitMap.get(unit.getParentId());
|
||||
if (parentUnit == null || !Integer.valueOf(3).equals(parentUnit.getUnitLevel())) {
|
||||
if (parentUnit == null || !Integer.valueOf(2).equals(parentUnit.getUnitLevel())) {
|
||||
log.warn("三级单位{}缺少有效的二级父单位,保留信息中心原始单位号", sourceUnitId);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user