| | |
| | | return responseDto; |
| | | } |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | ShjdjwRespDto responseDto = Shjdjw2023HttpClientUtil.postPushData(conf.getApiUrl(), jsonData, conf); |
| | | responseDto.setBizId(bizId); |
| | | apiLog.setStatus(responseDto.getCode() == 1 ? 0 : responseDto.getCode()); |
| | |
| | | ResponseDto resd = new ResponseDto(); |
| | | resd.setSuccess(responseDto.getCode() == 1 ? 0 : responseDto.getCode()); |
| | | resd.setMsg(responseDto.getDescription()); |
| | | //updateGD2022AuthToken(responseDto,conf, token); |
| | | |
| | | return resd; |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | |
| | | List<Object> list = new ArrayList<>(); |
| | | //转换封装 |
| | | if (Constant.API_CODE_1102.equals(inteId)) { |
| | | //单位接口数据封装 |
| | | ShjdjwApi1101 shjdjwApi1101 = new ShjdjwApi1101(); |
| | | BeanUtils.copyProperties(data, shjdjwApi1101); |
| | | //查询单位信息 |
| | |
| | | //单位信息封装 |
| | | list.add(shjdjwApi1101); |
| | | } else if (Constant.API_CODE_1202.equals(inteId)) { |
| | | |
| | | list.add(data); |
| | | } else { |
| | | |
| | | list.add(data); |
| | | } |
| | | dto.setData(list); |