|
@ -256,6 +256,14 @@ public class FamilyMemberService extends BaseService {
|
|
|
if (fmt != null) {
|
|
|
memberDao.delete(fmt);
|
|
|
}
|
|
|
//删除微信模板临时表
|
|
|
List<PatientFamilyTemp> patientFamilyTemps = patientFamilyTempDao.findByDealerAndPatient(member,patient);
|
|
|
|
|
|
if(patientFamilyTemps!=null&&patientFamilyTemps.size()>0){
|
|
|
for(PatientFamilyTemp temp : patientFamilyTemps){
|
|
|
patientFamilyTempDao.delete(temp);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
}
|
|
@ -683,7 +691,7 @@ public class FamilyMemberService extends BaseService {
|
|
|
if(StringUtils.isNotBlank(p.getOpenid())){
|
|
|
//发送添加成功消息模板
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("first", p.getName() + ",您好!添加家人"+m.getName()+"申请成功。");
|
|
|
json.put("first", p.getName() + ",您好!"+m.getName()+"已加入到您的家庭成员。");
|
|
|
json.put("keyword1", "添加家人申请成功");
|
|
|
json.put("keyword2", DateUtil.dateToStr(new Date(), "yyyy-MM-dd"));
|
|
|
// json.put("keyword3", m.getName());
|
|
@ -709,7 +717,7 @@ public class FamilyMemberService extends BaseService {
|
|
|
|
|
|
//发送添加成功消息模板
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("first", p.getName() + ",您好!您的家人"+m.getName()+"拒绝了您的家人申请。");
|
|
|
json.put("first", p.getName() + ",您好!"+m.getName()+"拒绝了您的家人申请。");
|
|
|
json.put("keyword1", "添加家人申请失败");
|
|
|
json.put("keyword2", DateUtil.dateToStr(new Date(), "yyyy-MM-dd"));
|
|
|
json.put("remark"," ");
|