@@ -56,8 +56,8 @@ public class ${table.controllerName} {
}
@GetMapping("/{id}")
- public List<${entity}> findOne(@PathVariable Integer id) {
- return ${table.entityPath}Service.list();
+ public ${entity} findOne(@PathVariable Integer id) {
+ return ${table.entityPath}Service.getById(id);
@GetMapping("/page")