面试/面谈
This commit is contained in:
@@ -6,6 +6,7 @@ import com.cool.store.request.LineInterviewPageRequest;
|
||||
import com.cool.store.request.ModifyInterviewerRequest;
|
||||
import com.cool.store.vo.interview.AppointmentTimeVO;
|
||||
import com.cool.store.vo.interview.EnterInterviewVO;
|
||||
import com.cool.store.vo.interview.InterviewDetailVO;
|
||||
import com.cool.store.vo.interview.LineInterviewPageVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
|
||||
@@ -74,4 +75,11 @@ public interface LineInterviewService {
|
||||
*/
|
||||
Integer finishInterview(Long interviewId, String userId);
|
||||
|
||||
/**
|
||||
* 获取面试信息
|
||||
* @param lineId
|
||||
* @param interviewType
|
||||
* @return
|
||||
*/
|
||||
InterviewDetailVO getInterviewDetail(Long lineId, Integer interviewType);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package com.cool.store.service.impl;
|
||||
|
||||
import com.cool.store.constants.CommonConstants;
|
||||
import com.cool.store.dao.*;
|
||||
import com.cool.store.dto.interview.LineInterviewPageDTO;
|
||||
import com.cool.store.entity.LineAuditInfoDO;
|
||||
import com.cool.store.entity.LineCalendarsEventDO;
|
||||
import com.cool.store.entity.LineInfoDO;
|
||||
import com.cool.store.entity.LineInterviewDO;
|
||||
@@ -13,8 +15,10 @@ import com.cool.store.service.LineInterviewService;
|
||||
import com.cool.store.utils.TRTCUtils;
|
||||
import com.cool.store.utils.UUIDUtils;
|
||||
import com.cool.store.utils.poi.DateUtils;
|
||||
import com.cool.store.vo.LineAuditInfoVO;
|
||||
import com.cool.store.vo.interview.AppointmentTimeVO;
|
||||
import com.cool.store.vo.interview.EnterInterviewVO;
|
||||
import com.cool.store.vo.interview.InterviewDetailVO;
|
||||
import com.cool.store.vo.interview.LineInterviewPageVO;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
@@ -59,6 +63,8 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
|
||||
private EnterpriseUserDAO enterpriseUserDAO;
|
||||
@Resource
|
||||
private HyOpenAreaInfoDAO hyOpenAreaInfoDAO;
|
||||
@Resource
|
||||
private LineAuditInfoDAO lineAuditInfoDAO;
|
||||
|
||||
@Override
|
||||
public List<AppointmentTimeVO> getAppointmentTime(Long lineId, Integer interviewType, LocalDate appointmentDate) {
|
||||
@@ -230,6 +236,24 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
|
||||
return lineInterviewDAO.updateInterviewInfo(interviewInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InterviewDetailVO getInterviewDetail(Long lineId, Integer interviewType) {
|
||||
InterviewTypeEnum interviewTypeEnum = InterviewTypeEnum.match(interviewType);
|
||||
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(lineId);
|
||||
LineInterviewDO interviewInfo = lineInterviewDAO.getInterviewInfo(lineId, interviewTypeEnum);
|
||||
if(Objects.isNull(lineInfo) || Objects.isNull(interviewInfo)){
|
||||
return null;
|
||||
}
|
||||
InterviewDetailVO result = InterviewDetailVO.convertVO(lineInfo, interviewInfo);
|
||||
result.setInterviewerUsername(enterpriseUserDAO.getUserName(interviewInfo.getInterviewer()));
|
||||
Long auditId = interviewInfo.getAuditId();
|
||||
if(Objects.nonNull(auditId) && auditId > CommonConstants.ZERO_LONG){
|
||||
LineAuditInfoDO auditInfo = lineAuditInfoDAO.getAuditInfo(auditId);
|
||||
result.setAuditInfo(LineAuditInfoVO.convertVO(auditInfo));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected Boolean initStage(Long auditId, LineInfoDO lineInfo) {
|
||||
|
||||
Reference in New Issue
Block a user