final DeputyLeaderDeptEntity deputyLeaderDept = new DeputyLeaderDeptEntity; deputyLeaderDeptsetDeptNamedeptName; deputyLeaderDeptsetActivityIdexamineRelationDataVOgetActivityInstanceId;
final DeputyLeaderDeptEntity deputyLeaderDept = new DeputyLeaderDeptEntity(); deputyLeaderDept.setDeptName(deptName); deputyLeaderDept.setActivityId(examineRelationDataVO.getActivityInstanceId()); deputyLeaderDept.setCreateBy(examineRelationDataVO.getLoginUid()); deputyLeaderDept.setCreateTime(examineRelationDataVO.getLocalDateTime());
final Integer companyIndex = getMaxLessThanACertainNumber(companyKey, locationCorrespondingToEmployees); final String company = companyValueIsNotNullMap.get(companyIndex); final String companyName = company + COMPANY_SUFFIX; deputyLeaderDept.setCompanyName(companyName); deputyLeaderDept.setCompanyDn(OrgDnEnum.getDnByName(companyName));
final String empInfo = empMap.get(locationCorrespondingToEmployees); final String[] empInfos = StringUtils.split(empInfo, Constants.SPLIT_UNDERLINE); deputyLeaderDept.setLeaderName(empInfos[0]); deputyLeaderDept.setLeaderEmpCode(empInfos[1]);
if (StringUtils.countMatches(empInfo, Constants.SPLIT_UNDERLINE) == 0) { final UserBean userBean = getUserBeans(deputyLeaderDept.getCompanyDn(), empInfo); deputyLeaderDept.setLeaderEmpCode(userBean.getEmployeeNumberNew()); }
return deputyLeaderDept
原文地址: https://www.cveoy.top/t/topic/iBvH 著作权归作者所有。请勿转载和采集!