面试后结束跟进短信通知

This commit is contained in:
feng.li
2024-01-15 13:57:12 +08:00
parent 2f239b0171
commit 57387a305d
2 changed files with 14 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ public enum SMSMsgEnum {
INTERVIEW_PASS("面试通过通知","【沪上阿姨】恭喜您通过了加盟资格面试,接下来我们会为您安排专业的选址开发顾问协助您进行选址,请保持电话畅通,祝您早日选址成功!点击转跳沪姨合伙人小程序:{$var}", "00a005aa218c2f3320cd27244b97efb9"),
INTERVIEW_REJECT("面试未通过通知", "【沪上阿姨】抱歉,您本次加盟资格面试暂未通过,原因为{$var},若有任何疑问,可联系客户经理沟通。再次感谢您对沪上阿姨的认可与支持!点击转跳沪姨合伙人小程序:{$var}", "fdca82a8b6b3c8055aafbc787b773493"),
INTERVIEW_BEGIN_IN_DAY("面试开始前一天", "【沪上阿姨】您预约的沪上阿姨加盟资格面试将于明天 {$var}{$var})开始,为保证您能够更加顺利的通过面试,请提前通过沪上阿姨合伙人小程序仔细阅读面试准备材料并做好相应准备。点击转跳小程序:{$var}", "657880fb2614fe70e579a06883dff57b"),
INTERVIEW_BEGIN_IN_MINUTES("面试开始前30分钟", "【沪上阿姨】您预约的沪上阿姨加盟资格面试将在30分钟后开始。面试预计持续40分钟请务必提前安排好您的时间。点击跳转沪上阿姨小程序快速进入面试房间{$var}", "07790f743a22d961afb8a3902e691404"),

View File

@@ -6,11 +6,11 @@ import com.cool.store.context.LoginUserInfo;
import com.cool.store.dao.HyPartnerExhibitionDAO;
import com.cool.store.dto.log.RejectInterviewDTO;
import com.cool.store.entity.HyInspectionDO;
import com.cool.store.entity.HyPartnerExhibitionDO;
import com.cool.store.entity.HyPartnerInterviewDO;
import com.cool.store.enums.*;
import com.cool.store.exception.ApiException;
import com.cool.store.exception.ServiceException;
import com.cool.store.http.EventCenterHttpRequest;
import com.cool.store.http.ISVHttpRequest;
import com.cool.store.mapper.HyInspectionMapper;
import com.cool.store.mapper.HyPartnerInterviewMapper;
@@ -21,6 +21,7 @@ import com.cool.store.request.EntrustOthersReq;
import com.cool.store.request.TransferInvestmentManagerRequest;
import com.cool.store.service.InterviewService;
import com.cool.store.service.LogService;
import com.cool.store.service.WechatMiniAppService;
import com.cool.store.utils.CoolDateUtils;
import com.cool.store.vo.interview.InterviewVO;
import lombok.extern.slf4j.Slf4j;
@@ -67,6 +68,12 @@ public class InterviewWorkFlowService extends WorkFlowBaseService {
@Autowired
private HyPartnerExhibitionDAO partnerExhibitionDAO;
@Autowired
private EventCenterHttpRequest eventCenterHttpRequest;
@Autowired
private WechatMiniAppService wechatMiniAppService;
@Override
public WorkflowStageEnum getWorkFlowStage() {
return WorkflowStageEnum.RESERVATION;
@@ -111,6 +118,10 @@ public class InterviewWorkFlowService extends WorkFlowBaseService {
interviewService.rejectInterviewAndSuspendLine(interviewBaseInfo.getId(),interviewBaseInfo.getInterviewPlanId(),null);
//将线索进行到面试中的会销信息设为不通过
partnerExhibitionDAO.rejectExhibitionInterview(interviewBaseInfo.getPartnerLineId().toString());
//发送面试不通过短信
eventCenterHttpRequest.sendSmsVariable(interviewInfo.getPartnerMobile(), SMSMsgEnum.INTERVIEW_REJECT, request.getRejectPublicReason(), wechatMiniAppService.getMiniAppUrl());
//记录日志
RejectInterviewDTO log = RejectInterviewDTO.builder().mobile(operator.getMobile()).operateUserId(operator.getUserId()).operateUsername(operator.getName()).operateTime(DateUtil.format(new Date(), CoolDateUtils.DATE_FORMAT_SEC))
.rejectRealReason(request.getRejectRealReason()).rejectPublicReason(request.getRejectPublicReason()).certifyFile(request.getCertifyFile()).build();