|
@ -1,5 +1,6 @@
|
|
package com.yihu.wlyy.web.third.gateway.controller.doctor;
|
|
package com.yihu.wlyy.web.third.gateway.controller.doctor;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
@ -45,8 +46,10 @@ public class GcDoctorController {
|
|
if (doctor != null) {
|
|
if (doctor != null) {
|
|
doctorModel = new DoctorModel();
|
|
doctorModel = new DoctorModel();
|
|
BeanUtils.copyProperties(doctor, doctorModel);
|
|
BeanUtils.copyProperties(doctor, doctorModel);
|
|
|
|
return new ResultOneModel(doctorModel);
|
|
|
|
} else {
|
|
|
|
return new ResultOneModel(new JSONObject());
|
|
}
|
|
}
|
|
return new ResultOneModel(doctorModel);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/doctors", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/doctors", method = RequestMethod.GET)
|
|
@ -81,8 +84,10 @@ public class GcDoctorController {
|
|
if (patientModel != null) {
|
|
if (patientModel != null) {
|
|
patientModel = new PatientModel();
|
|
patientModel = new PatientModel();
|
|
BeanUtils.copyProperties(patient, patientModel);
|
|
BeanUtils.copyProperties(patient, patientModel);
|
|
|
|
return new ResultOneModel(patientModel);
|
|
|
|
} else {
|
|
|
|
return new ResultOneModel(new JSONObject());
|
|
}
|
|
}
|
|
return new ResultOneModel(patientModel);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|