|
@ -150,7 +150,8 @@ public class DoctorHealthGuidanceController extends WeixinBaseController {
|
|
|
// 保存
|
|
|
if (patientHealthGuidanceService.add(guidance, getAccessToken()) != null) {
|
|
|
Patient p = patientService.findByCode(patient);
|
|
|
consultService.sendMucMessageBySingnType(getUID(), doctor.getName(), patient, content, "1", p.getName());
|
|
|
String imcotent = "{\"title\":\"健康指导\",\"type\":1,\"id\":\"" + guidance.getId() + "\",\"img\":\"" + guidance.getImages() + "\",\"content\":\""+CommonUtil.getSubString(guidance.getContent(),0,30)+"\"}";
|
|
|
consultService.sendMucMessageBySingnType(getUID(), doctor.getName(), patient, imcotent, "4", p.getName());
|
|
|
BusinessLogs.info(BusinessLogs.BusinessType.guidance, getUID(), patient, new JSONObject(guidance));
|
|
|
return success("保存成功!");
|
|
|
} else {
|
|
@ -188,7 +189,8 @@ public class DoctorHealthGuidanceController extends WeixinBaseController {
|
|
|
// 保存
|
|
|
if (patientHealthGuidanceService.add(guidance, getAccessToken()) != null) {
|
|
|
Patient p = patientService.findByCode(patient);
|
|
|
consultService.sendMucMessageBySingnType(getUID(), doctor.getName(), patient, content, "1", p.getName());
|
|
|
String imcotent = "{\"title\":\"健康指导\",\"type\":1,\"id\":\"" + guidance.getId() + "\",\"img\":\"" + guidance.getImages() + "\",\"content\":\""+CommonUtil.getSubString(guidance.getContent(),0,30)+"\"}";
|
|
|
consultService.sendMucMessageBySingnType(getUID(), doctor.getName(), patient, imcotent, "4", p.getName());
|
|
|
BusinessLogs.info(BusinessLogs.BusinessType.guidance, getUID(), patient, new JSONObject(guidance));
|
|
|
//发送成功记录模板发送次数
|
|
|
doctorGuidanceTempService.countSend(modelCode);
|