|
@ -132,10 +132,6 @@ public class DoctorWorkTimeController extends BaseController {
|
|
if (StringUtils.isEmpty(receiveConsult)) {
|
|
if (StringUtils.isEmpty(receiveConsult)) {
|
|
return error(-1, "是否接受咨询参数不能为空");
|
|
return error(-1, "是否接受咨询参数不能为空");
|
|
}
|
|
}
|
|
Doctor doc = doctorDao.findByCode(getUID());
|
|
|
|
if(!(1==doc.getLevel())){
|
|
|
|
return error(-1, "非专科医生无法关闭咨询");
|
|
|
|
}
|
|
|
|
if (doctorWorkTimeService.setDoctorReceiveConsult(getUID(), receiveConsult)) {
|
|
if (doctorWorkTimeService.setDoctorReceiveConsult(getUID(), receiveConsult)) {
|
|
return error(200, "设置成功");
|
|
return error(200, "设置成功");
|
|
} else {
|
|
} else {
|