fix > controller.ftl

master
lihengming 8 years ago
parent 548db631e4
commit 78a43455c7
  1. 2
      src/test/resources/generator/template/controller.ftl

@ -48,7 +48,7 @@ public class ${modelNameUpperCamel}Controller {
@PostMapping("/list")
public Result list(Integer page, Integer size) {
PageHelper.startPage(page, size);
List<User> list = userService.findAll();
List<${modelNameUpperCamel}> list = ${modelNameLowerCamel}Service.findAll();
PageInfo pageInfo = new PageInfo(list);
return ResultGenerator.genSuccessResult(pageInfo);
}

Loading…
Cancel
Save