From c24b912b50b174338a1835c603cd3fd81a4e49ed Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 25 十二月 2020 09:59:24 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue --- ruoyi-generator/src/main/resources/vm/java/controller.java.vm | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/ruoyi-generator/src/main/resources/vm/java/controller.java.vm b/ruoyi-generator/src/main/resources/vm/java/controller.java.vm index 78f94a8..56e1bd7 100644 --- a/ruoyi-generator/src/main/resources/vm/java/controller.java.vm +++ b/ruoyi-generator/src/main/resources/vm/java/controller.java.vm @@ -85,9 +85,7 @@ @Log(title = "${functionName}" , businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody ${ClassName} ${className}) { - AjaxResult result = toAjax(i${ClassName}Service.save(${className}) ? 1 : 0); - result.put("data",${className}); - return result; + return toAjax(i${ClassName}Service.save(${className}) ? 1 : 0); } /** -- Gitblit v1.9.3