傅行帆 5 years ago
parent
commit
465a115eef

+ 2
- 2
SmartCommunity/mybatisGeneratorCode/src/main/resources/templatesPlus/controller.java.ftl View File

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