wanghongzhi 1 ano atrás
pai
commit
0580c8d778

+ 2 - 2
easydo-chengfa/src/main/java/easydo/technology/controller/MessageController.java

@@ -27,7 +27,7 @@ public class MessageController {
 
     @WebLog
     @RequestMapping(value = "/getPage")
-    public Object getPage(@RequestBody Map<String, Object> map) {
+    public Object getPage(@RequestBody Map<String, Object> map) throws Exception{
         Connection connection = null;
         try {
             connection = dataSource.getConnection();
@@ -35,7 +35,7 @@ public class MessageController {
 
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }