|
@@ -27,6 +27,52 @@ public class BusinessController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private CustomInfoService CustomInfoService;
|
|
private CustomInfoService CustomInfoService;
|
|
|
|
+ @RequestMapping("businessList")
|
|
|
|
+ public Result businessList(@RequestBody String json) {
|
|
|
|
+ JSONObject req = JSON.parseObject(json);
|
|
|
|
+ int pageNum = req.getIntValue("pageNum");
|
|
|
|
+ int pageSize = req.getIntValue("pageSize");
|
|
|
|
+ int businessType = req.getIntValue("businessType");
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);//设置分页信息
|
|
|
|
+ List<BusinessInfo> list=null;
|
|
|
|
+ switch(businessType){
|
|
|
|
+ case 0:
|
|
|
|
+ list = BusinessService.queryToDoList();
|
|
|
|
+ for (BusinessInfo businessInfo : list) {
|
|
|
|
+ if (businessInfo.getStatus().equals("0")) {
|
|
|
|
+ businessInfo.setStatus("待解析");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ list = BusinessService.queryAnalysisList();
|
|
|
|
+ for (BusinessInfo businessInfo : list) {
|
|
|
|
+ if (businessInfo.getStatus().equals("1")) {
|
|
|
|
+ businessInfo.setStatus("解析完成");
|
|
|
|
+ } else if (businessInfo.getStatus().equals("2")) {
|
|
|
|
+ businessInfo.setStatus("白户");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ list = BusinessService.queryFailList();
|
|
|
|
+ for (BusinessInfo businessInfo : list) {
|
|
|
|
+ if (businessInfo.getStatus().equals("3")) {
|
|
|
|
+ businessInfo.setStatus("查询失败");
|
|
|
|
+ } else if (businessInfo.getStatus().equals("4")) {
|
|
|
|
+ businessInfo.setStatus("查询异常");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ PageInfo pageInfo = new PageInfo(list);
|
|
|
|
+ JSONObject resJson = new JSONObject();
|
|
|
|
+ resJson.put("business_list", pageInfo);
|
|
|
|
+ return Result.success("ok", resJson);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取待办业务列表
|
|
* 获取待办业务列表
|