修正身份认证审核错误原因清空问题
This commit is contained in:
parent
0a6ede141d
commit
539d989e7b
@ -1010,6 +1010,15 @@ 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["doctor_id"] = doctorId
|
||||||
|
err = doctorIdenFailDao.DeleteDoctorIdenFail(tx, maps)
|
||||||
|
if err != nil {
|
||||||
|
tx.Rollback()
|
||||||
|
return false, errors.New("审核失败")
|
||||||
|
}
|
||||||
|
|
||||||
// 审核不通过
|
// 审核不通过
|
||||||
if req.IdenAuthStatus == 3 {
|
if req.IdenAuthStatus == 3 {
|
||||||
userDoctorData["iden_auth_status"] = 3
|
userDoctorData["iden_auth_status"] = 3
|
||||||
@ -1124,15 +1133,6 @@ func (r *UserDoctorService) PutUserDoctorPending(doctorId int64, req requests.Pu
|
|||||||
userDoctorData["iden_auth_status"] = 1
|
userDoctorData["iden_auth_status"] = 1
|
||||||
userDoctorInfoData["qualification_cert_num"] = req.QualificationCertNum
|
userDoctorInfoData["qualification_cert_num"] = req.QualificationCertNum
|
||||||
|
|
||||||
// 审核通过删除所有不通过原因数据
|
|
||||||
maps := make(map[string]interface{})
|
|
||||||
maps["doctor_id"] = doctorId
|
|
||||||
err := doctorIdenFailDao.DeleteDoctorIdenFail(tx, maps)
|
|
||||||
if err != nil {
|
|
||||||
tx.Rollback()
|
|
||||||
return false, errors.New("审核失败")
|
|
||||||
}
|
|
||||||
|
|
||||||
// 更新医生im资料
|
// 更新医生im资料
|
||||||
profileItem := []tencentIm.ProfileItem{
|
profileItem := []tencentIm.ProfileItem{
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user