guoshilong
2024-01-29 733ca7545a278fe9ea6fa0be906cf28e3f036c60
skjcmanager/skjcmanager-service/skjcmanager-nky/src/main/java/cn/gistack/nky/service/impl/ZtApiServiceImpl.java
@@ -7,6 +7,7 @@
import cn.gistack.nky.resultpojo.ZtResultPo;
import cn.gistack.nky.service.IZtApiService;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tool.utils.ObjectUtil;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
@@ -27,6 +28,7 @@
 * @DATE: 2023/7/28 17:16
 */
@Service
@Slf4j
public class ZtApiServiceImpl implements IZtApiService {
   //本地测试
@@ -110,6 +112,7 @@
      HttpEntity<String> httpEntity = new HttpEntity(null, headers);
      RestTemplate template = new RestTemplate();
      log.info("请求的url为:{}", url);
      ResponseEntity<ZtResultPo> ztResultPojoResponseEntity = template.exchange(url, method,httpEntity, ZtResultPo.class,params);
      if (ztResultPojoResponseEntity.getStatusCodeValue() == 200) {
         List<DataResChildrenPo> children = new ArrayList<>();