|
|
|
@ -181,18 +181,22 @@ public class WorkOrderController extends BladeController { |
|
|
|
param.put("pollCode", code.getPollCode()); |
|
|
|
param.put("pollCode", code.getPollCode()); |
|
|
|
// 2.设置请求体的参数
|
|
|
|
// 2.设置请求体的参数
|
|
|
|
// HttpEntity<InsertTodealByPollCode> formEntity = new HttpEntity<>(code, headers);
|
|
|
|
// HttpEntity<InsertTodealByPollCode> formEntity = new HttpEntity<>(code, headers);
|
|
|
|
HttpEntity<String> formEntity = new HttpEntity<String>(param.toString(), headers); |
|
|
|
HttpEntity<JSONObject> formEntity = new HttpEntity<>(param, headers); |
|
|
|
|
|
|
|
|
|
|
|
System.out.println("============================================="); |
|
|
|
System.out.println("============================================="); |
|
|
|
System.out.println(code); |
|
|
|
System.out.println(code); |
|
|
|
String url = "http://15.72.158.155/jhoa200/OAReceiver/OuterSystemOAReceiver.asmx"; |
|
|
|
String url = "http://15.72.158.155/jhoa200/OAReceiver/OuterSystemOAReceiver.asmx"; |
|
|
|
ResponseEntity<String> responseEntity = null; |
|
|
|
ResponseEntity<JSONObject> responseEntity = null; |
|
|
|
|
|
|
|
JSONObject object = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
responseEntity = restTemplate.postForEntity(url, formEntity, String.class); |
|
|
|
object = restTemplate.postForObject(url, formEntity, JSONObject.class); |
|
|
|
|
|
|
|
System.out.println("结果:" + object); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
responseEntity = restTemplate.postForEntity(url, param, JSONObject.class); |
|
|
|
|
|
|
|
System.out.println("结果:" + responseEntity.getBody()); |
|
|
|
} catch (RestClientException e) { |
|
|
|
} catch (RestClientException e) { |
|
|
|
System.out.println(e.toString()); |
|
|
|
System.out.println(e.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
System.out.println("结果:" + responseEntity.getBody()); |
|
|
|
|
|
|
|
System.out.println("============================================="); |
|
|
|
System.out.println("============================================="); |
|
|
|
|
|
|
|
|
|
|
|
return R.data(workOrderService.myPage(workOrder, query)); |
|
|
|
return R.data(workOrderService.myPage(workOrder, query)); |
|
|
|
|