|
|
@ -231,8 +231,13 @@ public class HrServiceImpl implements HrService { |
|
|
Long superior = orgContType.getSuperior(); |
|
|
Long superior = orgContType.getSuperior(); |
|
|
OrgContType superiorOrg = queryOrgContTypeByAdminorg(superior); |
|
|
OrgContType superiorOrg = queryOrgContTypeByAdminorg(superior); |
|
|
//父级不是分厂
|
|
|
//父级不是分厂
|
|
|
if (superiorOrg.getLevel() != 3) { |
|
|
if (superiorOrg.getLevel() != 3) {//4直接跳到2或1,0的情况? 他肯定是从大的数越来越小
|
|
|
return queryHighFacId(superiorOrg); |
|
|
if(superiorOrg.getLevel() > 3){ |
|
|
|
|
|
return queryHighFacId(superiorOrg); |
|
|
|
|
|
}else{//小于3的情况
|
|
|
|
|
|
return superiorOrg; |
|
|
|
|
|
} |
|
|
|
|
|
//return queryHighFacId(superiorOrg);
|
|
|
} else { |
|
|
} else { |
|
|
return superiorOrg; |
|
|
return superiorOrg; |
|
|
} |
|
|
} |
|
|
|