面试预约阶段未提交面试预约就不转让面试官
This commit is contained in:
@@ -3,6 +3,7 @@ package com.cool.store.service.impl.workflow;
|
|||||||
import com.cool.store.entity.HyPartnerInterviewDO;
|
import com.cool.store.entity.HyPartnerInterviewDO;
|
||||||
import com.cool.store.enums.ErrorCodeEnum;
|
import com.cool.store.enums.ErrorCodeEnum;
|
||||||
import com.cool.store.enums.WorkflowStageEnum;
|
import com.cool.store.enums.WorkflowStageEnum;
|
||||||
|
import com.cool.store.enums.WorkflowStatusEnum;
|
||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
import com.cool.store.exception.ServiceException;
|
import com.cool.store.exception.ServiceException;
|
||||||
import com.cool.store.mapper.HyPartnerInterviewMapper;
|
import com.cool.store.mapper.HyPartnerInterviewMapper;
|
||||||
@@ -62,10 +63,13 @@ public class ReservationWorkFlowService extends WorkFlowBaseService {
|
|||||||
if (null == interviewInfo) {
|
if (null == interviewInfo) {
|
||||||
throw new ServiceException(ErrorCodeEnum.INTERVIEW_NOT_EXIST);
|
throw new ServiceException(ErrorCodeEnum.INTERVIEW_NOT_EXIST);
|
||||||
}
|
}
|
||||||
EntrustOthersReq entrustOthersReq = new EntrustOthersReq();
|
//还未提交面试预约就未创建面试信息,自然不存在转让面试官操作
|
||||||
entrustOthersReq.setInterviewPlanId(interviewInfo.getInterviewPlanId());
|
if (!WorkflowStatusEnum.RESERVATION_0.getCode().equals(interviewBaseInfo.getStatus().toString())) {
|
||||||
entrustOthersReq.setNewInterviewerId(request.getUserId());
|
EntrustOthersReq entrustOthersReq = new EntrustOthersReq();
|
||||||
entrustOthersReq.setPartnerLineId(interviewInfo.getPartnerLineId());
|
entrustOthersReq.setInterviewPlanId(interviewInfo.getInterviewPlanId());
|
||||||
interviewService.entrustOthers(entrustOthersReq);
|
entrustOthersReq.setNewInterviewerId(request.getUserId());
|
||||||
|
entrustOthersReq.setPartnerLineId(interviewInfo.getPartnerLineId());
|
||||||
|
interviewService.entrustOthers(entrustOthersReq);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user