wanghongzhi пре 1 година
родитељ
комит
9cbf67b6be
16 измењених фајлова са 82 додато и 83 уклоњено
  1. 6 6
      easydo-chengfa/src/main/java/easydo/technology/controller/ApiController.java
  2. 1 1
      easydo-chengfa/src/main/java/easydo/technology/controller/FileController.java
  3. 2 2
      easydo-chengfa/src/main/java/easydo/technology/controller/FinanceController.java
  4. 6 6
      easydo-chengfa/src/main/java/easydo/technology/controller/JobController.java
  5. 1 2
      easydo-chengfa/src/main/java/easydo/technology/controller/OaController.java
  6. 6 6
      easydo-chengfa/src/main/java/easydo/technology/controller/ProjectInfoController.java
  7. 3 3
      easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseAnswerSignController.java
  8. 8 8
      easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseApplyController.java
  9. 3 3
      easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseBidNoticeController.java
  10. 3 3
      easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseBidSignController.java
  11. 1 1
      easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseContractController.java
  12. 6 6
      easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseController.java
  13. 12 12
      easydo-chengfa/src/main/java/easydo/technology/controller/PurchasePlanController.java
  14. 7 7
      easydo-chengfa/src/main/java/easydo/technology/controller/SupplierController.java
  15. 11 11
      easydo-chengfa/src/main/java/easydo/technology/controller/SupplierEvaluateController.java
  16. 6 6
      easydo-chengfa/src/main/java/easydo/technology/controller/SupplierTypeController.java

+ 6 - 6
easydo-chengfa/src/main/java/easydo/technology/controller/ApiController.java

