|
@ -1,6 +1,7 @@
|
|
|
package com.yihu.wlyy.web.doctor.scheduling;
|
|
|
|
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
|
import com.yihu.wlyy.service.app.account.DoctorInfoService;
|
|
|
import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
@ -27,6 +28,8 @@ public class DoctorWorkTimeController extends BaseController {
|
|
|
private DoctorInfoService doctorInfoService;
|
|
|
@Autowired
|
|
|
private DoctorWorkTimeService doctorWorkTimeService;
|
|
|
@Autowired
|
|
|
private DoctorDao doctorDao;
|
|
|
|
|
|
/**
|
|
|
* 查询医生工作时间设置
|
|
@ -129,6 +132,10 @@ public class DoctorWorkTimeController extends BaseController {
|
|
|
if (StringUtils.isEmpty(receiveConsult)) {
|
|
|
return error(-1, "是否接受咨询参数不能为空");
|
|
|
}
|
|
|
Doctor doc = doctorDao.findByCode(getUID());
|
|
|
if(!(1==doc.getLevel())){
|
|
|
return error(-1, "非专科医生无法关闭咨询");
|
|
|
}
|
|
|
if (doctorWorkTimeService.setDoctorReceiveConsult(getUID(), receiveConsult)) {
|
|
|
return error(200, "设置成功");
|
|
|
} else {
|