|
@@ -223,8 +223,8 @@ public class BasicMessageServiceImpl extends ServiceImpl<BasicMessageMapper, Bas
|
|
|
|
|
|
Map<String, Object> jsonMap = new HashMap<>();
|
|
Map<String, Object> jsonMap = new HashMap<>();
|
|
jsonMap.put("userName", userName);
|
|
jsonMap.put("userName", userName);
|
|
- jsonMap.put("courseName", examTask.getCourseName());
|
|
|
|
- jsonMap.put("paperNumber", examTask.getPaperNumber());
|
|
|
|
|
|
+ StringJoiner sj = new StringJoiner("、").add(examTask.getCourseName()).add(examTask.getPaperNumber());
|
|
|
|
+ jsonMap.put("courseNameAndPaperNumber", sj.toString());
|
|
String variableParams = JSON.toJSONString(jsonMap);
|
|
String variableParams = JSON.toJSONString(jsonMap);
|
|
String remark = String.format("命题任务ID:%s", examTask.getId().toString());
|
|
String remark = String.format("命题任务ID:%s", examTask.getId().toString());
|
|
this.saveMessageSendLog(userId, mobileNumber, examTask.getId(), variableParams, sysUser.getId(), messageType, remark);
|
|
this.saveMessageSendLog(userId, mobileNumber, examTask.getId(), variableParams, sysUser.getId(), messageType, remark);
|
|
@@ -322,6 +322,42 @@ public class BasicMessageServiceImpl extends ServiceImpl<BasicMessageMapper, Bas
|
|
templateCode = dictionaryConfig.smsDomain().getAliyunSMSAuditNotPassCode();
|
|
templateCode = dictionaryConfig.smsDomain().getAliyunSMSAuditNotPassCode();
|
|
templateContent = messageEnum.getTemplate();
|
|
templateContent = messageEnum.getTemplate();
|
|
break;
|
|
break;
|
|
|
|
+ case NOTICE_OF_EXAM_TASK_CREATED:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSExamTaskCreatedCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_EXAM_TASK_WILL_EXPIRE:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSExamTaskWillExpireCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_EXAM_TASK_OVERDUE:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSExamTaskOverdueCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_ALLOCATION_WILL_EXPIRE:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSAllocationWillExpireCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_ALLOCATION_OVERDUE:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSAllocationOverdueCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_AUDIT_CREATED:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSAuditCreatedCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_AUDIT_REVIEW:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSAuditReviewCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_AUDIT_WILL_EXPIRE:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSAuditWillExpireCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
|
|
+ case NOTICE_OF_AUDIT_OVERDUE:
|
|
|
|
+ templateCode = dictionaryConfig.smsDomain().getAliyunSMSAuditOverdueCode();
|
|
|
|
+ templateContent = messageEnum.getTemplate();
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
result.put("templateContent", templateContent);
|
|
result.put("templateContent", templateContent);
|
|
result.put("templateCode", templateCode);
|
|
result.put("templateCode", templateCode);
|