完成部分定时任务
This commit is contained in:
@@ -39,7 +39,7 @@ public enum MessageEnum {
|
||||
MESSAGE_21("加盟商已登记一位员工,请及时安排培训", "##### 员工姓名:【${userName}】,员工手机号码:【${mobile}】,登记时间:【${registerTime}】"),
|
||||
MESSAGE_22("您收到一位员工由您带教,请查收", "##### 员工姓名:【${userName}】,员工手机号码:【${mobile}】,登记时间:【${registerTime}】"),
|
||||
MESSAGE_23("您有一个门店待发布加盟费/保证金账单,请查收", "##### 门店名称:${storeName}\n##### 加盟商姓名:${partnerName}\n##### 加盟商手机号码:${partnerMobile}\n"),
|
||||
|
||||
MESSAGE_24("您有一个门店待预约三方验收时间,请查收", "#####门店名称:${storeName}\n##### 加盟商姓名:${partnerUsername}\n##### 加盟商手机号码:${partnerMobile}\n"),
|
||||
;
|
||||
|
||||
private String title;
|
||||
@@ -59,7 +59,7 @@ public enum MessageEnum {
|
||||
return content;
|
||||
}
|
||||
|
||||
public String getContent(Map<String, String> paramMap){
|
||||
public String getContent(Map<String, String> paramMap) {
|
||||
String result = this.content;
|
||||
for (String key : paramMap.keySet()) {
|
||||
result = result.replace("${" + key + "}", paramMap.get(key));
|
||||
@@ -72,8 +72,8 @@ public enum MessageEnum {
|
||||
}
|
||||
|
||||
|
||||
public String getMessageUrl(String domainUrl, String appId, String corpId, Map<String, String> paramMap){
|
||||
if(StringUtils.isAnyBlank(domainUrl, appId, corpId) || Objects.isNull(paramMap)){
|
||||
public String getMessageUrl(String domainUrl, String appId, String corpId, Map<String, String> paramMap) {
|
||||
if (StringUtils.isAnyBlank(domainUrl, appId, corpId) || Objects.isNull(paramMap)) {
|
||||
return "";
|
||||
}
|
||||
try {
|
||||
@@ -86,22 +86,22 @@ public enum MessageEnum {
|
||||
case MESSAGE_7:
|
||||
case MESSAGE_8:
|
||||
case MESSAGE_9:
|
||||
return domainUrl + "/dd-noticemsg?appId=" + appId + "&corpId="+ corpId + "&appUrl=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=clue×tamp="+System.currentTimeMillis()+"&lineId=" + paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||
return domainUrl + "/dd-noticemsg?appId=" + appId + "&corpId=" + corpId + "&appUrl=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=clue×tamp=" + System.currentTimeMillis() + "&lineId=" + paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||
case MESSAGE_3:
|
||||
case MESSAGE_10:
|
||||
return domainUrl + "/dd-noticemsg?appId=" + appId + "&corpId="+ corpId + "&appUrl=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=interview×tamp="+System.currentTimeMillis()+"&lineId=" + paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||
return domainUrl + "/dd-noticemsg?appId=" + appId + "&corpId=" + corpId + "&appUrl=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=interview×tamp=" + System.currentTimeMillis() + "&lineId=" + paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||
case MESSAGE_11:
|
||||
case MESSAGE_12:
|
||||
return domainUrl + "/dd-noticemsg?appId=" + appId + "&corpId="+ corpId + "&appUrl=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=point×tamp="+System.currentTimeMillis()+"&pointId=" + paramMap.get("pointId"), StandardCharsets.UTF_8.name());
|
||||
return domainUrl + "/dd-noticemsg?appId=" + appId + "&corpId=" + corpId + "&appUrl=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=point×tamp=" + System.currentTimeMillis() + "&pointId=" + paramMap.get("pointId"), StandardCharsets.UTF_8.name());
|
||||
case MESSAGE_13:
|
||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+ appId +"&corpId=" + corpId + "&page=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=point×tamp="+System.currentTimeMillis()+"&pointId="+ paramMap.get("pointId"), StandardCharsets.UTF_8.name());
|
||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId=" + appId + "&corpId=" + corpId + "&page=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=point×tamp=" + System.currentTimeMillis() + "&pointId=" + paramMap.get("pointId"), StandardCharsets.UTF_8.name());
|
||||
case MESSAGE_14:
|
||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=pointPush×tamp="+System.currentTimeMillis()+"&lineId="+ paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId=" + appId + "&corpId=" + corpId + "&page=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=pointPush×tamp=" + System.currentTimeMillis() + "&lineId=" + paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||
case MESSAGE_15:
|
||||
case MESSAGE_16:
|
||||
case MESSAGE_18:
|
||||
@@ -117,6 +117,10 @@ public enum MessageEnum {
|
||||
case MESSAGE_22:
|
||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=employeeTraining×tamp="+System.currentTimeMillis()+"&userDetailId="+ paramMap.get("userDetailId"), StandardCharsets.UTF_8.name());
|
||||
case MESSAGE_24:
|
||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=employeeTraining×tamp="+System.currentTimeMillis(), StandardCharsets.UTF_8.name());
|
||||
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -22,13 +22,14 @@ public enum SMSMsgEnum {
|
||||
SELECT_SUCCESS("选铺成功", "", "SMS_465950846"),
|
||||
RENT_CONTRACT_AUDIT_FAIL("租赁合同上传未通过", "", "SMS_465955429"),
|
||||
SHOP_EXPERIENCE("门店体验安排", "", "SMS_465905828"),
|
||||
SYS_BUILD_STORE_DONE("系统建店已完成","","SMS_465916277"),
|
||||
LICENSE_SUBMITTED("证照待提交","","SMS_465981218"),
|
||||
LICENSE_NOT_PASS("证照未通过","","SMS_465971250"),
|
||||
FRANCHISE_FEE_SUBMITTED("缴纳加盟费待缴纳","","SMS_465921311"),
|
||||
FRANCHISE_FEE_NOT_PASS("缴纳加盟费缴纳失败","","SMS_465896262"),
|
||||
SYS_BUILD_STORE_DONE("系统建店已完成", "", "SMS_465916277"),
|
||||
LICENSE_SUBMITTED("证照待提交", "", "SMS_465981218"),
|
||||
LICENSE_NOT_PASS("证照未通过", "", "SMS_465971250"),
|
||||
FRANCHISE_FEE_SUBMITTED("缴纳加盟费待缴纳", "", "SMS_465921311"),
|
||||
FRANCHISE_FEE_NOT_PASS("缴纳加盟费缴纳失败", "", "SMS_465896262"),
|
||||
DECORATION_MODEL_PAY("装修款待缴费", "","SMS_465961253"),
|
||||
THREE_ACCEPTANCE_WAIT("三方验收待验收","","SMS_465961257"),
|
||||
TRAINING_REGISTER_SUCCESS("培训登记中", "", "SMS_466035101"),
|
||||
|
||||
;
|
||||
|
||||
private String title;
|
||||
|
||||
Reference in New Issue
Block a user