update: 优化任务处理

This commit is contained in:
ctwj
2025-08-10 00:54:30 +08:00
parent 14f22f9128
commit f5b5455989
7 changed files with 337 additions and 114 deletions

View File

@@ -82,7 +82,7 @@ func (r *TaskItemRepositoryImpl) GetListByTaskID(taskID uint, page, pageSize int
// 分页查询
offset := (page - 1) * pageSize
err = query.Offset(offset).Limit(pageSize).Order("item_index ASC").Find(&items).Error
err = query.Offset(offset).Limit(pageSize).Order("id ASC").Find(&items).Error
if err != nil {
return nil, 0, err
}