面试详情增加预约情况相关信息
This commit is contained in:
@@ -127,4 +127,13 @@ public class InterviewVO {
|
||||
@ApiModelProperty("所属战区id")
|
||||
private String affiliationZone;
|
||||
|
||||
@ApiModelProperty("该时间段是否被预约成功")
|
||||
private Boolean booked;
|
||||
|
||||
@ApiModelProperty("该时间段面试预约人数")
|
||||
private Integer appointmentCount;
|
||||
|
||||
@ApiModelProperty("该时段是否是自己预约的(不一定代表预约成功)")
|
||||
private Boolean selfBooked;
|
||||
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ public class InterviewServiceImpl implements InterviewService {
|
||||
vo.setVideoList(split);
|
||||
vo.setProcessInfo("");
|
||||
}
|
||||
//查询面试官和记录人信息(面试官必须有)
|
||||
//1. 查询面试官和记录人信息(面试官必须有)
|
||||
EnterpriseUserBaseInfoVO interviewerInfo = hyPartnerInterviewPlanMapper.getEnterpriseUserBaseInfo(vo.getInterviewerId());
|
||||
vo.setInterviewerName(interviewerInfo.getName());
|
||||
vo.setInterviewerMobile(interviewerInfo.getMobile());
|
||||
@@ -132,10 +132,10 @@ public class InterviewServiceImpl implements InterviewService {
|
||||
vo.setRecorderMobile(recorderInfo.getMobile());
|
||||
}
|
||||
}
|
||||
//查询开发主管信息
|
||||
|
||||
//2. 查询开发主管信息
|
||||
if (request.getNeedDevelopmentDirector() != null && request.getNeedDevelopmentDirector()) {
|
||||
//查询所属战区
|
||||
|
||||
String wantShopArea = hyPartnerLineInfoMapper.getAffiliationZoneIdByInterviewPlanId(interviewPlanId);
|
||||
HyIntendDevelopementMappingDO hyIntendDevelopementMappingDO = hyIntendDevMappingDAO.selectByOpenAreaMappingId(Long.valueOf(wantShopArea), "dev");
|
||||
if (hyIntendDevelopementMappingDO == null) {
|
||||
@@ -145,6 +145,21 @@ public class InterviewServiceImpl implements InterviewService {
|
||||
EnterpriseUserDO development = enterpriseUserService.getDevelopmentByZoneId(hyIntendDevelopementMappingDO.getMappingId());
|
||||
vo.setDevelopmentDirector(development);
|
||||
}
|
||||
|
||||
//3. 查询该时段预约情况
|
||||
//如果还未提交预约申请就没有预约情况,面试完成以后也必要查询了
|
||||
if (!vo.getStatus().equals(Integer.parseInt(WorkflowStatusEnum.INTERVIEW_2.getCode()))
|
||||
&& !vo.getStatus().equals(Integer.parseInt(WorkflowStatusEnum.INTERVIEW_3.getCode()))
|
||||
&& !vo.getStatus().equals(Integer.parseInt(WorkflowStatusEnum.RESERVATION_1.getCode()))) {
|
||||
return vo;
|
||||
}
|
||||
List<HyPartnerInterviewBookSituation> bookSituations = hyPartnerInterviewPlanMapper.getInterviewBookSituation(vo.getInterviewerId(), vo.getStartTime(), vo.getEndTime());
|
||||
if (CollectionUtils.isNotEmpty(bookSituations)) {
|
||||
HyPartnerInterviewBookSituation bookSituation = bookSituations.get(0);
|
||||
vo.setBooked(bookSituation.getBooked());
|
||||
vo.setSelfBooked(Boolean.TRUE);
|
||||
vo.setAppointmentCount(bookSituation.getBookingCount());
|
||||
}
|
||||
return vo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user