Commit 932bb82e by 284718418@qq.com

面试通知

parent db763a63
......@@ -214,12 +214,24 @@ public class ZpglServiceImpl implements ZpglService {
if(count && JxglEnumInterface.ResumeStatus.INTERVIEW.equals(zpglRcxxDto.getStatus()) && JxglEnumInterface.NoticeWay.WECHAT_PUBLIC.equals(zpglRcxxDto.getNoticeWay())){
InterviewNotice interviewNotice = new InterviewNotice();
interviewNotice.setName(zpglRcxxEntity.getName());
interviewNotice.setType(zpglRcxxDto.getNoticeWay());
interviewNotice.setEmail(zpglRcxxEntity.getMail());
//公众号类型 1:8小时企业管理 2:优领人才网
interviewNotice.setWxgzhType(1);
//1 即时发送,2 定时发送
interviewNotice.setTiming(1);
interviewNotice.setInterviewTime(zpglRcxxDto.getInterviewTime());
// 通知面试官
interviewNotice.setMobile("");
YgglMainEmp ygglMainEmp = YgglMainEmp.builder().build().selectOne(new QueryWrapper<YgglMainEmp>().select("phone").lambda()
.eq(YgglMainEmp::getOrgCode, userBean.getOrgCode()).eq(YgglMainEmp::getEmpNum, zpglRcxxDto.getId()));
if(!StringUtils.isEmpty(ygglMainEmp)){
interviewNotice.setMobile(ygglMainEmp.getPhone());
interviewNotice.setYgglMainEmpId(ygglMainEmp.getId());
}
interviewNotice.setTemplateId(MessageTemplate.TEMPLATE_ID_TO_INTERVIEWER);
zpglWxgzptService.addInterviewMessageQueue(interviewNotice);
// 通知面试者
interviewNotice.setZpglRcxxId(zpglRcxxEntity.getId());
interviewNotice.setMobile(zpglRcxxEntity.getMobile());
interviewNotice.setTemplateId(MessageTemplate.TEMPLATE_ID_TO_INTERVIEWEE);
zpglWxgzptService.addInterviewMessageQueue(interviewNotice);
......
......@@ -34,6 +34,7 @@ public class ZpglWxgzptServiceImpl implements ZpglWxgzptService {
* @param map
* @return
*/
@Override
public String addMessageQueue(Map<String, Object> map) {
return HttpUtil.post(serverUrl + "/wxgzh/addMessageQueue", map);
}
......@@ -45,6 +46,7 @@ public class ZpglWxgzptServiceImpl implements ZpglWxgzptService {
* @param interviewNotice
* @return
*/
@Override
public String addInterviewMessageQueue(InterviewNotice interviewNotice) {
//消息队列对象
MessageQueueDto mqd = new MessageQueueDto();
......
......@@ -104,6 +104,16 @@ public class MessageQueueDto {
*/
private Date updateTime;
/**
* 人才信息ID
*/
private Integer zpglRcxxId;
/**
* 员工档案表ID
*/
private Integer ygglMainEmpId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment