| | |
| | | |
| | | @Expose |
| | | public String pushData(List<SH2023Api2102> items) { |
| | | ResponseDto responseDto; |
| | | |
| | | String result = ""; |
| | | |
| | | String kqdm = items.get(0).getDrhwdm().substring(0, 21); |
| | |
| | | return "系统没有当前推送协议配置,执行失败"; |
| | | } |
| | | |
| | | //推送,数据为集合形式 |
| | | responseDto = apiService.pushData(param, apiConf, items); |
| | | if (responseDto.getSuccess() == 0) { |
| | | //推送成功,更新数据上传状态 |
| | | |
| | | ApiInfoData infoData; |
| | | for (SH2023Api2102 data : items) { |
| | | ResponseDto responseDto; |
| | | ApiInfoData infoData; |
| | | for (SH2023Api2102 data : items) { |
| | | //推送,数据为集合形式 |
| | | responseDto = apiService.pushData(param, apiConf, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | //推送成功,更新数据上传状态 |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | |
| | | infoData = new ApiInfoData(); |
| | | infoData.setId(data.getDrdh()); |
| | | infoData.setKqdm(data.getDrhwdm().substring(0, 21)); |
| | | infoData.setInteType("21"); |
| | | infoData.setInteId(SH2023Constant.SH_2023_API_CODE_2102); |
| | | infoData.setUpdateTime(new Date()); |
| | | infoData.setDataId(data.getDrdh()); |
| | | |
| | | List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2102, data.getDrdh(), data.getDrdw()); |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | infoData = apiInfoList.get(0); |
| | | infoData.setUpdateTime(new Date()); |
| | | infoData.setCzbz(Constant.CZBZ_U); |
| | | infoData.setData(JSON.toJSONString(data)); |
| | | |
| | | apiInfoDataRep.save(infoData); |
| | | } |
| | | } |