...
|
...
|
@@ -332,6 +332,9 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
|
|
if offsetLimitFlag {
|
|
|
query.SetOffsetAndLimit(20)
|
|
|
}
|
|
|
if v, ok := queryOptions["sortByStatus"]; ok && v.(int32) > 0 {
|
|
|
query.SetOrderDirect("status", "ASC")
|
|
|
}
|
|
|
query.SetOrderDirect("cooperation_project_id", "DESC")
|
|
|
if count, err := query.SelectAndCount(); err != nil {
|
|
|
return 0, cooperationProjects, err
|
...
|
...
|
|