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)