|
@@ -161,13 +161,16 @@ public class PortalOaFlow {
|
|
|
"https://yfoa.keruioil.com/api/workflow/paService/getDoingWorkflowRequestList?pageNo="+pageNo+"&pageSize="+pageSize,
|
|
"https://yfoa.keruioil.com/api/workflow/paService/getDoingWorkflowRequestList?pageNo="+pageNo+"&pageSize="+pageSize,
|
|
|
requestEntityOut1, String.class
|
|
requestEntityOut1, String.class
|
|
|
);
|
|
);
|
|
|
-
|
|
|
|
|
- List<JSONObject> jsonObjects = JSON.parseArray(todoList, JSONObject.class);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ List<JSONObject> jsonObjects = new ArrayList<>();
|
|
|
|
|
+ if (todoList != null && !todoList.contains("token不存在或者超时")) {
|
|
|
|
|
+ jsonObjects = JSON.parseArray(todoList, JSONObject.class);
|
|
|
|
|
+ }
|
|
|
//已办明细
|
|
//已办明细
|
|
|
String doneList = noCookieRestTemplate.postForObject("https://yfoa.keruioil.com/api/workflow/paService/getHandledWorkflowRequestList?pageNo="+pageNo+"&pageSize="+pageSize, requestEntityOut1, String.class);
|
|
String doneList = noCookieRestTemplate.postForObject("https://yfoa.keruioil.com/api/workflow/paService/getHandledWorkflowRequestList?pageNo="+pageNo+"&pageSize="+pageSize, requestEntityOut1, String.class);
|
|
|
-
|
|
|
|
|
- List<JSONObject> doneJsonObjects = JSON.parseArray(doneList, JSONObject.class);
|
|
|
|
|
|
|
+ List<JSONObject> doneJsonObjects = new ArrayList<>();
|
|
|
|
|
+ if (todoList != null && !todoList.contains("token不存在或者超时")) {
|
|
|
|
|
+ doneJsonObjects = JSON.parseArray(doneList, JSONObject.class);
|
|
|
|
|
+ }
|
|
|
return ImmutableMap.of("todoCount", out, "todoList", jsonObjects,"doneCount", done,"doneList", doneJsonObjects);
|
|
return ImmutableMap.of("todoCount", out, "todoList", jsonObjects,"doneCount", done,"doneList", doneJsonObjects);
|
|
|
}
|
|
}
|
|
|
|
|
|