Kaynağa Gözat

发送模板消息中增加类型(新增、下月)。

zhengqiang 5 yıl önce
ebeveyn
işleme
1f37166812

+ 2 - 0
picc-common/src/main/java/com/jpsoft/picc/modules/base/service/impl/TemplateMessageServiceImpl.java

@@ -229,7 +229,9 @@ public class TemplateMessageServiceImpl implements TemplateMessageService {
 		jsonVars.put("time", DateTime.now().toString("yyyy-MM-dd HH:mm"));
 		jsonVars.put("insuredName",insuranceApplication.getInsuredName());  //投保人都是人才超市
 		jsonVars.put("companyName",companyName);  //增加显示被保险人企业名称
+		jsonVars.put("type", insurancePolicy.getNo()>1 ? "下月" : "新增");
 		jsonVars.put("insuranceName",insuranceApplication.getDefinitionName());
+
 		jsonVars.put("duration",sdf.format(insurancePolicy.getStartTime()) + "至" + sdf.format(insurancePolicy.getEndTime()));
 
 		String json = VelocityHelper.format(templateMessage.getJson(),jsonVars);