组织同步插件更新
This commit is contained in:
parent
3f5ff6ed61
commit
5ede4c1278
|
@ -218,12 +218,8 @@ public class HrmDepartmentTaskImpl extends AbstractTask implements Plugin {
|
||||||
orgParam.setPropertyMap(proMap);
|
orgParam.setPropertyMap(proMap);
|
||||||
//上级部门设置
|
//上级部门设置
|
||||||
String supDepId = item.getString("supdepid");//获取oa数据的上级部门id
|
String supDepId = item.getString("supdepid");//获取oa数据的上级部门id
|
||||||
if (supDepId == null || supDepId.equals("0")){
|
if (null == supDepId || "0".equals(supDepId)|| "".equals(supDepId)){//设置上级部门为集团
|
||||||
TreeMap<String, OrgDutyView> multiViewMap = new TreeMap<>();
|
orgParam.setParentId(100000);
|
||||||
OrgDutyView dutyView = new OrgDutyView();
|
|
||||||
multiViewMap.put(OrgViewType.Admin, dutyView);
|
|
||||||
multiViewMap.put(OrgViewType.OrgUnit, dutyView);
|
|
||||||
orgParam.setMultiViewMap(multiViewMap);
|
|
||||||
}else {
|
}else {
|
||||||
Long pk = orgIds.get(supDepId);//获取上级部门在星瀚的id
|
Long pk = orgIds.get(supDepId);//获取上级部门在星瀚的id
|
||||||
if (pk != null){
|
if (pk != null){
|
||||||
|
|
Loading…
Reference in New Issue