1
This commit is contained in:
@@ -349,8 +349,13 @@ func (r *DoctorInquiryConfigService) AddDoctorInquiryConfig(req requests.AddDoct
|
||||
}
|
||||
|
||||
// 获取医生数据
|
||||
doctorId, err := strconv.ParseInt(req.DoctorId, 10, 64)
|
||||
if err != nil {
|
||||
return false, errors.New("医院错误")
|
||||
}
|
||||
|
||||
userDoctorDao := dao.UserDoctorDao{}
|
||||
userDoctor, err := userDoctorDao.GetUserDoctorById(req.DoctorId)
|
||||
userDoctor, err := userDoctorDao.GetUserDoctorById(doctorId)
|
||||
if err != nil || userDoctor == nil {
|
||||
return false, errors.New(err.Error())
|
||||
}
|
||||
@@ -424,7 +429,7 @@ func (r *DoctorInquiryConfigService) AddDoctorInquiryConfig(req requests.AddDoct
|
||||
|
||||
// 新增医生问诊配置
|
||||
doctorInquiryConfig = &model.DoctorInquiryConfig{
|
||||
DoctorId: req.DoctorId,
|
||||
DoctorId: doctorId,
|
||||
InquiryType: req.InquiryType,
|
||||
InquiryMode: req.InquiryMode,
|
||||
IsEnable: req.IsEnable,
|
||||
|
||||
Reference in New Issue
Block a user