Преглед на файлове

招聘搜索,个人中心

Your Name преди 7 месеца
родител
ревизия
b57aebafa4

+ 6 - 0
src/main/java/com/sqx/modules/interviewRecord/entity/InterviewRecord.java

@@ -10,10 +10,12 @@ import com.sqx.modules.app.entity.UserEntity;
 import com.sqx.modules.firstLogin.entity.HrEntity;
 import com.sqx.modules.resumes.entity.Company;
 import com.sqx.modules.resumes.entity.PostPush;
+import com.sqx.modules.resumes.entity.ResumesListDto;
 import lombok.Data;
 
 import java.time.LocalDateTime;
 import java.io.Serializable;
+import java.util.List;
 
 /**
  * <p>
@@ -137,6 +139,10 @@ public class InterviewRecord implements Serializable {
     private HrEntity hr;
     @TableField(exist = false)
     private  Long resumesId;
+    @TableField(exist = false)
+    private List<ResumesListDto> resumesListDto;
+    @TableField(exist = false)
+    private UserEntity hrUserEntity;
 
 
 }

+ 8 - 1
src/main/java/com/sqx/modules/interviewRecord/service/impl/InterviewRecordServiceImpl.java

@@ -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());