1
This commit is contained in:
parent
fed122e8df
commit
df15488c79
@ -1171,6 +1171,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
|||||||
return false, errors.New("审核失败")
|
return false, errors.New("审核失败")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if req.IdenAuthStatus == 1 {
|
||||||
// 获取医生云证书数据
|
// 获取医生云证书数据
|
||||||
userCaCertDao := dao.UserCaCertDao{}
|
userCaCertDao := dao.UserCaCertDao{}
|
||||||
maps := make(map[string]interface{})
|
maps := make(map[string]interface{})
|
||||||
@ -1180,6 +1181,7 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return false, errors.New("请先申请云证书")
|
return false, errors.New("请先申请云证书")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
userDoctorData := make(map[string]interface{}) // 医生数据
|
userDoctorData := make(map[string]interface{}) // 医生数据
|
||||||
userDoctorInfoData := 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")
|
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
|
maps["doctor_id"] = doctorId
|
||||||
err = doctorIdenFailDao.DeleteDoctorIdenFail(tx, maps)
|
err = doctorIdenFailDao.DeleteDoctorIdenFail(tx, maps)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user