diff --git a/app/db/db_user_identity.go b/app/db/db_user_identity.go index d6a85c0..5a23929 100644 --- a/app/db/db_user_identity.go +++ b/app/db/db_user_identity.go @@ -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) { 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 { return nil, logx.Error(err) }