|
@@ -63,7 +63,7 @@ public class PurchasePlanController {
|
|
|
|
|
|
|
|
@WebLog
|
|
@WebLog
|
|
|
@RequestMapping(value = "/getSelectPage")
|
|
@RequestMapping(value = "/getSelectPage")
|
|
|
- public Object getSelectPage(@RequestBody Map<String, Object> map)throws Exception {
|
|
|
|
|
|
|
+ public Object getSelectPage(@RequestBody Map<String, Object> map) throws Exception {
|
|
|
Connection connection = null;
|
|
Connection connection = null;
|
|
|
try {
|
|
try {
|
|
|
connection = dataSource.getConnection();
|
|
connection = dataSource.getConnection();
|
|
@@ -95,7 +95,7 @@ public class PurchasePlanController {
|
|
|
|
|
|
|
|
@WebLog
|
|
@WebLog
|
|
|
@RequestMapping(value = "/getTongji")
|
|
@RequestMapping(value = "/getTongji")
|
|
|
- public Object getTongji(@RequestBody Map<String, Object> map) throws Exception{
|
|
|
|
|
|
|
+ public Object getTongji(@RequestBody Map<String, Object> map) throws Exception {
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
Connection connection = null;
|
|
Connection connection = null;
|
|
|
try {
|
|
try {
|
|
@@ -105,12 +105,18 @@ public class PurchasePlanController {
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
paramMap.put("createTimeBegin", map.get("yearCreateTimeBegin"));
|
|
paramMap.put("createTimeBegin", map.get("yearCreateTimeBegin"));
|
|
|
paramMap.put("createTimeEnd", map.get("yearCreateTimeEnd"));
|
|
paramMap.put("createTimeEnd", map.get("yearCreateTimeEnd"));
|
|
|
|
|
+ if (map.containsKey("applySql")) {
|
|
|
|
|
+ paramMap.put("applySql", map.get("applySql"));
|
|
|
|
|
+ }
|
|
|
PurchasePlan purchasePlan = jdbcClient.getJdbcModelByMap(paramMap, sql, PurchasePlan.class, connection);
|
|
PurchasePlan purchasePlan = jdbcClient.getJdbcModelByMap(paramMap, sql, PurchasePlan.class, connection);
|
|
|
result.put("yearBudgetAmount", purchasePlan.getBudgetAmount());
|
|
result.put("yearBudgetAmount", purchasePlan.getBudgetAmount());
|
|
|
|
|
|
|
|
paramMap.clear();
|
|
paramMap.clear();
|
|
|
paramMap.put("createTimeBegin", map.get("monthCreateTimeBegin"));
|
|
paramMap.put("createTimeBegin", map.get("monthCreateTimeBegin"));
|
|
|
paramMap.put("createTimeEnd", map.get("monthCreateTimeEnd"));
|
|
paramMap.put("createTimeEnd", map.get("monthCreateTimeEnd"));
|
|
|
|
|
+ if (map.containsKey("applySql")) {
|
|
|
|
|
+ paramMap.put("applySql", map.get("applySql"));
|
|
|
|
|
+ }
|
|
|
purchasePlan = jdbcClient.getJdbcModelByMap(paramMap, sql, PurchasePlan.class, connection);
|
|
purchasePlan = jdbcClient.getJdbcModelByMap(paramMap, sql, PurchasePlan.class, connection);
|
|
|
result.put("monthBudgetAmount", purchasePlan.getBudgetAmount());
|
|
result.put("monthBudgetAmount", purchasePlan.getBudgetAmount());
|
|
|
|
|
|