From ec2d766f6bb695b44c6eb47b8269a9ebe4aacd4d Mon Sep 17 00:00:00 2001 From: lihengming <89921218@qq.com> Date: Fri, 30 Jun 2017 16:38:26 +0800 Subject: [PATCH] fix > issue #4 --- src/test/resources/generator/template/controller-restful.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }