组织同步插件更新

This commit is contained in:
zengweihai 2024-07-11 13:50:33 +08:00
parent 3f5ff6ed61
commit 5ede4c1278
1 changed files with 2 additions and 6 deletions

View File

@ -218,12 +218,8 @@ public class HrmDepartmentTaskImpl extends AbstractTask implements Plugin {
orgParam.setPropertyMap(proMap);
//上级部门设置
String supDepId = item.getString("supdepid");//获取oa数据的上级部门id
if (supDepId == null || supDepId.equals("0")){
TreeMap<String, OrgDutyView> multiViewMap = new TreeMap<>();
OrgDutyView dutyView = new OrgDutyView();
multiViewMap.put(OrgViewType.Admin, dutyView);
multiViewMap.put(OrgViewType.OrgUnit, dutyView);
orgParam.setMultiViewMap(multiViewMap);
if (null == supDepId || "0".equals(supDepId)|| "".equals(supDepId)){//设置上级部门为集团
orgParam.setParentId(100000);
}else {
Long pk = orgIds.get(supDepId);//获取上级部门在星瀚的id
if (pk != null){