Search in sources :

Example 1 with EmployeeOrgaVO

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);
    }
}
Also used : EmployeeOrgaVO(com.netsteadfast.greenstep.vo.EmployeeOrgaVO) OrganizationVO(com.netsteadfast.greenstep.vo.OrganizationVO)

Aggregations

EmployeeOrgaVO (com.netsteadfast.greenstep.vo.EmployeeOrgaVO)1 OrganizationVO (com.netsteadfast.greenstep.vo.OrganizationVO)1