Pārlūkot izejas kodu

核心业务 发线上

tags/24080901
PoffyZhang pirms 1 gada
vecāks
revīzija
832947cace
1 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. +8
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java

+ 8
- 2
pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java Parādīt failu

@@ -1,5 +1,6 @@
package com.ningdatech.pmapi.irs.manage;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ningdatech.irs.service.IRefreshTokenService;
import com.ningdatech.pmapi.common.util.CryptUtils;
@@ -72,11 +73,16 @@ public class ProjectIrsManage {
}

String url = coreBizUrl + "?" +
"dingCode=" + orgCode + "&matterName=" + businessName + "&oid=&useState=1&limit=10&page=1" +
"dingCode=&matterName=" + businessName + "&oid=&useState=1&limit=10&page=1" +
"&appKey=" + appKey + "&sign=" + sign + "&requestTime=" + timestamp;

ResponseEntity<JSONObject> forEntity = restTemplate.getForEntity(url, JSONObject.class);
log.info("body :{}",forEntity.getBody());
JSONObject body = forEntity.getBody();
log.info("body :{}",body);
JSONObject datas = body.getJSONObject("datas");
if(Objects.nonNull(datas)){
return datas;
}
return forEntity.getBody();
}
}

Notiek ielāde…
Atcelt
Saglabāt