Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
9df238208c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/db/db_user_identity.go

+ 1
- 1
app/db/db_user_identity.go View File

@@ -44,7 +44,7 @@ func (userIdentityDb *UserIdentityDb) UserIdentityExist(enterpriseId int, idNo s


func (userIdentityDb *UserIdentityDb) UserIdentityExistV1(enterpriseId int, name string) (m *model.UserIdentity, err error) { func (userIdentityDb *UserIdentityDb) UserIdentityExistV1(enterpriseId int, name string) (m *model.UserIdentity, err error) {
m = new(model.UserIdentity) m = new(model.UserIdentity)
has, err := userIdentityDb.Db.Where("enterpriseId =?", enterpriseId).And("uid =?", userIdentityDb.Uid).And("name =?", name).Get(m)
has, err := userIdentityDb.Db.Where("enterprise_id =?", enterpriseId).And("uid =?", userIdentityDb.Uid).And("name =?", name).Get(m)
if err != nil { if err != nil {
return nil, logx.Error(err) return nil, logx.Error(err)
} }


Loading…
Cancel
Save