|
|
@@ -15,8 +15,10 @@ import com.sqx.modules.interviewRecord.service.InterviewRecordService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.sqx.modules.message.entity.MessageInfo;
|
|
|
import com.sqx.modules.message.service.MessageService;
|
|
|
+import com.sqx.modules.resumes.dao.ResumesDao;
|
|
|
import com.sqx.modules.resumes.entity.Company;
|
|
|
import com.sqx.modules.resumes.entity.Resumes;
|
|
|
+import com.sqx.modules.resumes.entity.ResumesListDto;
|
|
|
import com.sqx.modules.resumes.service.CompanyService;
|
|
|
import com.sqx.modules.resumes.service.PostPushService;
|
|
|
import com.sqx.modules.resumes.service.ResumesService;
|
|
|
@@ -56,6 +58,8 @@ public class InterviewRecordServiceImpl extends ServiceImpl<InterviewRecordDao,
|
|
|
private MessageService messageService;
|
|
|
@Autowired
|
|
|
private HrService hrService;
|
|
|
+ @Autowired
|
|
|
+ private ResumesDao resumesDao;
|
|
|
|
|
|
@Override
|
|
|
public IPage<InterviewRecord> interviewList(Integer page, Integer limit, InterviewRecord interviewRecord) {
|
|
|
@@ -74,6 +78,9 @@ public class InterviewRecordServiceImpl extends ServiceImpl<InterviewRecordDao,
|
|
|
UserEntity userEntity = userService.getById(record.getInterviewerId());
|
|
|
record.setHr(hrService.getByUserId(String.valueOf(record.getUserId())));
|
|
|
record.setUserEntity(userEntity);
|
|
|
+ ResumesListDto resumesListDto =new ResumesListDto();
|
|
|
+ resumesListDto.setResumesId(record.getResumesId());
|
|
|
+ record.setResumesListDto(resumesDao.selectResumesListHr(resumesListDto));
|
|
|
Resumes resumes =resumesService.selectResumesByUserId(Long.valueOf(record.getInterviewerId()));
|
|
|
record.setResumesId(resumes.getResumesId());
|
|
|
}
|
|
|
@@ -94,7 +101,6 @@ public class InterviewRecordServiceImpl extends ServiceImpl<InterviewRecordDao,
|
|
|
interviewRecord.setIsSendDay(0);
|
|
|
interviewRecord.setIsSendHour(0);
|
|
|
interviewRecord.setCreateTime(LocalDateTime.now());
|
|
|
-
|
|
|
UserEntity userEntity = userService.getById(interviewRecord.getInterviewerId());
|
|
|
if (StringUtils.isNotEmpty(userEntity.getClientid())) {
|
|
|
userService.pushToSingle("面试邀请", "您收到一个面试邀请", userEntity.getClientid());
|
|
|
@@ -238,6 +244,7 @@ public class InterviewRecordServiceImpl extends ServiceImpl<InterviewRecordDao,
|
|
|
record.setCompany(companyService.getById(record.getCompanyId()));
|
|
|
record.setPostPush(postPushService.getById(record.getPostPushId()));
|
|
|
record.setUserEntity(userService.getById(record.getInterviewerId()));
|
|
|
+ record.setHrUserEntity(userService.getById(record.getUserId()));
|
|
|
record.setHr(hrService.getByUserId(String.valueOf(record.getUserId())));
|
|
|
Resumes resumes = resumesService.selectResumesByUserId(Long.valueOf(record.getInterviewerId()));
|
|
|
record.setResumesId(resumes.getResumesId());
|