作者 yangfu

fix: some optimize

@@ -21,7 +21,7 @@ type TablePreviewCommand struct { @@ -21,7 +21,7 @@ type TablePreviewCommand struct {
21 } 21 }
22 22
23 func (cmd *TablePreviewCommand) Valid(validation *validation.Validation) { 23 func (cmd *TablePreviewCommand) Valid(validation *validation.Validation) {
24 - if cmd.UseCache && cmd.PageSize == 0 { 24 + if cmd.UseCache && cmd.PageSize == 0 && cmd.Where.PageSize == 0 {
25 cmd.PageNumber = 1 25 cmd.PageNumber = 1
26 cmd.PageSize = 30000 //默认缓存前30000条 26 cmd.PageSize = 30000 //默认缓存前30000条
27 } 27 }