yshop2.1.3修复优化版本

This commit is contained in:
hupeng
2020-04-16 14:46:13 +08:00
parent 32bf13c531
commit 2eca87ad06
7 changed files with 19 additions and 12 deletions

View File

@ -47,7 +47,7 @@ public class GeneratorController {
public ResponseEntity<Object> getTables(@RequestParam(defaultValue = "") String name,
@RequestParam(defaultValue = "0")Integer page,
@RequestParam(defaultValue = "10")Integer size){
int[] startEnd = PageUtil.transToStartEnd(page+1, size);
int[] startEnd = PageUtil.transToStartEnd(page, size);
return new ResponseEntity<>(generatorService.getTables(name,startEnd), HttpStatus.OK);
}