1
This commit is contained in:
parent
3f8126580d
commit
11c926fbfb
@ -849,12 +849,12 @@ func (r *UserDoctorService) GetDoctorIdenFailReasonByDoctorId(doctorId int64) (*
|
|||||||
doctorIdenFailDao := dao.DoctorIdenFailDao{}
|
doctorIdenFailDao := dao.DoctorIdenFailDao{}
|
||||||
doctorIdenFail, err := doctorIdenFailDao.GetDoctorIdenFailListByDoctorId(doctorId)
|
doctorIdenFail, err := doctorIdenFailDao.GetDoctorIdenFailListByDoctorId(doctorId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.New("审核失败原因数据错误")
|
return nil, errors.New(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
var idenAuthFailReason userDoctorResponse.IdenAuthFailReason
|
var idenAuthFailReason userDoctorResponse.IdenAuthFailReason
|
||||||
|
|
||||||
if doctorIdenFail != nil {
|
if len(doctorIdenFail) > 0 {
|
||||||
for _, v := range doctorIdenFail {
|
for _, v := range doctorIdenFail {
|
||||||
switch v.FieldName {
|
switch v.FieldName {
|
||||||
case "avatar":
|
case "avatar":
|
||||||
@ -1069,7 +1069,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
|||||||
if req.BeGoodAtReason != "" {
|
if req.BeGoodAtReason != "" {
|
||||||
doctorIdenFail := &model.DoctorIdenFail{
|
doctorIdenFail := &model.DoctorIdenFail{
|
||||||
DoctorId: doctorId,
|
DoctorId: doctorId,
|
||||||
FieldName: "be_good_at_reason",
|
FieldName: "be_good_at",
|
||||||
FailReason: req.BeGoodAtReason,
|
FailReason: req.BeGoodAtReason,
|
||||||
}
|
}
|
||||||
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
||||||
@ -1082,7 +1082,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
|||||||
if req.LicenseCertReason != "" {
|
if req.LicenseCertReason != "" {
|
||||||
doctorIdenFail := &model.DoctorIdenFail{
|
doctorIdenFail := &model.DoctorIdenFail{
|
||||||
DoctorId: doctorId,
|
DoctorId: doctorId,
|
||||||
FieldName: "license_cert_reason",
|
FieldName: "license_cert",
|
||||||
FailReason: req.LicenseCertReason,
|
FailReason: req.LicenseCertReason,
|
||||||
}
|
}
|
||||||
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
||||||
@ -1095,7 +1095,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
|||||||
if req.QualificationCertReason != "" {
|
if req.QualificationCertReason != "" {
|
||||||
doctorIdenFail := &model.DoctorIdenFail{
|
doctorIdenFail := &model.DoctorIdenFail{
|
||||||
DoctorId: doctorId,
|
DoctorId: doctorId,
|
||||||
FieldName: "qualification_cert_reason",
|
FieldName: "qualification_cert",
|
||||||
FailReason: req.QualificationCertReason,
|
FailReason: req.QualificationCertReason,
|
||||||
}
|
}
|
||||||
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
||||||
@ -1108,7 +1108,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
|||||||
if req.WorkCertReason != "" {
|
if req.WorkCertReason != "" {
|
||||||
doctorIdenFail := &model.DoctorIdenFail{
|
doctorIdenFail := &model.DoctorIdenFail{
|
||||||
DoctorId: doctorId,
|
DoctorId: doctorId,
|
||||||
FieldName: "work_cert_reason",
|
FieldName: "work_cert",
|
||||||
FailReason: req.WorkCertReason,
|
FailReason: req.WorkCertReason,
|
||||||
}
|
}
|
||||||
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
doctorIdenFail, err = doctorIdenFailDao.AddDoctorIdenFail(tx, doctorIdenFail)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user