|
@@ -99,7 +99,7 @@ public class PortalOaFlow {
|
|
|
));
|
|
));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public ImmutableMap<String, Object> getOaTodo(String oaId) throws Exception {
|
|
|
|
|
|
|
+ public ImmutableMap<String, Object> getOaTodo(String oaId, Integer pageNo ,Integer pageSize) throws Exception {
|
|
|
String token = getToken();
|
|
String token = getToken();
|
|
|
|
|
|
|
|
HttpHeaders headersOut = new HttpHeaders();
|
|
HttpHeaders headersOut = new HttpHeaders();
|
|
@@ -114,8 +114,6 @@ public class PortalOaFlow {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("root", ImmutableMap.of("createrid", oaId));
|
|
map.put("root", ImmutableMap.of("createrid", oaId));
|
|
|
params.put("conditions", map);
|
|
params.put("conditions", map);
|
|
|
- params.put("pageSize", 20);
|
|
|
|
|
- params.put("pageNo", 1);
|
|
|
|
|
|
|
|
|
|
HttpEntity<Map<String, Object>> requestEntityOut = new HttpEntity<>(params, headersOut);
|
|
HttpEntity<Map<String, Object>> requestEntityOut = new HttpEntity<>(params, headersOut);
|
|
|
|
|
|
|
@@ -128,18 +126,33 @@ public class PortalOaFlow {
|
|
|
requestEntityOut, String.class
|
|
requestEntityOut, String.class
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- // 待办明细
|
|
|
|
|
|
|
+ //已办数量
|
|
|
|
|
+ String done = noCookieRestTemplate.postForObject("https://yfoa.keruioil.com/api/workflow/paService/getHandledWorkflowRequestCount", requestEntityOut, String.class);
|
|
|
|
|
+
|
|
|
map.put("root", ImmutableMap.of("craterid", oaId));
|
|
map.put("root", ImmutableMap.of("craterid", oaId));
|
|
|
params.put("conditions", map);
|
|
params.put("conditions", map);
|
|
|
|
|
+ params.put("pageSize", pageSize);
|
|
|
|
|
+ params.put("pageNo", pageNo);
|
|
|
|
|
+ System.out.println("-----------"+JSON.toJSONString(params));
|
|
|
HttpEntity<Map<String, Object>> requestEntityOut1 = new HttpEntity<>(params, headersOut);
|
|
HttpEntity<Map<String, Object>> requestEntityOut1 = new HttpEntity<>(params, headersOut);
|
|
|
-
|
|
|
|
|
|
|
+ // 待办明细
|
|
|
String todoList = noCookieRestTemplate.postForObject(
|
|
String todoList = noCookieRestTemplate.postForObject(
|
|
|
"https://yfoa.keruioil.com/api/workflow/paService/getDoingWorkflowRequestList",
|
|
"https://yfoa.keruioil.com/api/workflow/paService/getDoingWorkflowRequestList",
|
|
|
requestEntityOut1, String.class
|
|
requestEntityOut1, String.class
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
List<JSONObject> jsonObjects = JSON.parseArray(todoList, JSONObject.class);
|
|
List<JSONObject> jsonObjects = JSON.parseArray(todoList, JSONObject.class);
|
|
|
- return ImmutableMap.of("todoCount", out, "todoList", jsonObjects);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 待办明细
|
|
|
|
|
+// map.put("root", ImmutableMap.of("craterid", oaId));
|
|
|
|
|
+// params.put("conditions", map);
|
|
|
|
|
+// HttpEntity<Map<String, Object>> requestEntityOut1 = new HttpEntity<>(params, headersOut);
|
|
|
|
|
+ //已办明细
|
|
|
|
|
+ String doneList = noCookieRestTemplate.postForObject("https://yfoa.keruioil.com/api/workflow/paService/getHandledWorkflowRequestList", requestEntityOut1, String.class);
|
|
|
|
|
+
|
|
|
|
|
+ List<JSONObject> doneJsonObjects = JSON.parseArray(doneList, JSONObject.class);
|
|
|
|
|
+ return ImmutableMap.of("todoCount", out, "todoList", jsonObjects,"doneCount", done,"doneList", doneJsonObjects);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|