|
@@ -461,6 +461,7 @@ public class TemplateMessageServiceImpl implements TemplateMessageService {
|
|
|
contentVars.put("userName", studentApplication.getInsuredName());
|
|
|
contentVars.put("companyName", studentApplication.getInsuredName());
|
|
|
|
|
|
+
|
|
|
content = VelocityHelper.format(content,contentVars);
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
@@ -468,6 +469,9 @@ public class TemplateMessageServiceImpl implements TemplateMessageService {
|
|
|
Map<String,Object> jsonVars = new HashMap<>();
|
|
|
|
|
|
jsonVars.put("content",content);
|
|
|
+ jsonVars.put("time", DateTime.now().toString("yyyy-MM-dd HH:mm"));
|
|
|
+ jsonVars.put("companyName",studentApplication.getInsuredName()); //增加显示被保险人企业名称
|
|
|
+ jsonVars.put("type", "学平险");
|
|
|
|
|
|
String json = VelocityHelper.format(templateMessage.getJson(),jsonVars);
|
|
|
JSONObject jsonObject = new JSONObject(json);
|