|
@@ -33,6 +33,8 @@ public class KanbanHistoryDao extends BaseDao<KanbanHistory> {
|
|
|
query.project("code", true);
|
|
query.project("code", true);
|
|
|
query.project("description", true);
|
|
query.project("description", true);
|
|
|
query.project("createTime", true);
|
|
query.project("createTime", true);
|
|
|
|
|
+ // 按创建时间倒序
|
|
|
|
|
+ query.order("-createTime");
|
|
|
// 只取前 20 条记录
|
|
// 只取前 20 条记录
|
|
|
FindOptions findOptions = new FindOptions();
|
|
FindOptions findOptions = new FindOptions();
|
|
|
findOptions.limit(20);
|
|
findOptions.limit(20);
|