|
@@ -82,6 +82,50 @@ public class EpiTemplateMessageService {
|
|
|
return re;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public int systemSendRemindMessageTest(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", "家园互助平台提醒您,即日起此公众号停用,请尽快扫码关注“凌云互助家园”并绑定原“家园互助平台”的注册手机号"+uptownHomeList.get(0).getPhone()+"。如未及时完成迁移的用户将无法正常复工。");
|
|
|
+ re = 1;
|
|
|
+ }
|
|
|
+ templateMessageService.sendSysRemindMessage(openId, "", map);
|
|
|
+ return re;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int systemSendRemindMessageTestOne(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", "家园互助平台提醒您,即日起此公众号停用,请尽快扫码关注“凌云互助家园”并绑定原“家园互助平台”的注册手机号"+uptownHomeList.get(0).getPhone()+"。如未及时完成迁移的用户将无法正常复工。");
|
|
|
+ re = 1;
|
|
|
+ }
|
|
|
+ templateMessageService.sendSysRemindMessage(openId, "", map);
|
|
|
+ return re;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public int tuangouSendRemindMessage(Long userId, String openId, Date endDate) {
|
|
|
int re = 0;
|
|
|
Map<String, String> map = Maps.newHashMap();
|