Browse Source

修复荣信跨越部门级别查询bug

dev
liwenxuan 1 year ago
parent
commit
d30d6a0979
  1. 9
      src/main/java/com/hxgk/zxxy/service/impl/HrServiceImpl.java

9
src/main/java/com/hxgk/zxxy/service/impl/HrServiceImpl.java

@ -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;
} }

Loading…
Cancel
Save