From 9df238208c909ddd10b5640446c89a5064824eb2 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 9 Sep 2023 16:26:52 +0800 Subject: [PATCH] update --- app/db/db_user_identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }