|
@ -28,6 +28,7 @@ import com.yihu.jw.hospital.mapping.service.DoctorMappingService;
|
|
import com.yihu.jw.hospital.message.dao.SystemMessageDao;
|
|
import com.yihu.jw.hospital.message.dao.SystemMessageDao;
|
|
import com.yihu.jw.hospital.message.service.SystemMessageService;
|
|
import com.yihu.jw.hospital.message.service.SystemMessageService;
|
|
import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
|
|
import com.yihu.jw.hospital.prescription.dao.OutpatientDao;
|
|
|
|
import com.yihu.jw.hospital.prescription.service.PrescriptionService;
|
|
import com.yihu.jw.hospital.prescription.service.entrance.EntranceService;
|
|
import com.yihu.jw.hospital.prescription.service.entrance.EntranceService;
|
|
import com.yihu.jw.hospital.ykyy.service.YkyyService;
|
|
import com.yihu.jw.hospital.ykyy.service.YkyyService;
|
|
import com.yihu.jw.im.dao.ConsultDao;
|
|
import com.yihu.jw.im.dao.ConsultDao;
|
|
@ -123,6 +124,9 @@ public class ImService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private YkyyService ykyyService;
|
|
private YkyyService ykyyService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private PrescriptionService prescriptionService;
|
|
|
|
|
|
@Value("${im.data_base_name}")
|
|
@Value("${im.data_base_name}")
|
|
private String data_base_name;
|
|
private String data_base_name;
|
|
@ -1479,26 +1483,30 @@ public class ImService {
|
|
data.put("gender",patient.getSex().toString());
|
|
data.put("gender",patient.getSex().toString());
|
|
data.put("question",consultTeam.getSymptoms());
|
|
data.put("question",consultTeam.getSymptoms());
|
|
|
|
|
|
|
|
|
|
|
|
String type="";
|
|
if (cons.getType()!=null&&1==cons.getType()){
|
|
if (cons.getType()!=null&&1==cons.getType()){
|
|
String msg =patient.getName()+ ",您好!您有1条图文咨询已结束,请及时对咨询医生进行评价。";
|
|
String msg =patient.getName()+ ",您好!您有1条图文咨询已结束,请及时对咨询医生进行评价。";
|
|
data.put("msg",msg);
|
|
data.put("msg",msg);
|
|
data.put("type","1");
|
|
data.put("type","1");
|
|
|
|
type="1";
|
|
}
|
|
}
|
|
if (cons.getType()!=null&&9==cons.getType()){
|
|
if (cons.getType()!=null&&9==cons.getType()){
|
|
String msg=patient.getName()+ ",您好!您有1条图文复诊已结束,请及时对咨询医生进行评价。";
|
|
String msg=patient.getName()+ ",您好!您有1条图文复诊已结束,请及时对咨询医生进行评价。";
|
|
data.put("msg",msg);
|
|
data.put("msg",msg);
|
|
data.put("type","9");
|
|
data.put("type","9");
|
|
|
|
type="9";
|
|
}
|
|
}
|
|
if (cons.getType()!=null&&16==cons.getType()){
|
|
if (cons.getType()!=null&&16==cons.getType()){
|
|
String msg=patient.getName()+ ",您好!您有1条视频复诊已结束,请及时对咨询医生进行评价。";
|
|
String msg=patient.getName()+ ",您好!您有1条视频复诊已结束,请及时对咨询医生进行评价。";
|
|
data.put("msg",msg);
|
|
data.put("msg",msg);
|
|
data.put("type","16");
|
|
data.put("type","16");
|
|
|
|
type="16";
|
|
}
|
|
}
|
|
if (cons.getType()!=null&&17==cons.getType()){
|
|
if (cons.getType()!=null&&17==cons.getType()){
|
|
String msg=patient.getName()+ ",您好!您有1条视频咨询已结束,请及时对咨询医生进行评价。";
|
|
String msg=patient.getName()+ ",您好!您有1条视频咨询已结束,请及时对咨询医生进行评价。";
|
|
data.put("msg",msg);
|
|
data.put("msg",msg);
|
|
data.put("type","17");
|
|
data.put("type","17");
|
|
|
|
type="17";
|
|
}
|
|
}
|
|
messageDO.setData(data.toString());
|
|
messageDO.setData(data.toString());
|
|
try {
|
|
try {
|
|
@ -1510,6 +1518,9 @@ public class ImService {
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wxId)){
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wxId)){
|
|
ykyyService.pushNotificationToYktPatient(patient.getYktId(),messageDO.getTitle(),data.get("msg").toString());
|
|
ykyyService.pushNotificationToYktPatient(patient.getYktId(),messageDO.getTitle(),data.get("msg").toString());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
prescriptionService.sendWxTemplateMsg(wxId,cons.getRelationCode(),type,"evaluateRemind",null);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|