message
This commit is contained in:
@@ -108,11 +108,12 @@ public enum MessageEnum {
|
|||||||
case MESSAGE_19:
|
case MESSAGE_19:
|
||||||
case MESSAGE_20:
|
case MESSAGE_20:
|
||||||
case MESSAGE_23:
|
case MESSAGE_23:
|
||||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
//跳转我的加盟商的加盟商详情都可以使用这个
|
||||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=franchiseeDetails×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=franchiseeDetails×tamp=" + System.currentTimeMillis() + "&lineId=" + paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||||
case MESSAGE_17:
|
case MESSAGE_17:
|
||||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
return domainUrl + "/dd-noticemsg?appId=" + appId + "&corpId=" + corpId + "&appUrl=" +
|
||||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=license×tamp="+System.currentTimeMillis()+"&shopId="+ paramMap.get("shopId"), StandardCharsets.UTF_8.name());
|
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=license×tamp=" + System.currentTimeMillis() + "&shopId=" + paramMap.get("shopId"), StandardCharsets.UTF_8.name());
|
||||||
case MESSAGE_21:
|
case MESSAGE_21:
|
||||||
return domainUrl + "/dd-noticemsg?appId="+appId+"&corpId="+corpId+"&page=" +
|
return domainUrl + "/dd-noticemsg?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());
|
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=employeeTraining×tamp="+System.currentTimeMillis()+"&userDetailId="+ paramMap.get("userDetailId"), StandardCharsets.UTF_8.name());
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import java.text.MessageFormat;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -75,6 +76,10 @@ public class CommonService {
|
|||||||
return (AuditResultService) applicationContext.getBean(auditEnum.getClazz());
|
return (AuditResultService) applicationContext.getBean(auditEnum.getClazz());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendMessageAsync(List<String> userIds, MessageEnum message, Map<String, String> requestMap){
|
||||||
|
CompletableFuture.runAsync(() -> sendMessage(userIds, message, requestMap));
|
||||||
|
}
|
||||||
|
|
||||||
public void sendMessage(List<String> userIds, MessageEnum message, Map<String, String> requestMap){
|
public void sendMessage(List<String> userIds, MessageEnum message, Map<String, String> requestMap){
|
||||||
if(CollectionUtils.isEmpty(userIds)){
|
if(CollectionUtils.isEmpty(userIds)){
|
||||||
return;
|
return;
|
||||||
@@ -120,6 +125,10 @@ public class CommonService {
|
|||||||
sendSms(Arrays.asList(poneNumber), templateCode, templateParamMap);
|
sendSms(Arrays.asList(poneNumber), templateCode, templateParamMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendSmsAsync(String poneNumber, SMSMsgEnum templateCode, Map<String, String> templateParamMap){
|
||||||
|
CompletableFuture.runAsync(() -> sendSms(Arrays.asList(poneNumber), templateCode, templateParamMap));
|
||||||
|
}
|
||||||
|
|
||||||
public void sendSms(List<String> poneNumbers, SMSMsgEnum templateCode, Map<String, String> templateParamMap){
|
public void sendSms(List<String> poneNumbers, SMSMsgEnum templateCode, Map<String, String> templateParamMap){
|
||||||
List<String> signNameList = new ArrayList<>();
|
List<String> signNameList = new ArrayList<>();
|
||||||
signNameList.add("酷店掌");
|
signNameList.add("酷店掌");
|
||||||
|
|||||||
@@ -448,6 +448,13 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
|
|||||||
auditStatusService.insert(lineInfo.getId(),interviewInfo.getId(),auditId,AuditStageEnum.TWO.getCode());
|
auditStatusService.insert(lineInfo.getId(),interviewInfo.getId(),auditId,AuditStageEnum.TWO.getCode());
|
||||||
//发送短信
|
//发送短信
|
||||||
commonService.sendSms(lineInfo.getMobile(), SMSMsgEnum.SECOND_INTERVIEW_SUCCESS, null);
|
commonService.sendSms(lineInfo.getMobile(), SMSMsgEnum.SECOND_INTERVIEW_SUCCESS, null);
|
||||||
|
Map<String, String> requestMap = new HashMap<>();
|
||||||
|
//todo 建店还未开始时
|
||||||
|
requestMap.put("storeName","XXX");
|
||||||
|
requestMap.put("partnerName",lineInfo.getUsername());
|
||||||
|
requestMap.put("partnerMobile",lineInfo.getMobile());
|
||||||
|
requestMap.put("lineId",String.valueOf(lineInfo.getId()));
|
||||||
|
commonService.sendMessage(Arrays.asList(lineInfo.getInvestmentManager()),MessageEnum.MESSAGE_23,requestMap);
|
||||||
}
|
}
|
||||||
return lineInterviewDAO.updateInterviewInfo(updateInterviewInfo) > 0;
|
return lineInterviewDAO.updateInterviewInfo(updateInterviewInfo) > 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user