作者 tangxvhui

排序

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