Browse Source

修改立即执行中调用机场平台的接口参数

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
262714c312
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/execute/ExecuteInspectionService.java

+ 2
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/execute/ExecuteInspectionService.java View File

JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("taskId", inspection.getInspectionLine()); jsonObject.put("taskId", inspection.getInspectionLine());
jsonObject.put("requestId", inspection.getId()); jsonObject.put("requestId", inspection.getId());
jsonObject.put("code", "gs"); // 与机场平台约定好的
jsonObject.put("tenantName", tenant.getName());


String airPortStr = HttpUtils.doSend(url, jsonObject, null, "POST"); String airPortStr = HttpUtils.doSend(url, jsonObject, null, "POST");
if (StringUtils.isEmpty(airPortStr)) { if (StringUtils.isEmpty(airPortStr)) {

Loading…
Cancel
Save