|
@@ -1,5 +1,6 @@ |
|
|
package com.ningdatech.pmapi.irs.manage; |
|
|
package com.ningdatech.pmapi.irs.manage; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.ningdatech.irs.service.IRefreshTokenService; |
|
|
import com.ningdatech.irs.service.IRefreshTokenService; |
|
|
import com.ningdatech.pmapi.common.util.CryptUtils; |
|
|
import com.ningdatech.pmapi.common.util.CryptUtils; |
|
@@ -72,11 +73,16 @@ public class ProjectIrsManage { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
String url = coreBizUrl + "?" + |
|
|
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; |
|
|
"&appKey=" + appKey + "&sign=" + sign + "&requestTime=" + timestamp; |
|
|
|
|
|
|
|
|
ResponseEntity<JSONObject> forEntity = restTemplate.getForEntity(url, JSONObject.class); |
|
|
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(); |
|
|
return forEntity.getBody(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |