use of com.netsteadfast.greenstep.vo.EmployeeOrgaVO in project bamboobsc by billchen198318.
the class EmployeeLogicServiceImpl method createEmployeeOrganization.
private void createEmployeeOrganization(EmployeeVO employee, List<String> organizationOid) throws ServiceException, Exception {
if (employee == null || StringUtils.isBlank(employee.getEmpId()) || organizationOid == null || organizationOid.size() < 1) {
return;
}
for (String oid : organizationOid) {
OrganizationVO organization = this.findOrganizationData(oid);
EmployeeOrgaVO empOrg = new EmployeeOrgaVO();
empOrg.setEmpId(employee.getEmpId());
empOrg.setOrgId(organization.getOrgId());
this.employeeOrgaService.saveObject(empOrg);
}
}
Aggregations