...
|
...
|
@@ -191,6 +191,9 @@ func (repository *OrgRepository) Find(queryOptions map[string]interface{}) (int6 |
|
|
query.SetWhereByQueryOption("org_name = ?", "depName")
|
|
|
query.SetWhereByQueryOption("org_code = ?", "orgCode")
|
|
|
query.SetWhereByQueryOption("parent_id = ?", "parentId")
|
|
|
if v, ok := queryOptions["matchOrgName"]; ok && len(v.(string)) > 0 {
|
|
|
query.Where(fmt.Sprintf(`org_name like '%%%v%%'`, v))
|
|
|
}
|
|
|
query.SetOrderDirect("org_id", "ASC")
|
|
|
if count, err := query.SelectAndCount(); err != nil {
|
|
|
return 0, orgs, err
|
...
|
...
|
|