|
@ -703,6 +703,19 @@ public class FamilyMemberService extends BaseService {
|
|
|
PatientFamilyTemp temp = patientFamilyTempDao.findOne(id);
|
|
|
temp.setState("2");
|
|
|
patientFamilyTempDao.save(temp);
|
|
|
|
|
|
Patient p = patientDao.findByCode(temp.getPatient());
|
|
|
Patient m = patientDao.findByCode(temp.getFamilyMember());
|
|
|
|
|
|
//发送添加成功消息模板
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("first", p.getName() + ",您好!您的家人"+m.getName()+"拒绝了您的家人申请。");
|
|
|
json.put("keyword1", "添加家人申请失败");
|
|
|
json.put("keyword2", DateUtil.dateToStr(new Date(), "yyyy-MM-dd"));
|
|
|
json.put("remark"," ");
|
|
|
System.out.println("-----sendMes----:openId "+p.getOpenid()+"-----access_token-----:"+access_token+"--json--");
|
|
|
//此消息为定向推送,无需家人代收
|
|
|
PushMsgTask.getInstance().putWxMsg(access_token, 14, p.getOpenid(), p.getName(), json);
|
|
|
return 2;
|
|
|
}
|
|
|
}
|