|
|
@@ -177,6 +177,14 @@ public class PortalOaFlow {
|
|
|
return data;
|
|
|
}
|
|
|
|
|
|
+ public String testRestfulNoHeaderUser(String address,String api,String jsonParams, String userid){
|
|
|
+ String data = HttpRequest
|
|
|
+ .post(address + api + "&user="+userid).disableCookie()
|
|
|
+ .body(jsonParams)
|
|
|
+ .execute().body();
|
|
|
+ System.out.println("testRestful():"+data);
|
|
|
+ return data;
|
|
|
+ }
|
|
|
// public void register() throws Exception{
|
|
|
// HttpHeaders headers = new HttpHeaders();
|
|
|
// headers.add("appid", appid);
|
|
|
@@ -232,13 +240,13 @@ public class PortalOaFlow {
|
|
|
params.put("conditions", map);
|
|
|
System.out.println("-----------"+JSON.toJSONString(params));
|
|
|
|
|
|
- String todoList = testRestfulNoHeader("https://yfoa.keruioil.com", "/api/workflow/paService/getDoingWorkflowRequestListInside?pageNo="+pageNo+"&pageSize="+pageSize, JSON.toJSONString(params), oaId);
|
|
|
+ String todoList = testRestfulNoHeaderUser("https://yfoa.keruioil.com", "/api/workflow/paService/getDoingWorkflowRequestListInside?pageNo="+pageNo+"&pageSize="+pageSize, JSON.toJSONString(params), oaId);
|
|
|
List<JSONObject> jsonObjects = new ArrayList<>();
|
|
|
if (todoList != null && !todoList.contains("token不存在或者超时")) {
|
|
|
jsonObjects = JSON.parseArray(todoList, JSONObject.class);
|
|
|
}
|
|
|
//已办明细
|
|
|
- String doneList = testRestfulNoHeader("https://yfoa.keruioil.com", "/api/workflow/paService/getHandledWorkflowRequestListInside?pageNo="+pageNo+"&pageSize="+pageSize, JSON.toJSONString(params), oaId);
|
|
|
+ String doneList = testRestfulNoHeaderUser("https://yfoa.keruioil.com", "/api/workflow/paService/getHandledWorkflowRequestListInside?pageNo="+pageNo+"&pageSize="+pageSize, JSON.toJSONString(params), oaId);
|
|
|
List<JSONObject> doneJsonObjects = new ArrayList<>();
|
|
|
if (todoList != null && !todoList.contains("token不存在或者超时")) {
|
|
|
doneJsonObjects = JSON.parseArray(doneList, JSONObject.class);
|