| | |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | public static WhjlRespDto postPushData(String url, WhjlReqDto reqData , ApiConfs apiConfs) throws Exception { |
| | | log.info("---------接口请求地址:" +url+ "----------参数:" + reqData +"---------"); |
| | | log.info("---------接口请求地址:" +url+ "----------参数:" + reqData.toString() +"---------"); |
| | | BufferedReader in = null; |
| | | URL urls = new URL(url); |
| | | HttpURLConnection connection = null; |
| | |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | apiLog.setInteId(inteId); |
| | | String jsonData = getJsonData(inteId, data); |
| | | log.info("数据报文信息=" + jsonData); |
| | | log.info("接口数据信息=" + jsonData); |
| | | inteId = getInteId(inteId); |
| | | if (StringUtils.isEmpty(inteId)) { |
| | | ResponseDto responseDto = new ResponseDto(99, "没有获取到接口"); |
| | |
| | | List<WhjlApi1101> list = new ArrayList<>(); |
| | | WhjlApi1101 whjlApi1101; |
| | | for (ApiInfoData infoData : items) { |
| | | whjlApi1101 = JSONObject.parseObject(infoData.getData().toString(), WhjlApi1101.class); |
| | | whjlApi1101 = JSONObject.parseObject(infoData.getData(), WhjlApi1101.class); |
| | | whjlApi1101.setKqdm(infoData.getKqdm()); |
| | | whjlApi1101.setCzbz(infoData.getCzbz()); |
| | | whjlApi1101.setUpdateTime(infoData.getUpdateTime()); |
| | |
| | | List<WhjlApi1101> list = new ArrayList<>(); |
| | | WhjlApi1101 whjlApi1101; |
| | | for (ApiInfoData infoData : result) { |
| | | whjlApi1101 = JSONObject.parseObject(infoData.getData().toString(), WhjlApi1101.class); |
| | | whjlApi1101 = JSONObject.parseObject(infoData.getData(), WhjlApi1101.class); |
| | | whjlApi1101.setKqdm(infoData.getKqdm()); |
| | | whjlApi1101.setCzbz(infoData.getCzbz()); |
| | | whjlApi1101.setUpdateTime(infoData.getUpdateTime()); |