正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -148,6 +148,9 @@ func (repo *EvaluationCycleRepository) Find(queryOptions map[string]interface{}) | @@ -148,6 +148,9 @@ func (repo *EvaluationCycleRepository) Find(queryOptions map[string]interface{}) | ||
148 | query.Where("time_end>=?", t) | 148 | query.Where("time_end>=?", t) |
149 | } | 149 | } |
150 | 150 | ||
151 | + // 按创建时间降序 | ||
152 | + query.Order("created_at DESC") | ||
153 | + | ||
151 | count, err := query.SelectAndCount() | 154 | count, err := query.SelectAndCount() |
152 | if err != nil { | 155 | if err != nil { |
153 | return 0, nil, err | 156 | return 0, nil, err |
-
请 注册 或 登录 后发表评论