统计代办总数
parent
b3f4c0b185
commit
6bacdb06bc
|
@ -36,7 +36,6 @@ public class IndexServiceImpl implements IndexService {
|
|||
param.put("page", pager.getPage());
|
||||
param.put("limit", pager.getRows());
|
||||
String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class);
|
||||
log.info("result:" + result);
|
||||
JSONObject jsonObject = JSONArray.parseObject(result, JSONObject.class);
|
||||
return new GeneralResult(true, jsonObject, "查询成功");
|
||||
} catch (Exception e) {
|
||||
|
@ -55,7 +54,6 @@ public class IndexServiceImpl implements IndexService {
|
|||
param.put("page",1);
|
||||
param.put("limit", Integer.MAX_VALUE);
|
||||
String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class);
|
||||
log.info("result:" + result);
|
||||
JSONObject jsonObject = JSONArray.parseObject(result, JSONObject.class);
|
||||
Integer total = jsonObject.getInteger("total");
|
||||
|
||||
|
@ -76,7 +74,7 @@ public class IndexServiceImpl implements IndexService {
|
|||
resultMap.put("waitDoneTotal",waitDoneTotal);
|
||||
resultMap.put("doneTotal",doneTotal);
|
||||
|
||||
return new GeneralResult(true, "查询成功");
|
||||
return new GeneralResult(true, resultMap,"查询成功");
|
||||
} catch (Exception e) {
|
||||
log.info("查询失败", e);
|
||||
return new GeneralResult(false, "查询失败");
|
||||
|
|
Loading…
Reference in New Issue