Explorar el Código

核心业务 发线上

tags/24080901
PoffyZhang hace 1 año
padre
commit
832947cace
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  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 Ver fichero

@@ -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();
}
}

Cargando…
Cancelar
Guardar