This commit is contained in:
wucongxing 2023-12-06 15:58:40 +08:00
parent fed122e8df
commit df15488c79

View File

@ -1171,6 +1171,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
return false, errors.New("审核失败")
}
if req.IdenAuthStatus == 1 {
// 获取医生云证书数据
userCaCertDao := dao.UserCaCertDao{}
maps := make(map[string]interface{})
@ -1180,6 +1181,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
if err != nil {
return false, errors.New("请先申请云证书")
}
}
userDoctorData := make(map[string]interface{}) // 医生数据
userDoctorInfoData := make(map[string]interface{}) // 医生详情数据
@ -1217,7 +1219,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
userDoctorData["iden_auth_time"] = time.Now().Format("2006-01-02 15:04:05")
// 审核通过删除所有不通过原因数据
maps = make(map[string]interface{})
maps := make(map[string]interface{})
maps["doctor_id"] = doctorId
err = doctorIdenFailDao.DeleteDoctorIdenFail(tx, maps)
if err != nil {