正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -53,7 +53,7 @@ func (tableService *TableService) TablePreview(ctx *domain.Context, cmd *command | @@ -53,7 +53,7 @@ func (tableService *TableService) TablePreview(ctx *domain.Context, cmd *command | ||
53 | return nil, factory.FastError(err) | 53 | return nil, factory.FastError(err) |
54 | } | 54 | } |
55 | response.Fields = dataTable.Fields | 55 | response.Fields = dataTable.Fields |
56 | - response.Data = domain.GripData(domain.ToFieldData(dataTable.Fields, pageData(cmd.PageNumber, cmd.PageSize, dataTable.Data), false), int64(len(dataTable.Data))) | 56 | + response.Data = domain.GripData(domain.ToFieldData(dataTable.Fields, pageData(cmd.Where.PageNumber, cmd.Where.PageSize, dataTable.Data), false), int64(len(dataTable.Data))) |
57 | default: | 57 | default: |
58 | var options = starrocks.QueryOptions{ | 58 | var options = starrocks.QueryOptions{ |
59 | Table: table, | 59 | Table: table, |
@@ -77,7 +77,7 @@ func (tableService *TableService) TablePreview(ctx *domain.Context, cmd *command | @@ -77,7 +77,7 @@ func (tableService *TableService) TablePreview(ctx *domain.Context, cmd *command | ||
77 | switch table.TableType { | 77 | switch table.TableType { |
78 | case domain.CalculateSet.ToString(): | 78 | case domain.CalculateSet.ToString(): |
79 | response.Fields = dataTable.Fields | 79 | response.Fields = dataTable.Fields |
80 | - response.Data = domain.GripData(domain.ToFieldData(dataTable.Fields, pageData(cmd.PageNumber, cmd.PageSize, dataTable.Data), false), int64(len(dataTable.Data))) | 80 | + response.Data = domain.GripData(domain.ToFieldData(dataTable.Fields, pageData(cmd.Where.PageNumber, cmd.Where.PageSize, dataTable.Data), false), int64(len(dataTable.Data))) |
81 | default: | 81 | default: |
82 | response.Load(table, dataTable, domain.ObjectMetaTable) | 82 | response.Load(table, dataTable, domain.ObjectMetaTable) |
83 | } | 83 | } |
-
请 注册 或 登录 后发表评论