| | |
| | | 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; |
| | |
| | | * @DATE: 2023/7/28 17:16 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class ZtApiServiceImpl implements IZtApiService { |
| | | |
| | | //本地测试 |
| | |
| | | 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<>(); |