private void insertEmployee(TransferFormalInfoDTO transferFormalInfoDTO) { Employee employee = new Employee(); employee.setEmployeeId(transferFormalInfoDTO.getEmployeeId()); employee.setMemberId(transferFormalInfoDTO.getMemberId()); employee.setDepartment(transferFormalInfoDTO.getDepartment()); employee.setJobTitle(transferFormalInfoDTO.getJobTitle()); employee.setInaugurationDate(transferFormalInfoDTO.getInaugurationDate()); employeeDAO.save(employee); }
public TransferFormalInfoDTO getTransferFormalInfoByMemberId(int memberId) { TransferFormalInfoDTO transferFormalInfoDTO = employeeDAO.findByMemberId(memberId); if (transferFormalInfoDTO.getEmployeeId() != null) { transferFormalInfoDTO.setIsTransferFormal("Y"); } else { transferFormalInfoDTO.setIsTransferFormal("N"); } return transferFormalInfoDTO; }
private void insertDefaultTransferFormalData(TransferFormalInfoDTO transferFormalInfoDTO) { String employeeId = transferFormalInfoDTO.getEmployeeId(); insertEmployee(transferFormalInfoDTO); insertRegistrationInformation(employeeId); insertInsurance(employeeId); insertIdentityRelatedDocuments(employeeId); }
public TransferFormalDTO insertEmployeeTransferFormalData( TransferFormalInfoDTO transferFormalInfoDTO) throws Exception { String employeeId = transferFormalInfoDTO.getEmployeeId(); boolean bl = IsEmployeeId(employeeId); if (!bl) insertDefaultTransferFormalData(transferFormalInfoDTO); // insert // table 給id return getTransferFormalData(employeeId); }