|
@ -751,5 +751,31 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
)throws Exception {
|
|
|
return success("操作成功",prescriptionService.getConsultSuggest(consultcode));
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = BaseHospitalRequestMapping.DodtorIM.sendOutPatientCancle)
|
|
|
@ApiOperation(value = "医生端:发送医生取消IM消息", notes = "医生端:发送医生取消IM消息")
|
|
|
public Envelop sendOutPatientCancle(@ApiParam(name = "patientName", value = "patientName")
|
|
|
@RequestParam(value = "patientName", required = true)String patientName,
|
|
|
@ApiParam(name = "session_id", value = "咨询sessionid")
|
|
|
@RequestParam(value = "session_id", required = true)String session_id,
|
|
|
@ApiParam(name = "doctor", value = "医生CODE")
|
|
|
@RequestParam(value = "doctor", required = true)String doctor,
|
|
|
@ApiParam(name = "doctorName", value = "")
|
|
|
@RequestParam(value = "doctorName", required = true)String doctorName,
|
|
|
@ApiParam(name = "cancleReason", value = "取消原因")
|
|
|
@RequestParam(value = "cancleReason", required = true)String cancleReason,
|
|
|
@ApiParam(name = "cancleContent", value = "取消说明")
|
|
|
@RequestParam(value = "cancleContent", required = true)String cancleContent
|
|
|
|
|
|
)throws Exception {
|
|
|
try {
|
|
|
String immsg = imService.sendOutPatientCancle(patientName,doctor,doctorName,session_id,cancleReason,cancleContent);
|
|
|
System.out.println("发送医生取消IM消息成功:"+immsg);
|
|
|
}catch (Exception e){
|
|
|
System.out.println("发送医生取消IM消息失败:"+e.getMessage());
|
|
|
// e.printStackTrace();
|
|
|
}
|
|
|
return success("操作成功");
|
|
|
}
|
|
|
|
|
|
}
|