|
|
@ -1289,27 +1289,12 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
if (options == null) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
//结果平铺展开
|
|
|
|
Map<String, OptionResultDTO> resultMap = new HashMap<>(); |
|
|
|
options.forEach(option-> getChildren(option,resultMap)); |
|
|
|
options.forEach(option-> option.getCurrenNodeAllChild(option,resultMap)); |
|
|
|
return resultMap; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* desc:递归获取children |
|
|
|
* @param option |
|
|
|
* @param resultMap |
|
|
|
* todo 利用泛型 提取到公共类中 |
|
|
|
*/ |
|
|
|
public void getChildren(OptionResultDTO option, Map<String, OptionResultDTO> resultMap) { |
|
|
|
resultMap.put(option.getValue(),option); |
|
|
|
if (CollectionUtils.isNotEmpty(option.getChildren())){ |
|
|
|
option.getChildren().forEach(o->{ |
|
|
|
resultMap.put(o.getValue(),o); |
|
|
|
getChildren(o,resultMap); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 更新主表中人员类别标记 |
|
|
|
* @param icResiUserTableEnum |
|
|
|