|
@@ -61,21 +61,47 @@ public class EpiTemplateMessageService {
|
|
|
// 指引与文档模版:{{keyword4.DATA}} 指引与文档模板:无
|
|
|
// 指派人:{{keyword5.DATA}} 指派人:系统
|
|
|
// {{remark.DATA}} 家园互助平台提醒您,请及时提交今天的健康日报。
|
|
|
+// public int systemSendRemindMessage(Long userId, String openId) {
|
|
|
+// int re = 0;
|
|
|
+// Map<String, String> map = Maps.newHashMap();
|
|
|
+// List<UptownHome> uptownHomeList = uptownHomeMapper.getUptownHomeByUserId(userId);
|
|
|
+// if (uptownHomeList != null && uptownHomeList.size()>0) {
|
|
|
+// map.put("first", "尊敬的 "+uptownHomeList.get(0).getLinkman()+" 先生/女士,");
|
|
|
+// map.put("keyword1", "家园互助平台");
|
|
|
+// map.put("keyword2", "健康日报 上报");
|
|
|
+// SimpleDateFormat sdf1 =new SimpleDateFormat("yyyy-MM-dd" );
|
|
|
+// Date d1= new Date();
|
|
|
+// String str1 = sdf1.format(d1);
|
|
|
+// map.put("keyword3", str1);
|
|
|
+// map.put("keyword4", "无");
|
|
|
+// map.put("keyword5", "系统");
|
|
|
+// map.put("remark", "家园互助平台提醒您,为了您和他人的健康请及时提交每天的健康日报,上报情况将直接关系到您的小区临时出入,如已填报忽略本消息");
|
|
|
+// re = 1;
|
|
|
+// }
|
|
|
+// templateMessageService.sendSysRemindMessage(openId, "", map);
|
|
|
+// return re;
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+// 工作任务提醒
|
|
|
+// {{first.DATA}}
|
|
|
+// 员工姓名:{{keyword1.DATA}}
|
|
|
+// 提醒时间:{{keyword2.DATA}}
|
|
|
+// 任务内容:{{keyword3.DATA}}
|
|
|
+// {{remark.DATA}}
|
|
|
public int systemSendRemindMessage(Long userId, String openId) {
|
|
|
int re = 0;
|
|
|
Map<String, String> map = Maps.newHashMap();
|
|
|
List<UptownHome> uptownHomeList = uptownHomeMapper.getUptownHomeByUserId(userId);
|
|
|
if (uptownHomeList != null && uptownHomeList.size()>0) {
|
|
|
- map.put("first", "尊敬的 "+uptownHomeList.get(0).getLinkman()+" 先生/女士,");
|
|
|
- map.put("keyword1", "家园互助平台");
|
|
|
- map.put("keyword2", "健康日报 上报");
|
|
|
+ map.put("first", "");
|
|
|
+ map.put("keyword1", "尊敬的 "+uptownHomeList.get(0).getLinkman()+" 先生/女士,");
|
|
|
SimpleDateFormat sdf1 =new SimpleDateFormat("yyyy-MM-dd" );
|
|
|
Date d1= new Date();
|
|
|
String str1 = sdf1.format(d1);
|
|
|
- map.put("keyword3", str1);
|
|
|
- map.put("keyword4", "无");
|
|
|
- map.put("keyword5", "系统");
|
|
|
- map.put("remark", "家园互助平台提醒您,为了您和他人的健康请及时提交每天的健康日报,上报情况将直接关系到您的小区临时出入,如已填报忽略本消息");
|
|
|
+ map.put("keyword2", str1);
|
|
|
+ map.put("keyword3", "健康日报 上报");
|
|
|
+ map.put("remark", "凌云互助家园提醒您,为了您和他人的健康请及时提交每天的健康日报,上报情况将直接关系到您办公园区的临时出入,如已填报忽略本消息");
|
|
|
re = 1;
|
|
|
}
|
|
|
templateMessageService.sendSysRemindMessage(openId, "", map);
|
|
@@ -83,6 +109,7 @@ public class EpiTemplateMessageService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
public int systemSendRemindMessageTest(Long userId, String openId) {
|
|
|
int re = 0;
|
|
|
Map<String, String> map = Maps.newHashMap();
|