|
@ -929,7 +929,7 @@ public class FamilyContractService extends BaseService {
|
|
|
Doctor doc = doctorDao.findByCode(sf.getDoctor());
|
|
|
Hospital hos = hospitalDao.findByCode(doc.getHospital());
|
|
|
|
|
|
String content = "祝贺您,成功签约" + sf.getDoctorName() + "医生团队,您已可以享受家庭医生所带来的无微不至的健康保健服务。" +
|
|
|
String content = sf.getName() + ",您好!祝贺您,成功签约" + sf.getDoctorName() + "医生团队,您已可以享受家庭医生所带来的无微不至的健康保健服务。" +
|
|
|
"为了给您提供更好的服务,请尽快到" + (hos != null ? hos.getName() : "") + "社区(地址:" +
|
|
|
(hos != null ? hos.getAddress() : "") + ")缴费。";
|
|
|
JSONObject json = new JSONObject();
|
|
@ -1112,7 +1112,7 @@ public class FamilyContractService extends BaseService {
|
|
|
json.put("doctor", StringUtils.isEmpty(sf.getDoctor()) ? sf.getDoctorHealth() : sf.getDoctor());
|
|
|
json.put("doctorName", StringUtils.isEmpty(sf.getDoctor()) ? sf.getDoctorHealthName() : sf.getDoctorName());
|
|
|
json.put("date", DateUtil.dateToStrShort(new Date()));
|
|
|
json.put("content", "您与 " + (StringUtils.isEmpty(sf.getDoctor()) ? sf.getDoctorHealthName() : sf.getDoctorName()) + " 医生建立家庭医生签约关系失败,请查看!");
|
|
|
json.put("content", sf.getName() + ",您好!您与 " + (StringUtils.isEmpty(sf.getDoctor()) ? sf.getDoctorHealthName() : sf.getDoctorName()) + " 医生建立家庭医生签约关系失败,请查看!");
|
|
|
json.put("remark", "您好,签约家庭医生失败通知");
|
|
|
// 添加到发送队列
|
|
|
PushMsgTask.getInstance().putWxMsg(access_token, 2, sf.getOpenid(), sf.getName(), json);
|
|
@ -1131,7 +1131,7 @@ public class FamilyContractService extends BaseService {
|
|
|
Doctor doc = doctorDao.findByCode(StringUtils.isNotEmpty(doctor) ? sf.getDoctorHealth() : sf.getDoctor());
|
|
|
Hospital hos = hospitalDao.findByCode(doc.getHospital());
|
|
|
|
|
|
String content = "祝贺您,成功签约" + doc.getName() + "医生团队,您已可以享受家庭医生所带来的无微不至的健康保健服务。" +
|
|
|
String content = sf.getName() + ",您好!祝贺您,成功签约" + doc.getName() + "医生团队,您已可以享受家庭医生所带来的无微不至的健康保健服务。" +
|
|
|
"为了给您提供更好的服务,请尽快到" + (hos != null ? hos.getName() : "") + "社区(地址:" +
|
|
|
(hos != null ? hos.getAddress() : "") + ")缴费。";
|
|
|
// 同意签约
|
|
@ -1200,7 +1200,7 @@ public class FamilyContractService extends BaseService {
|
|
|
json.put("doctor", sf.getDoctor());
|
|
|
json.put("doctorName", sf.getDoctorName());
|
|
|
json.put("orgName", sf.getHospitalName());
|
|
|
json.put("remark", "您好,您的签约医生已同意您的解约申请,解约已生效。");
|
|
|
json.put("remark", sf.getName() + ",您好!您的签约医生已同意您的解约申请,解约已生效。");
|
|
|
// 添加到发送队列
|
|
|
PushMsgTask.getInstance().putWxMsg(access_token, 5, sf.getOpenid(), sf.getName(), json);
|
|
|
} else {
|
|
@ -1214,7 +1214,7 @@ public class FamilyContractService extends BaseService {
|
|
|
json.put("doctor", sf.getDoctor());
|
|
|
json.put("doctorName", sf.getDoctorName());
|
|
|
json.put("orgName", sf.getHospitalName());
|
|
|
json.put("remark", "您好,您的签约医生拒绝您的解约申请,解约失败。");
|
|
|
json.put("remark", sf.getName() + ",您好!您的签约医生拒绝您的解约申请,解约失败。");
|
|
|
// 添加到发送队列
|
|
|
PushMsgTask.getInstance().putWxMsg(access_token, 5, sf.getOpenid(), sf.getName(), json);
|
|
|
}
|