fix(任务中心): 任务详情列表排序

--bug=1048332 --user=王旭 【任务中心】任务详情列表-未按任务创建时间降序排列 https://www.tapd.cn/55049933/s/1612072
This commit is contained in:
WangXu10 2024-11-19 14:25:06 +08:00 committed by Craftsman
parent 9065ef4eb9
commit b7befa6a6a
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ public class BaseTaskHubService {
*/ */
public Pager<List<TaskHubItemDTO>> getCaseTaskItemList(TaskHubItemRequest request, String orgId, String projectId) { public Pager<List<TaskHubItemDTO>> getCaseTaskItemList(TaskHubItemRequest request, String orgId, String projectId) {
Page<Object> page = PageMethod.startPage(request.getCurrent(), request.getPageSize(), Page<Object> page = PageMethod.startPage(request.getCurrent(), request.getPageSize(),
StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "id asc"); StringUtils.isNotBlank(request.getSortString()) ? request.getSortString() : "id desc");
return PageUtils.setPageInfo(page, getCaseTaskItemPage(request, orgId, projectId)); return PageUtils.setPageInfo(page, getCaseTaskItemPage(request, orgId, projectId));
} }