From 5504b0c61ef5674551326c55971318dd9026b4be Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 11 Sep 2023 17:44:24 +0800 Subject: [PATCH] update --- app/admin/svc/svc_enterprise.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/svc/svc_enterprise.go b/app/admin/svc/svc_enterprise.go index bd2d01e..9290483 100644 --- a/app/admin/svc/svc_enterprise.go +++ b/app/admin/svc/svc_enterprise.go @@ -9,7 +9,7 @@ import ( func EnterpriseList(admin model.Admin, req md.EnterpriseListReq) (m []model.Enterprise, total int64, err error) { sess := db.Db.Desc("id") - if admin.IsSuperAdministrator == enum2.IsSuperAdministratorTure { + if admin.IsSuperAdministrator != enum2.IsSuperAdministratorTure { adminWithEnterpriseDb := db.AdminWithEnterpriseDb{} adminWithEnterpriseDb.Set() adminWithEnterprise, err1 := adminWithEnterpriseDb.FindAdminWithEnterprise(admin.AdmId)