Commit bbbde1f4 by wenyang

0000943: 报聘短信提醒内容区分报聘者、团队长\辅导人

parent 4fff65fc
......@@ -785,6 +785,13 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
List<String> mobileNoList = new ArrayList<>(3);
mobileNoList.add(basicInfo.getMobileNo());
String name = basicInfo.getName();
Map<String,List<String>> smsParam = new HashMap<>();
List<String> list = new ArrayList<>();
list.add(systemConfigService.getSingleConfigValue("ALI_SMS_CONTRACT_3"));
list.add("{\"name\":\""+name+"\"}");
smsParam.put(basicInfo.getMobileNo(), list);
if (memberShip.getMentorPractitionerId() != null) {
AclPractitioner mentor = aclPractitionerMapper.selectByPrimaryKey(memberShip.getMentorPractitionerId());
mobileNoList.add(mentor.getMobileNo());
......@@ -797,7 +804,6 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
// 若辅导人和团队长为同一人,去重
List<String> uniqueList = mobileNoList.stream().distinct().collect(Collectors.toList());
String name = basicInfo.getName();
String system = memberShip.getSubsystem();
String mobileNo;
String templateCode;
......@@ -816,6 +822,10 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
for (int i = 0; i < uniqueList.size(); i++) {
mobileNo = uniqueList.get(i);
if(smsParam.get(mobileNo) != null && smsParam.get(mobileNo).size() > 1){
templateCode = smsParam.get(mobileNo).get(0);
content = smsParam.get(mobileNo).get(1);
}
sendService.sendEmailOrSMS("sms", mobileNo, "0", content, templateCode, null, null, "电子报聘合同生成提醒", 99, hiringBasicInfoId);
}
......
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