|
|
@@ -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) |
|
|
|