|
|
@@ -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);
|
|
|
}
|