From e9d368ed0c87286a174b62756b72f6a896d15ce4 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期三, 30 十二月 2020 16:20:09 +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