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