|
@ -5274,7 +5274,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
* @param outpatient
|
|
* @param outpatient
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public SystemMessageDO sendOutPatientMes(WlyyOutpatientDO outpatient) {
|
|
|
|
|
|
public SystemMessageDO sendOutPatientMes(WlyyOutpatientDO outpatient,boolean payFlag) {
|
|
SystemMessageDO systemMessageDO = new SystemMessageDO();
|
|
SystemMessageDO systemMessageDO = new SystemMessageDO();
|
|
String msg = "";
|
|
String msg = "";
|
|
JSONObject data = new JSONObject();
|
|
JSONObject data = new JSONObject();
|
|
@ -5288,11 +5288,15 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
if ("1".equals(outpatient.getType())) {
|
|
if ("1".equals(outpatient.getType())) {
|
|
systemMessageDO.setTitle("图文复诊");
|
|
systemMessageDO.setTitle("图文复诊");
|
|
systemMessageDO.setType("1");
|
|
systemMessageDO.setType("1");
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
|
|
|
if (payFlag){
|
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
|
}
|
|
} else {
|
|
} else {
|
|
systemMessageDO.setTitle("视频复诊预约成功");
|
|
systemMessageDO.setTitle("视频复诊预约成功");
|
|
systemMessageDO.setType("2");
|
|
systemMessageDO.setType("2");
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
|
|
|
if (payFlag){
|
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
|
}
|
|
msg = "您的视频复诊已预约成功。\n" +
|
|
msg = "您的视频复诊已预约成功。\n" +
|
|
"预计" + outpatient.getDoctorName() + "医生将于" + outpatient.getRegisterDate() + " 与您进行视频咨询。请留意系统消息或微信公众号消息。咨询开始时,医生将邀请您进行视频通话,请您关注消息提醒,及时接受医生视频邀请。";
|
|
"预计" + outpatient.getDoctorName() + "医生将于" + outpatient.getRegisterDate() + " 与您进行视频咨询。请留意系统消息或微信公众号消息。咨询开始时,医生将邀请您进行视频通话,请您关注消息提醒,及时接受医生视频邀请。";
|
|
systemMessageDO.setReceiver(outpatient.getDoctor());
|
|
systemMessageDO.setReceiver(outpatient.getDoctor());
|