修改云证书申请判断

This commit is contained in:
2023-12-01 10:55:06 +08:00
parent 0b8e5a0264
commit 9949125252
3 changed files with 19 additions and 70 deletions
+10
View File
@@ -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
}