傅行帆 5 年前
父节点
当前提交
465a115eef

+ 2
- 2
SmartCommunity/mybatisGeneratorCode/src/main/resources/templatesPlus/controller.java.ftl 查看文件

@@ -88,7 +88,7 @@ public class ${table.controllerName} {
88 88
         ResponseBean responseBean = new ResponseBean();
89 89
         try {
90 90
             if (i${entity}Service.save(${table.entityPath})){
91
-                responseBean.addSuccess("success");
91
+                responseBean.addSuccess(${table.entityPath});
92 92
             }else {
93 93
                 responseBean.addError("fail");
94 94
             }
@@ -132,7 +132,7 @@ public class ${table.controllerName} {
132 132
         ResponseBean responseBean = new ResponseBean();
133 133
         try {
134 134
             if (i${entity}Service.updateById(${table.entityPath})){
135
-                responseBean.addSuccess("success");
135
+                responseBean.addSuccess(${table.entityPath});
136 136
             }else {
137 137
                 responseBean.addError("fail");
138 138
             }