Browse Source

duanxin

master
yinzuomei 3 years ago
parent
commit
973d88fd9d
  1. 5
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcServiceRecordV2ServiceImpl.java
  2. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcUserDemandRecServiceImpl.java
  3. 22
      epmet-module/epmet-message/epmet-message-client/src/main/java/com/epmet/constant/SmsTemplateConstant.java

5
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcServiceRecordV2ServiceImpl.java

@ -176,9 +176,10 @@ public class IcServiceRecordV2ServiceImpl extends BaseServiceImpl<IcServiceRecor
SendSmsFormDTO sms = new SendSmsFormDTO();
sms.setCustomerId(customerId);
sms.setMobile(serverInfoDTO.getMobile());
sms.setAliyunTemplateCode(SmsTemplateConstant.COMMON_SMS_TEM);
sms.setAliyunTemplateCode(SmsTemplateConstant.IC_SERVICE_TEM);
Map<String, String> paramMap = new HashMap<>();
paramMap.put("content", String.format("%s发起一个【%s】服务,请服务完成后尽快反馈,谢谢合作。", staffInfoCacheResult.getAgencyName(), serviceName));
paramMap.put("name",staffInfoCacheResult.getAgencyName());
paramMap.put("serviceName",serviceName);
sms.setParamMap(paramMap);
smsList.add(sms);
messageOpenFeignClient.sendMsg(smsList);

4
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcUserDemandRecServiceImpl.java

@ -453,9 +453,9 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD
SendSmsFormDTO sms = new SendSmsFormDTO();
sms.setCustomerId(customerId);
sms.setMobile(mobile);
sms.setAliyunTemplateCode(SmsTemplateConstant.COMMON_SMS_TEM);
sms.setAliyunTemplateCode(SmsTemplateConstant.DEMAND_SERVICE_TEM);
Map<String, String> paramMap = new HashMap<>();
paramMap.put("content", String.format("%s给您指派了一个新的需求,请查看", staffInfoCacheResult.getAgencyName()));
paramMap.put("name",staffInfoCacheResult.getAgencyName());
sms.setParamMap(paramMap);
smsList.add(sms);
messageOpenFeignClient.sendMsg(smsList);

22
epmet-module/epmet-message/epmet-message-client/src/main/java/com/epmet/constant/SmsTemplateConstant.java

@ -39,10 +39,22 @@ public interface SmsTemplateConstant {
String PROJECT_OVERDUE = "SMS_206885207";
/**
* 通用的短信模板翻出来的内容
*党群e事通:XXXXX
* 参数keycontent
* 模板名称
* 数字社区-服务方接收消息模板
* 模板CODE
* SMS_247205033
* 模板内容
* ${nane}发起一个${serviceName}服务请服务完成后尽快反馈谢谢合作
*/
// todo
String COMMON_SMS_TEM="";
String IC_SERVICE_TEM="SMS_247205033";
/**
* 模板名称
* 数字社区-需求服务方接收消息模板
* 模板CODE
* SMS_247645013
* 模板内容
* ${name}给您指派了一个新的需求请服务完成后尽快反馈谢谢合作
*/
String DEMAND_SERVICE_TEM="SMS_247645013";
}

Loading…
Cancel
Save