傅行帆 5 years ago
parent
commit
646c555d70

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

@@ -72,6 +72,7 @@ public class ${table.controllerName} {
72 72
             IPage<${entity}> result = i${entity}Service.page(pg, queryWrapper);
73 73
             responseBean.addSuccess(result);
74 74
         }catch (Exception e){
75
+            e.printStackTrace();
75 76
             logger.error("${table.entityPath}List -=- {}",e.toString());
76 77
             responseBean.addError(e.getMessage());
77 78
         }
@@ -93,6 +94,7 @@ public class ${table.controllerName} {
93 94
                 responseBean.addError("fail");
94 95
             }
95 96
         }catch (Exception e){
97
+            e.printStackTrace();
96 98
             logger.error("${table.entityPath}Add -=- {}",e.toString());
97 99
             responseBean.addError(e.getMessage());
98 100
         }
@@ -114,6 +116,7 @@ public class ${table.controllerName} {
114 116
                 responseBean.addError("fail");
115 117
             }
116 118
         }catch (Exception e){
119
+            e.printStackTrace();
117 120
             logger.error("${table.entityPath}Delete -=- {}",e.toString());
118 121
             responseBean.addError(e.getMessage());
119 122
         }
@@ -137,6 +140,7 @@ public class ${table.controllerName} {
137 140
                 responseBean.addError("fail");
138 141
             }
139 142
         }catch (Exception e){
143
+            e.printStackTrace();
140 144
             logger.error("${table.entityPath}Update -=- {}",e.toString());
141 145
             responseBean.addError(e.getMessage());
142 146
         }
@@ -153,6 +157,7 @@ public class ${table.controllerName} {
153 157
         try {
154 158
             responseBean.addSuccess(i${entity}Service.getById(id));
155 159
         }catch (Exception e){
160
+            e.printStackTrace();
156 161
             logger.error("${table.entityPath}Delete -=- {}",e.toString());
157 162
             responseBean.addError(e.getMessage());
158 163
         }