|
@ -600,7 +600,14 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
@RequestParam(value = "doctor",required = true) String doctor)throws Exception{
|
|
@RequestParam(value = "doctor",required = true) String doctor)throws Exception{
|
|
prescriptionService.pickVideoPrescripitonWaitingPeople(outpatientCode,doctor);
|
|
prescriptionService.pickVideoPrescripitonWaitingPeople(outpatientCode,doctor);
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findOne(outpatientCode);
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findOne(outpatientCode);
|
|
|
|
if (StringUtils.isNoneBlank(wlyyOutpatientDO.getType())){
|
|
|
|
if (wlyyOutpatientDO.getType().equalsIgnoreCase("2")&&wlyyOutpatientDO.getOutpatientType().equalsIgnoreCase("3")){
|
|
|
|
prescriptionService.sendWxTemplateMsg(wxId, wlyyOutpatientDO.getId(),null, "17", "videoOrderRemind", "");
|
|
|
|
}else if (wlyyOutpatientDO.getType().equalsIgnoreCase("2")&&wlyyOutpatientDO.getOutpatientType().equalsIgnoreCase("1")){
|
|
|
|
prescriptionService.sendWxTemplateMsg(wxId, wlyyOutpatientDO.getId(),null, "16", "videoOrderRemind", "");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
//发送外层SOCKET消息 在线复诊
|
|
//发送外层SOCKET消息 在线复诊
|
|
if("2".equals(wlyyOutpatientDO.getOutpatientType())){
|
|
if("2".equals(wlyyOutpatientDO.getOutpatientType())){
|
|
System.out.println("发送外层SOCKET消息:协同门诊医生抢单之后,通知全科医生修改状态");
|
|
System.out.println("发送外层SOCKET消息:协同门诊医生抢单之后,通知全科医生修改状态");
|
|
@ -613,7 +620,7 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
JSONObject object = new JSONObject();
|
|
JSONObject object = new JSONObject();
|
|
object.put("socket_sms_type",6);
|
|
object.put("socket_sms_type",6);
|
|
object.put("relation_code",wlyyOutpatientDO.getId());
|
|
object.put("relation_code",wlyyOutpatientDO.getId());
|
|
imService.sendWaiSocketMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getPatient(),object.toString(),"1");
|
|
|
|
|
|
imService.sendWaiSocketMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getConsumer(),object.toString(),"1");
|
|
}
|
|
}
|
|
return success("请求成功");
|
|
return success("请求成功");
|
|
}
|
|
}
|