|
@@ -37,7 +37,7 @@ public class BusinessController {
|
|
List<BusinessInfo> list=null;
|
|
List<BusinessInfo> list=null;
|
|
switch(businessType){
|
|
switch(businessType){
|
|
case 0:
|
|
case 0:
|
|
- list = BusinessService.queryToDoList();
|
|
|
|
|
|
+ list = BusinessService.queryBusinessList("'0'",null);
|
|
for (BusinessInfo businessInfo : list) {
|
|
for (BusinessInfo businessInfo : list) {
|
|
if (businessInfo.getStatus().equals("0")) {
|
|
if (businessInfo.getStatus().equals("0")) {
|
|
businessInfo.setStatus("待解析");
|
|
businessInfo.setStatus("待解析");
|
|
@@ -45,7 +45,7 @@ public class BusinessController {
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 1:
|
|
case 1:
|
|
- list = BusinessService.queryAnalysisList();
|
|
|
|
|
|
+ list = BusinessService.queryBusinessList("'1','2'",null);
|
|
for (BusinessInfo businessInfo : list) {
|
|
for (BusinessInfo businessInfo : list) {
|
|
if (businessInfo.getStatus().equals("1")) {
|
|
if (businessInfo.getStatus().equals("1")) {
|
|
businessInfo.setStatus("解析完成");
|
|
businessInfo.setStatus("解析完成");
|
|
@@ -55,7 +55,7 @@ public class BusinessController {
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
- list = BusinessService.queryFailList();
|
|
|
|
|
|
+ list = BusinessService.queryBusinessList("'3','4'",null);
|
|
for (BusinessInfo businessInfo : list) {
|
|
for (BusinessInfo businessInfo : list) {
|
|
if (businessInfo.getStatus().equals("3")) {
|
|
if (businessInfo.getStatus().equals("3")) {
|
|
businessInfo.setStatus("查询失败");
|
|
businessInfo.setStatus("查询失败");
|
|
@@ -73,32 +73,32 @@ 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("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")
|
|
@RequestMapping("selectBusiness")
|
|
public Result selectBusiness(@RequestBody String json) {
|
|
public Result selectBusiness(@RequestBody String json) {
|
|
JSONObject req = JSON.parseObject(json);
|
|
JSONObject req = JSON.parseObject(json);
|
|
@@ -110,7 +110,7 @@ public class BusinessController {
|
|
List<BusinessInfo> list=null;
|
|
List<BusinessInfo> list=null;
|
|
switch(businessType){
|
|
switch(businessType){
|
|
case 0:
|
|
case 0:
|
|
- list = BusinessService.selectBusinessToDo(customerName);
|
|
|
|
|
|
+ list = BusinessService.queryBusinessList("'0'",customerName);
|
|
for (BusinessInfo businessInfo : list) {
|
|
for (BusinessInfo businessInfo : list) {
|
|
if (businessInfo.getStatus().equals("0")) {
|
|
if (businessInfo.getStatus().equals("0")) {
|
|
businessInfo.setStatus("待解析");
|
|
businessInfo.setStatus("待解析");
|
|
@@ -118,7 +118,7 @@ public class BusinessController {
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 1:
|
|
case 1:
|
|
- list = BusinessService.selectBusinessAnalysis(customerName);
|
|
|
|
|
|
+ list = BusinessService.queryBusinessList("'1','2'",customerName);
|
|
for (BusinessInfo businessInfo : list) {
|
|
for (BusinessInfo businessInfo : list) {
|
|
if (businessInfo.getStatus().equals("1")) {
|
|
if (businessInfo.getStatus().equals("1")) {
|
|
businessInfo.setStatus("解析完成");
|
|
businessInfo.setStatus("解析完成");
|
|
@@ -128,7 +128,7 @@ public class BusinessController {
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
- list = BusinessService.selectBusinessFail(customerName);
|
|
|
|
|
|
+ list = BusinessService.queryBusinessList("'3','4'",customerName);
|
|
for (BusinessInfo businessInfo : list) {
|
|
for (BusinessInfo businessInfo : list) {
|
|
if (businessInfo.getStatus().equals("3")) {
|
|
if (businessInfo.getStatus().equals("3")) {
|
|
businessInfo.setStatus("查询失败");
|
|
businessInfo.setStatus("查询失败");
|
|
@@ -141,134 +141,134 @@ public class BusinessController {
|
|
}
|
|
}
|
|
PageInfo pageInfo = new PageInfo(list);
|
|
PageInfo pageInfo = new PageInfo(list);
|
|
JSONObject resJson = new JSONObject();
|
|
JSONObject resJson = new JSONObject();
|
|
- resJson.put("select_business_todo", 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) {
|
|
|
|
- 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);
|
|
|
|
|
|
+ resJson.put("select_business_list", pageInfo);
|
|
return Result.success("ok", resJson);
|
|
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}")
|
|
@GetMapping("findBusinessInfoByNum/{businessNum}")
|
|
public Result findBusinessInfoByNum(@PathVariable("businessNum") String businessNum) {
|
|
public Result findBusinessInfoByNum(@PathVariable("businessNum") String businessNum) {
|