作者 tangxvhui

排序

@@ -96,6 +96,7 @@ func (repo *EvaluationItemUsedRepository) Find(queryOptions map[string]interface @@ -96,6 +96,7 @@ func (repo *EvaluationItemUsedRepository) Find(queryOptions map[string]interface
96 if v, ok := queryOptions["evaluatorId"]; ok { 96 if v, ok := queryOptions["evaluatorId"]; ok {
97 query.Where("evaluator_id=?", v) 97 query.Where("evaluator_id=?", v)
98 } 98 }
  99 + query.Order("sort_by")
99 100
100 count, err := query.SelectAndCount() 101 count, err := query.SelectAndCount()
101 if err != nil { 102 if err != nil {