|
@@ -37,7 +37,7 @@ public class BusinessController {
|
|
|
List<BusinessInfo> list=null;
|
|
|
switch(businessType){
|
|
|
case 0:
|
|
|
- list = BusinessService.queryToDoList();
|
|
|
+ list = BusinessService.queryBusinessList("'0'",null);
|
|
|
for (BusinessInfo businessInfo : list) {
|
|
|
if (businessInfo.getStatus().equals("0")) {
|
|
|
businessInfo.setStatus("待解析");
|
|
@@ -45,7 +45,7 @@ public class BusinessController {
|
|
|
}
|
|
|
break;
|
|
|
case 1:
|
|
|
- list = BusinessService.queryAnalysisList();
|
|
|
+ list = BusinessService.queryBusinessList("'1','2'",null);
|
|
|
for (BusinessInfo businessInfo : list) {
|
|
|
if (businessInfo.getStatus().equals("1")) {
|
|
|
businessInfo.setStatus("解析完成");
|
|
@@ -55,7 +55,7 @@ public class BusinessController {
|
|
|
}
|
|
|
break;
|
|
|
case 2:
|
|
|
- list = BusinessService.queryFailList();
|
|
|
+ list = BusinessService.queryBusinessList("'3','4'",null);
|
|
|
for (BusinessInfo businessInfo : list) {
|
|
|
if (businessInfo.getStatus().equals("3")) {
|
|
|
businessInfo.setStatus("查询失败");
|
|
@@ -73,157 +73,202 @@ public class BusinessController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取待办业务列表
|
|
|
- *
|
|
|
- * @param json
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping("businessToDoList")
|
|
|
- public Result businessToDoList(@RequestBody String json) {
|
|
|
- JSONObject req = JSON.parseObject(json);
|
|
|
- int pageNum = req.getIntValue("pageNum");
|
|
|
- int pageSize = req.getIntValue("pageSize");
|
|
|
- PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
-
|
|
|
- List<BusinessInfo> list = BusinessService.queryToDoList();
|
|
|
- PageInfo pageInfo = new PageInfo(list);
|
|
|
- for (BusinessInfo businessInfo : list) {
|
|
|
- if (businessInfo.getStatus().equals("0")) {
|
|
|
- businessInfo.setStatus("待解析");
|
|
|
- }
|
|
|
- }
|
|
|
- JSONObject resJson = new JSONObject();
|
|
|
- resJson.put("business_todo_list", pageInfo);
|
|
|
- return Result.success("ok", resJson);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 待解析的业务
|
|
|
- *
|
|
|
- * @param json
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping("selectBusinessToDo")
|
|
|
- public Result selectBusinessToDo(@RequestBody String json) {
|
|
|
- JSONObject req = JSON.parseObject(json);
|
|
|
- int pageNum = req.getIntValue("pageNum");
|
|
|
- int pageSize = req.getIntValue("pageSize");
|
|
|
- String customerName = req.getString("customerName");
|
|
|
- PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
-
|
|
|
- List<BusinessInfo> list = BusinessService.selectBusinessToDo(customerName);
|
|
|
- PageInfo pageInfo = new PageInfo(list);
|
|
|
-
|
|
|
- for (BusinessInfo businessInfo : list) {
|
|
|
- if (businessInfo.getStatus().equals("0")) {
|
|
|
- businessInfo.setStatus("待解析");
|
|
|
- }
|
|
|
- }
|
|
|
- JSONObject resJson = new JSONObject();
|
|
|
- resJson.put("select_business_todo", pageInfo);
|
|
|
- return Result.success("ok", resJson);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 解析成功的业务列表
|
|
|
- *
|
|
|
- * @param json
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping("businessAnalysisList")
|
|
|
- public Result businessAnalysisList(@RequestBody String json) {
|
|
|
- JSONObject req = JSON.parseObject(json);
|
|
|
- int pageNum = req.getIntValue("pageNum");
|
|
|
- int pageSize = req.getIntValue("pageSize");
|
|
|
- PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
-
|
|
|
- List<BusinessInfo> list = BusinessService.queryAnalysisList();
|
|
|
- PageInfo pageInfo = new PageInfo(list);
|
|
|
- for (BusinessInfo businessInfo : list) {
|
|
|
- if (businessInfo.getStatus().equals("1")) {
|
|
|
- businessInfo.setStatus("解析完成");
|
|
|
- } else if (businessInfo.getStatus().equals("2")) {
|
|
|
- businessInfo.setStatus("白户");
|
|
|
- }
|
|
|
- }
|
|
|
- JSONObject resJson = new JSONObject();
|
|
|
- resJson.put("business_analysis_list", pageInfo);
|
|
|
- return Result.success("ok", resJson);
|
|
|
- }
|
|
|
-
|
|
|
- //查询解析业务
|
|
|
- @RequestMapping("selectBusinessAnalysis")
|
|
|
- public Result selectBusinessAnalysis(@RequestBody String json) {
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 获取待办业务列表
|
|
|
+// *
|
|
|
+// * @param json
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @RequestMapping("businessToDoList")
|
|
|
+// public Result businessToDoList(@RequestBody String json) {
|
|
|
+// JSONObject req = JSON.parseObject(json);
|
|
|
+// int pageNum = req.getIntValue("pageNum");
|
|
|
+// int pageSize = req.getIntValue("pageSize");
|
|
|
+//
|
|
|
+// PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+//
|
|
|
+// List<BusinessInfo> list = BusinessService.queryToDoList();
|
|
|
+// PageInfo pageInfo = new PageInfo(list);
|
|
|
+// for (BusinessInfo businessInfo : list) {
|
|
|
+// if (businessInfo.getStatus().equals("0")) {
|
|
|
+// businessInfo.setStatus("待解析");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// JSONObject resJson = new JSONObject();
|
|
|
+// resJson.put("business_todo_list", pageInfo);
|
|
|
+// return Result.success("ok", resJson);
|
|
|
+// }
|
|
|
+ @RequestMapping("selectBusiness")
|
|
|
+ public Result selectBusiness(@RequestBody String json) {
|
|
|
JSONObject req = JSON.parseObject(json);
|
|
|
int pageNum = req.getIntValue("pageNum");
|
|
|
int pageSize = req.getIntValue("pageSize");
|
|
|
String customerName = req.getString("customerName");
|
|
|
+ int businessType = req.getIntValue("businessType");
|
|
|
PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+ List<BusinessInfo> list=null;
|
|
|
+ switch(businessType){
|
|
|
+ case 0:
|
|
|
+ list = BusinessService.queryBusinessList("'0'",customerName);
|
|
|
+ for (BusinessInfo businessInfo : list) {
|
|
|
+ if (businessInfo.getStatus().equals("0")) {
|
|
|
+ businessInfo.setStatus("待解析");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ list = BusinessService.queryBusinessList("'1','2'",customerName);
|
|
|
+ for (BusinessInfo businessInfo : list) {
|
|
|
+ if (businessInfo.getStatus().equals("1")) {
|
|
|
+ businessInfo.setStatus("解析完成");
|
|
|
+ } else if (businessInfo.getStatus().equals("2")) {
|
|
|
+ businessInfo.setStatus("白户");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ list = BusinessService.queryBusinessList("'3','4'",customerName);
|
|
|
+ for (BusinessInfo businessInfo : list) {
|
|
|
+ if (businessInfo.getStatus().equals("3")) {
|
|
|
+ businessInfo.setStatus("查询失败");
|
|
|
+ } else if (businessInfo.getStatus().equals("4")) {
|
|
|
+ businessInfo.setStatus("查询异常");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break;
|
|
|
|
|
|
- List<BusinessInfo> list = BusinessService.selectBusinessAnalysis(customerName);
|
|
|
- PageInfo pageInfo = new PageInfo(list);
|
|
|
-
|
|
|
- for (BusinessInfo businessInfo : list) {
|
|
|
- if (businessInfo.getStatus().equals("3")) {
|
|
|
- businessInfo.setStatus("查询失败");
|
|
|
- } else if (businessInfo.getStatus().equals("4")) {
|
|
|
- businessInfo.setStatus("查询异常");
|
|
|
- }
|
|
|
- }
|
|
|
- JSONObject resJson = new JSONObject();
|
|
|
- resJson.put("select_business_analysis", pageInfo);
|
|
|
-
|
|
|
- return Result.success("ok", resJson);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 失败的业务
|
|
|
- *
|
|
|
- * @param json
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping("businessFailList")
|
|
|
- public Result businessFailList(@RequestBody String json) {
|
|
|
- JSONObject req = JSON.parseObject(json);
|
|
|
- int pageNum = req.getIntValue("pageNum");
|
|
|
- int pageSize = req.getIntValue("pageSize");
|
|
|
- PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
-
|
|
|
- List<BusinessInfo> list = BusinessService.queryFailList();
|
|
|
- for (BusinessInfo businessInfo : list) {
|
|
|
- if (businessInfo.getStatus().equals("3")) {
|
|
|
- businessInfo.setStatus("查询失败");
|
|
|
- } else if (businessInfo.getStatus().equals("4")) {
|
|
|
- businessInfo.setStatus("查询异常");
|
|
|
- }
|
|
|
}
|
|
|
PageInfo pageInfo = new PageInfo(list);
|
|
|
JSONObject resJson = new JSONObject();
|
|
|
- resJson.put("business_fail_list", pageInfo);
|
|
|
- return Result.success("ok", resJson);
|
|
|
- }
|
|
|
-
|
|
|
- //查询失败业务
|
|
|
- @RequestMapping("selectBusinessFail")
|
|
|
- public Result selectBusinessFail(@RequestBody String json) {
|
|
|
- JSONObject req = JSON.parseObject(json);
|
|
|
- int pageNum = req.getIntValue("pageNum");
|
|
|
- int pageSize = req.getIntValue("pageSize");
|
|
|
- String customerName = req.getString("customerName");
|
|
|
- PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
-
|
|
|
- List<BusinessInfo> list = BusinessService.selectBusinessFail(customerName);
|
|
|
- PageInfo pageInfo = new PageInfo(list);
|
|
|
-
|
|
|
- for (int i = 0; i < list.size(); i++) {
|
|
|
- list.get(i).setStatus("待解决");
|
|
|
- }
|
|
|
- JSONObject resJson = new JSONObject();
|
|
|
- resJson.put("select_business_fail", pageInfo);
|
|
|
+ resJson.put("select_business_list", pageInfo);
|
|
|
return Result.success("ok", resJson);
|
|
|
}
|
|
|
+// /**
|
|
|
+// * 待解析的业务
|
|
|
+// *
|
|
|
+// * @param json
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @RequestMapping("selectBusinessToDo")
|
|
|
+// public Result selectBusinessToDo(@RequestBody String json) {
|
|
|
+// JSONObject req = JSON.parseObject(json);
|
|
|
+// int pageNum = req.getIntValue("pageNum");
|
|
|
+// int pageSize = req.getIntValue("pageSize");
|
|
|
+// String customerName = req.getString("customerName");
|
|
|
+// PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+//
|
|
|
+// List<BusinessInfo> list = BusinessService.selectBusinessToDo(customerName);
|
|
|
+// PageInfo pageInfo = new PageInfo(list);
|
|
|
+//
|
|
|
+// for (BusinessInfo businessInfo : list) {
|
|
|
+// if (businessInfo.getStatus().equals("0")) {
|
|
|
+// businessInfo.setStatus("待解析");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// JSONObject resJson = new JSONObject();
|
|
|
+// resJson.put("select_business_todo", pageInfo);
|
|
|
+// return Result.success("ok", resJson);
|
|
|
+// }
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 解析成功的业务列表
|
|
|
+// *
|
|
|
+// * @param json
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @RequestMapping("businessAnalysisList")
|
|
|
+// public Result businessAnalysisList(@RequestBody String json) {
|
|
|
+// JSONObject req = JSON.parseObject(json);
|
|
|
+// int pageNum = req.getIntValue("pageNum");
|
|
|
+// int pageSize = req.getIntValue("pageSize");
|
|
|
+// PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+//
|
|
|
+// List<BusinessInfo> list = BusinessService.queryAnalysisList("'1','2'");
|
|
|
+// PageInfo pageInfo = new PageInfo(list);
|
|
|
+// for (BusinessInfo businessInfo : list) {
|
|
|
+// if (businessInfo.getStatus().equals("1")) {
|
|
|
+// businessInfo.setStatus("解析完成");
|
|
|
+// } else if (businessInfo.getStatus().equals("2")) {
|
|
|
+// businessInfo.setStatus("白户");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// JSONObject resJson = new JSONObject();
|
|
|
+// resJson.put("business_analysis_list", pageInfo);
|
|
|
+// return Result.success("ok", resJson);
|
|
|
+// }
|
|
|
+//
|
|
|
+// //查询解析业务
|
|
|
+// @RequestMapping("selectBusinessAnalysis")
|
|
|
+// public Result selectBusinessAnalysis(@RequestBody String json) {
|
|
|
+// JSONObject req = JSON.parseObject(json);
|
|
|
+// int pageNum = req.getIntValue("pageNum");
|
|
|
+// int pageSize = req.getIntValue("pageSize");
|
|
|
+// String customerName = req.getString("customerName");
|
|
|
+// PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+//
|
|
|
+// List<BusinessInfo> list = BusinessService.selectBusinessAnalysis(customerName);
|
|
|
+// PageInfo pageInfo = new PageInfo(list);
|
|
|
+//
|
|
|
+// for (BusinessInfo businessInfo : list) {
|
|
|
+// if (businessInfo.getStatus().equals("3")) {
|
|
|
+// businessInfo.setStatus("查询失败");
|
|
|
+// } else if (businessInfo.getStatus().equals("4")) {
|
|
|
+// businessInfo.setStatus("查询异常");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// JSONObject resJson = new JSONObject();
|
|
|
+// resJson.put("select_business_analysis", pageInfo);
|
|
|
+//
|
|
|
+// return Result.success("ok", resJson);
|
|
|
+// }
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 失败的业务
|
|
|
+// *
|
|
|
+// * @param json
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @RequestMapping("businessFailList")
|
|
|
+// public Result businessFailList(@RequestBody String json) {
|
|
|
+// JSONObject req = JSON.parseObject(json);
|
|
|
+// int pageNum = req.getIntValue("pageNum");
|
|
|
+// int pageSize = req.getIntValue("pageSize");
|
|
|
+// PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+//
|
|
|
+// List<BusinessInfo> list = BusinessService.queryFailList();
|
|
|
+// for (BusinessInfo businessInfo : list) {
|
|
|
+// if (businessInfo.getStatus().equals("3")) {
|
|
|
+// businessInfo.setStatus("查询失败");
|
|
|
+// } else if (businessInfo.getStatus().equals("4")) {
|
|
|
+// businessInfo.setStatus("查询异常");
|
|
|
+// }
|
|
|
+// }
|
|
|
+// PageInfo pageInfo = new PageInfo(list);
|
|
|
+// JSONObject resJson = new JSONObject();
|
|
|
+// resJson.put("business_fail_list", pageInfo);
|
|
|
+// return Result.success("ok", resJson);
|
|
|
+// }
|
|
|
+//
|
|
|
+// //查询失败业务
|
|
|
+// @RequestMapping("selectBusinessFail")
|
|
|
+// public Result selectBusinessFail(@RequestBody String json) {
|
|
|
+// JSONObject req = JSON.parseObject(json);
|
|
|
+// int pageNum = req.getIntValue("pageNum");
|
|
|
+// int pageSize = req.getIntValue("pageSize");
|
|
|
+// String customerName = req.getString("customerName");
|
|
|
+// PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
+//
|
|
|
+// List<BusinessInfo> list = BusinessService.selectBusinessFail(customerName);
|
|
|
+// PageInfo pageInfo = new PageInfo(list);
|
|
|
+//
|
|
|
+// for (int i = 0; i < list.size(); i++) {
|
|
|
+// list.get(i).setStatus("待解决");
|
|
|
+// }
|
|
|
+// JSONObject resJson = new JSONObject();
|
|
|
+// resJson.put("select_business_fail", pageInfo);
|
|
|
+// return Result.success("ok", resJson);
|
|
|
+// }
|
|
|
|
|
|
@GetMapping("findBusinessInfoByNum/{businessNum}")
|
|
|
public Result findBusinessInfoByNum(@PathVariable("businessNum") String businessNum) {
|