...
|
...
|
@@ -69,7 +69,8 @@ func (repository *CompanyRepository) Find(queryOptions map[string]interface{}) ( |
|
|
companyIds, _ := companies.([]int64)
|
|
|
query.Where("id in (?)", pg.In(companyIds))
|
|
|
}
|
|
|
query.SetWhere("status = ?", "status")
|
|
|
//query.SetWhere("status = ?", "status")
|
|
|
query.SetWhere(`enable = ?`, "enable")
|
|
|
query.SetOrder(`create_at`, "sortByCreateTime")
|
|
|
var err error
|
|
|
if query.AffectRow, err = query.SelectAndCount(); err != nil {
|
...
|
...
|
|