|
@ -190,7 +190,9 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
@ApiParam(name = "type", value = "咨询类型(1、图文;2、视频,3、图文+视频)", defaultValue = "1")
|
|
@ApiParam(name = "type", value = "咨询类型(1、图文;2、视频,3、图文+视频)", defaultValue = "1")
|
|
@RequestParam(value = "type", required = true) Integer type,
|
|
@RequestParam(value = "type", required = true) Integer type,
|
|
@ApiParam(name = "reason", value = "复诊说明", defaultValue = "复诊说明")
|
|
@ApiParam(name = "reason", value = "复诊说明", defaultValue = "复诊说明")
|
|
@RequestParam(value = "reason", required = false) String reason)throws Exception{
|
|
|
|
|
|
@RequestParam(value = "reason", required = false) String reason,
|
|
|
|
@ApiParam(name = "source", value = "来源")
|
|
|
|
@RequestParam(value = "source", required = false) String source)throws Exception{
|
|
ConsultTeamDo consult = new ConsultTeamDo();
|
|
ConsultTeamDo consult = new ConsultTeamDo();
|
|
if(2 == type){
|
|
if(2 == type){
|
|
consult.setType(16);//视频复诊
|
|
consult.setType(16);//视频复诊
|
|
@ -235,13 +237,13 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
if("0".equals(rsCode)||"-2".equals(rsCode)){
|
|
if("0".equals(rsCode)||"-2".equals(rsCode)){
|
|
//挂号成功,已经挂号
|
|
//挂号成功,已经挂号
|
|
//2.
|
|
//2.
|
|
result = imService.addPrescriptionConsult(outpatientCode, patientCode,doctorCode,consult,reason,type,wxId);
|
|
|
|
|
|
result = imService.addPrescriptionConsult(outpatientCode, patientCode,doctorCode,consult,reason,type,wxId,source);
|
|
}else{
|
|
}else{
|
|
return failed(mes);
|
|
return failed(mes);
|
|
}
|
|
}
|
|
logger.info("调用挂号接口====END");
|
|
logger.info("调用挂号接口====END");
|
|
}else {
|
|
}else {
|
|
result = imService.addPrescriptionConsult(outpatientCode, patientCode,doctorCode,consult,reason,type,wxId);
|
|
|
|
|
|
result = imService.addPrescriptionConsult(outpatientCode, patientCode,doctorCode,consult,reason,type,wxId,source);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@ -297,7 +299,9 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
@ApiParam(name = "type", value = "咨询类型(1、图文;2、视频,3、图文+视频)", defaultValue = "1")
|
|
@ApiParam(name = "type", value = "咨询类型(1、图文;2、视频,3、图文+视频)", defaultValue = "1")
|
|
@RequestParam(value = "type", required = true) Integer type,
|
|
@RequestParam(value = "type", required = true) Integer type,
|
|
@ApiParam(name = "reason", value = "复诊说明", defaultValue = "复诊说明")
|
|
@ApiParam(name = "reason", value = "复诊说明", defaultValue = "复诊说明")
|
|
@RequestParam(value = "reason", required = false) String reason)throws Exception{
|
|
|
|
|
|
@RequestParam(value = "reason", required = false) String reason,
|
|
|
|
@ApiParam(name = "source", value = "来源")
|
|
|
|
@RequestParam(value = "source", required = false) String source)throws Exception{
|
|
ConsultTeamDo consult = new ConsultTeamDo();
|
|
ConsultTeamDo consult = new ConsultTeamDo();
|
|
if(2 == type){
|
|
if(2 == type){
|
|
consult.setType(16);//视频复诊
|
|
consult.setType(16);//视频复诊
|
|
@ -349,7 +353,7 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
*/
|
|
*/
|
|
|
|
|
|
//2.
|
|
//2.
|
|
result = imService.addConsult(outpatientCode, patientCode,doctorCode,consult,reason,type,wxId);
|
|
|
|
|
|
result = imService.addConsult(outpatientCode, patientCode,doctorCode,consult,reason,type,wxId,source);
|
|
}
|
|
}
|
|
return success("操作成功",result);
|
|
return success("操作成功",result);
|
|
}
|
|
}
|
|
@ -371,14 +375,16 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
@ApiParam(name = "images", value = "图片")
|
|
@ApiParam(name = "images", value = "图片")
|
|
@RequestParam(value = "images",required = false) String images,
|
|
@RequestParam(value = "images",required = false) String images,
|
|
@ApiParam(name = "voice", value = "语音")
|
|
@ApiParam(name = "voice", value = "语音")
|
|
@RequestParam(value = "voice",required = false) String voice)throws Exception{
|
|
|
|
|
|
@RequestParam(value = "voice",required = false) String voice,
|
|
|
|
@ApiParam(name = "source", value = "来源")
|
|
|
|
@RequestParam(value = "source",required = false) String source)throws Exception{
|
|
|
|
|
|
ConsultTeamDo consult = new ConsultTeamDo();
|
|
ConsultTeamDo consult = new ConsultTeamDo();
|
|
consult.setType(15);//家医咨询求助互联网医院专科医生:全科医生-专科医生-咨询聊天
|
|
consult.setType(15);//家医咨询求助互联网医院专科医生:全科医生-专科医生-咨询聊天
|
|
|
|
|
|
String result = "";
|
|
String result = "";
|
|
synchronized (patient_code.intern()){
|
|
synchronized (patient_code.intern()){
|
|
result = imService.generalAddExpertConsult(patient_code, general_doctor,special_doctor,when,symptoms,images,consult);
|
|
|
|
|
|
result = imService.generalAddExpertConsult(patient_code, general_doctor,special_doctor,when,symptoms,images,consult,source);
|
|
|
|
|
|
BaseDoctorDO generalDoctor = baseDoctorDao.findById(general_doctor);
|
|
BaseDoctorDO generalDoctor = baseDoctorDao.findById(general_doctor);
|
|
BaseDoctorDO specialDoctor = baseDoctorDao.findById(special_doctor);
|
|
BaseDoctorDO specialDoctor = baseDoctorDao.findById(special_doctor);
|