| | |
| | | } |
| | | return staffVOList; |
| | | } |
| | | @Override |
| | | public NcStaffVO getByIdCardNum(String idCardNum) { |
| | | NcStaff ncStaff = ncStaffMapper.selectOne(new LambdaQueryWrapper<NcStaff>() |
| | | .eq(NcStaff::getDelFlag, (byte) 0) |
| | | .eq(NcStaff::getIdCardNum, idCardNum)); |
| | | NcStaffVO ncStaffVO = new NcStaffVO(); |
| | | if(ncStaff != null){ |
| | | BeanUtils.copyProperties(ncStaff,ncStaffVO); |
| | | List<NcStaffResume> resumeList = ncStaffResumeService.getByStaffId(ncStaff.getId()); |
| | | List<NcStaffTrain> trainList = ncStaffTrainService.getByStaffId(ncStaff.getId()); |
| | | List<NcExaminees> examineesList = ncExamineesService.getByIdCard(ncStaff.getIdCardNum()); |
| | | List<ViolationRegistrationVO> violationList = violationRegistrationService.getByIdCard(ncStaff.getIdCardNum(), (byte) 0); |
| | | List<WorkRegistrationVO> workList = workRegistrationService.getByIdCard(ncStaff.getIdCardNum(), (byte) 0); |
| | | List<NcCert> certList = ncCertService.getByIdCard(ncStaff.getIdCardNum()); |
| | | ncStaffVO.setResumeList(resumeList); |
| | | ncStaffVO.setTrainList(trainList); |
| | | ncStaffVO.setExamineeList(examineesList); |
| | | ncStaffVO.setViolationList(violationList); |
| | | ncStaffVO.setWorkList(workList); |
| | | ncStaffVO.setCertList(certList); |
| | | ncStaffVO.setCertCount(certList.size()); |
| | | ncStaffVO.setViolationCount(violationList.size()); |
| | | ncStaffVO.setWorkCount(workList.size()); |
| | | } |
| | | return ncStaffVO; |
| | | |
| | | } |
| | | /** |
| | | * 新增 |
| | | * @param addForm |
| | |
| | | this.update(updateWrapper); |
| | | } |
| | | |
| | | |
| | | |
| | | //修改履历 |
| | | public void updateBatchResume(List<NcStaffResumeAddForm> resumeFormList,NcStaff ncStaff){ |
| | | if(!CollectionUtils.isEmpty(resumeFormList)){ |