添加直播推荐,并且发送消息
This commit is contained in:
@@ -3,6 +3,7 @@ package com.ruoyi.cms.util.notice;
|
||||
import com.ruoyi.cms.domain.EmployeeConfirm;
|
||||
import com.ruoyi.cms.domain.Job;
|
||||
import com.ruoyi.cms.domain.Notice;
|
||||
import com.ruoyi.cms.domain.liveSteam.LiveApply;
|
||||
import com.ruoyi.common.core.domain.entity.AppUser;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -46,6 +47,11 @@ public class NoticeUtils {
|
||||
|
||||
/*************面试end*************/
|
||||
|
||||
/*************直播start*************/
|
||||
public static final String NOTICE_TYPE_ZBTZ="直播通知";
|
||||
public static final String NOTICE_LIVE_STARTMSG = "您可能感兴趣的直播开播啦!\n本次直播岗位:%s\n主持人:%s\n开播时段:%s ~ %s\n请前往首页点击直播按钮观看!";
|
||||
/*************直播end*************/
|
||||
|
||||
/**
|
||||
* 拼装岗位
|
||||
*/
|
||||
@@ -133,4 +139,16 @@ public class NoticeUtils {
|
||||
jbName +NoticeUtils.NOTICE_COMENT_FF + typeText +","+ msgExtra
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 直播开播
|
||||
* @return
|
||||
*/
|
||||
public static String zbkbMsg(LiveApply liveApply,String jobNameText){
|
||||
String jobNames = jobNameText == null ? "" : jobNameText.replace(",", "、");
|
||||
String livePerson = liveApply.getLivePerson() == null ? "" : liveApply.getLivePerson();
|
||||
String start = liveApply.getLiveStartTime() == null ? "" : liveApply.getLiveStartTime();
|
||||
String end = liveApply.getLiveEndTime() == null ? "" : liveApply.getLiveEndTime();
|
||||
return String.format(NOTICE_LIVE_STARTMSG, jobNames, livePerson, start, end);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user