@@ -83,7 +83,7 @@ public class ApiController {
             }
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -121,7 +121,7 @@ public class ApiController {
             }
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -259,7 +259,7 @@ public class ApiController {
             return result;
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -319,7 +319,7 @@ public class ApiController {
             result.put("result", "S");
             return result;
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -353,7 +353,7 @@ public class ApiController {
             result.put("result", "S");
             return result;
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -404,7 +404,7 @@ public class ApiController {
 
             return new ResponseEntity<>(message, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 1 - 1
easydo-chengfa/src/main/java/easydo/technology/controller/FileController.java

@@ -75,7 +75,7 @@ public class FileController {
             res.put("message", "success");
             return new ResponseEntity<>(res, HttpStatus.OK);
         } catch (Exception e) {
-            throw new ZeroException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
             outputStream.close();

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

@@ -32,14 +32,14 @@ public class FinanceController {
 
     @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();
             Map<String, Object> page = oracleClient.getJdbcPage(map, CftzBankInfo.class, connection);
             return page;
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             oracleClient.finallyExecute(connection);
         }

+ 6 - 6
easydo-chengfa/src/main/java/easydo/technology/controller/JobController.java

@@ -29,14 +29,14 @@ public class JobController {
 
     @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();
             Map<String, Object> page = jdbcClient.getJdbcPage(map, SysJob.class, connection);
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -52,7 +52,7 @@ public class JobController {
             List<SysJob> list = jdbcClient.getJdbcList(map, SysJob.class, connection);
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -72,7 +72,7 @@ public class JobController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -91,7 +91,7 @@ public class JobController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -118,7 +118,7 @@ public class JobController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

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

@@ -81,7 +81,7 @@ public class OaController {
                     }
                 }
             } catch (Exception e) {
-                e.printStackTrace();
+               log.warning("oa no auth");
             }
         }
         // 登录失败 直接跳转到登录页面
@@ -90,7 +90,6 @@ public class OaController {
         return modelAndView;
     }
 
-    @WebLog
     @RequestMapping("/getUserToken")
     public Object getUserToken(@RequestBody SysUser sysUser, HttpServletRequest request) throws Exception {
         sysUser = jdbcClient.getJdbcModel(sysUser);

+ 6 - 6
easydo-chengfa/src/main/java/easydo/technology/controller/ProjectInfoController.java

@@ -26,7 +26,7 @@ public class ProjectInfoController {
 
     @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();
@@ -34,7 +34,7 @@ public class ProjectInfoController {
             Map<String, Object> page = jdbcClient.getJdbcPage(map, ProjectInfo.class, connection);
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -50,7 +50,7 @@ public class ProjectInfoController {
             List<ProjectInfo> list = jdbcClient.getJdbcList(map, ProjectInfo.class, connection);
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -70,7 +70,7 @@ public class ProjectInfoController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -89,7 +89,7 @@ public class ProjectInfoController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -108,7 +108,7 @@ public class ProjectInfoController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 3 - 3
easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseAnswerSignController.java

@@ -57,7 +57,7 @@ public class PurchaseAnswerSignController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -106,7 +106,7 @@ public class PurchaseAnswerSignController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -126,7 +126,7 @@ public class PurchaseAnswerSignController {
             result.put("model", model);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 8 - 8
easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseApplyController.java

@@ -42,7 +42,7 @@ public class PurchaseApplyController {
 
     @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();
@@ -55,7 +55,7 @@ public class PurchaseApplyController {
 
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -74,7 +74,7 @@ public class PurchaseApplyController {
             // }
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -94,7 +94,7 @@ public class PurchaseApplyController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -137,7 +137,7 @@ public class PurchaseApplyController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -158,7 +158,7 @@ public class PurchaseApplyController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -220,7 +220,7 @@ public class PurchaseApplyController {
             result.put("bidNotice", bidNotice);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -246,7 +246,7 @@ public class PurchaseApplyController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 3 - 3
easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseBidNoticeController.java

@@ -56,7 +56,7 @@ public class PurchaseBidNoticeController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -105,7 +105,7 @@ public class PurchaseBidNoticeController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -125,7 +125,7 @@ public class PurchaseBidNoticeController {
             result.put("model", model);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 3 - 3
easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseBidSignController.java

@@ -56,7 +56,7 @@ public class PurchaseBidSignController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -105,7 +105,7 @@ public class PurchaseBidSignController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -125,7 +125,7 @@ public class PurchaseBidSignController {
             result.put("model", model);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 1 - 1
easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseContractController.java

@@ -45,7 +45,7 @@ public class PurchaseContractController {
             List<PurchaseContract> list = jdbcClient.getJdbcList(map, PurchaseContract.class, connection);
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 6 - 6
easydo-chengfa/src/main/java/easydo/technology/controller/PurchaseController.java

@@ -54,7 +54,7 @@ public class PurchaseController {
 
     @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;
         Map<String, Object> paramMap = new HashMap<>();
         try {
@@ -250,7 +250,7 @@ public class PurchaseController {
 
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -319,7 +319,7 @@ public class PurchaseController {
 
     @WebLog
     @RequestMapping(value = "/getBusinessId")
-    public Object getBusinessId(@RequestBody Map<String, Object> map) {
+    public Object getBusinessId(@RequestBody Map<String, Object> map)throws Exception {
         String type = map.get("type").toString();
         String instanceId = map.get("instanceId").toString();
         Connection connection = null;
@@ -344,7 +344,7 @@ public class PurchaseController {
 
             return new ResponseEntity<>(businessId, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -352,7 +352,7 @@ public class PurchaseController {
 
     @WebLog
     @RequestMapping(value = "/getTongji")
-    public Object getTongji(@RequestBody Map<String, Object> map){
+    public Object getTongji(@RequestBody Map<String, Object> map) throws Exception{
         Map<String, Object> result = new HashMap<>();
         Connection connection = null;
         try {
@@ -374,7 +374,7 @@ public class PurchaseController {
 
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 12 - 12
easydo-chengfa/src/main/java/easydo/technology/controller/PurchasePlanController.java

@@ -47,14 +47,14 @@ public class PurchasePlanController {
 
     @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();
             Map<String, Object> page = jdbcClient.getJdbcPage(map, PurchasePlan.class, connection);
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -62,7 +62,7 @@ public class PurchasePlanController {
 
     @WebLog
     @RequestMapping(value = "/getSelectPage")
-    public Object getSelectPage(@RequestBody Map<String, Object> map) {
+    public Object getSelectPage(@RequestBody Map<String, Object> map)throws Exception {
         Connection connection = null;
         try {
             connection = dataSource.getConnection();
@@ -86,7 +86,7 @@ public class PurchasePlanController {
 
             return new ResponseEntity<>(planPage, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -94,7 +94,7 @@ public class PurchasePlanController {
 
     @WebLog
     @RequestMapping(value = "/getTongji")
-    public Object getTongji(@RequestBody Map<String, Object> map) {
+    public Object getTongji(@RequestBody Map<String, Object> map) throws Exception{
         Map<String, Object> result = new HashMap<>();
         Connection connection = null;
         try {
@@ -115,7 +115,7 @@ public class PurchasePlanController {
 
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -131,7 +131,7 @@ public class PurchasePlanController {
             List<PurchasePlan> list = jdbcClient.getJdbcList(map, PurchasePlan.class, connection);
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -156,7 +156,7 @@ public class PurchasePlanController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -198,7 +198,7 @@ public class PurchasePlanController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -221,7 +221,7 @@ public class PurchasePlanController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -239,7 +239,7 @@ public class PurchasePlanController {
             result.put("plan", model);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -266,7 +266,7 @@ public class PurchasePlanController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 7 - 7
easydo-chengfa/src/main/java/easydo/technology/controller/SupplierController.java

@@ -36,7 +36,7 @@ public class SupplierController {
 
     @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();
@@ -59,7 +59,7 @@ public class SupplierController {
 
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -75,7 +75,7 @@ public class SupplierController {
             List<Supplier> list = jdbcClient.getJdbcList(map, Supplier.class, connection);
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -113,7 +113,7 @@ public class SupplierController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -151,7 +151,7 @@ public class SupplierController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -182,7 +182,7 @@ public class SupplierController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -207,7 +207,7 @@ public class SupplierController {
             result.put("bankList", bankList);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 11 - 11
easydo-chengfa/src/main/java/easydo/technology/controller/SupplierEvaluateController.java

@@ -40,7 +40,7 @@ public class SupplierEvaluateController {
 
     @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();
@@ -60,7 +60,7 @@ public class SupplierEvaluateController {
             }
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -76,7 +76,7 @@ public class SupplierEvaluateController {
             List<SupplierEvaluate> list = jdbcClient.getJdbcList(map, SupplierEvaluate.class, connection);
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -103,7 +103,7 @@ public class SupplierEvaluateController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -189,7 +189,7 @@ public class SupplierEvaluateController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -249,7 +249,7 @@ public class SupplierEvaluateController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -311,7 +311,7 @@ public class SupplierEvaluateController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -350,7 +350,7 @@ public class SupplierEvaluateController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -383,7 +383,7 @@ public class SupplierEvaluateController {
             result.put("contract", contract);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -416,7 +416,7 @@ public class SupplierEvaluateController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -447,7 +447,7 @@ public class SupplierEvaluateController {
             result.put("supplierGradeCountList", supplierGradeCountList);
             return new ResponseEntity<>(result, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }

+ 6 - 6
easydo-chengfa/src/main/java/easydo/technology/controller/SupplierTypeController.java

@@ -26,7 +26,7 @@ public class SupplierTypeController {
 
     @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();
@@ -45,7 +45,7 @@ public class SupplierTypeController {
             }
             return new ResponseEntity<>(page, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -71,7 +71,7 @@ public class SupplierTypeController {
             }
             return new ResponseEntity<>(list, HttpStatus.OK);
         } catch (Exception e) {
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -102,7 +102,7 @@ public class SupplierTypeController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -138,7 +138,7 @@ public class SupplierTypeController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }
@@ -163,7 +163,7 @@ public class SupplierTypeController {
             return new ResponseEntity<>(model, HttpStatus.OK);
         } catch (Exception e) {
             connection.rollback();
-            throw new BizException(e.getMessage());
+            throw e;
         } finally {
             jdbcClient.finallyExecute(connection);
         }