修改云证书申请判断
This commit is contained in:
@@ -1142,6 +1142,13 @@ func (r *UserDoctorService) GetUserDoctorPending(doctorId int64) (g *dto.UserDoc
|
||||
return nil, errors.New(err.Error())
|
||||
}
|
||||
|
||||
// 获取医生云证书数据
|
||||
userCaCertDao := dao.UserCaCertDao{}
|
||||
maps := make(map[string]interface{})
|
||||
maps["user_id"] = userDoctor.UserId
|
||||
maps["type"] = 2
|
||||
userCaCert, _ := userCaCertDao.GetUserCaCert(maps)
|
||||
|
||||
// 处理返回值
|
||||
g = dto.GetUserDoctorPendingDto(userDoctor)
|
||||
|
||||
@@ -1160,6 +1167,9 @@ func (r *UserDoctorService) GetUserDoctorPending(doctorId int64) (g *dto.UserDoc
|
||||
// 加载医生审核失败原因
|
||||
g.IdenAuthFailReason = dto.GetIdenAuthFailReasonDto(doctorIdenFail)
|
||||
|
||||
// 加载医生云证书详情
|
||||
g.LoadUserCaCert(userCaCert)
|
||||
|
||||
return g, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user