diff --git a/src/test/resources/generator/template/controller-restful.ftl b/src/test/resources/generator/template/controller-restful.ftl index 7b12b7e..ad423d2 100644 --- a/src/test/resources/generator/template/controller-restful.ftl +++ b/src/test/resources/generator/template/controller-restful.ftl @@ -28,7 +28,7 @@ public class ${modelNameUpperCamel}Controller { @DeleteMapping("/{id}") public Result delete(@PathVariable Integer id) { - userService.deleteById(id); + ${modelNameLowerCamel}Service.deleteById(id); return ResultGenerator.genSuccessResult(); }