|
@ -556,19 +556,20 @@ public class RehabilitationManageService extends BaseService {
|
|
Patient p = patientDao.findByCode(patient);
|
|
Patient p = patientDao.findByCode(patient);
|
|
String patientName = p.getName();
|
|
String patientName = p.getName();
|
|
String openId = p.getOpenid();
|
|
String openId = p.getOpenid();
|
|
WechatTemplateConfig templateConfig = templateConfigDao.findByScene("template_doctor_survey","fwxmpj");
|
|
|
|
|
|
WechatTemplateConfig templateConfig = templateConfigDao.findByScene("template_doctor_service","fwxmpj");
|
|
String first = templateConfig.getFirst();
|
|
String first = templateConfig.getFirst();
|
|
first = first.replace("key1",(patientName==null?"":patientName));
|
|
first = first.replace("key1",(patientName==null?"":patientName));
|
|
String keyword1 = templateConfig.getKeyword1();
|
|
String keyword1 = templateConfig.getKeyword1();
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
json.put("keyword1", keyword1);
|
|
|
|
json.put("keyword2", sdf.format(new Date()));
|
|
|
|
|
|
json.put("keyword1", title);
|
|
|
|
json.put("keyword2",doctor);
|
|
|
|
json.put("keyword3", sdf.format(new Date()));
|
|
json.put("toUser", p.getCode());
|
|
json.put("toUser", p.getCode());
|
|
json.put("represented",p.getCode());//被代理人
|
|
json.put("represented",p.getCode());//被代理人
|
|
json.put("remark", "");
|
|
json.put("remark", "");
|
|
json.put("doctor",doctor);
|
|
json.put("doctor",doctor);
|
|
json.put("serviceItemId", serviceItemId);
|
|
|
|
|
|
json.put("planIds", planDetailId);
|
|
first = first.replace("key2",title);
|
|
first = first.replace("key2",title);
|
|
json.put("first", first);
|
|
json.put("first", first);
|
|
if(StringUtils.isNotBlank(p.getOpenid())){
|
|
if(StringUtils.isNotBlank(p.getOpenid())){
|