| | |
| | | if (responseDto.getSuccess() == 0) { |
| | | list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2001.class); |
| | | if(null != list && list.size() > 0){ |
| | | for (WhjlShareApi2001 whjlShareApi2001 : list) { |
| | | whjlShareApi2001.setCzbz(Constant.CZBZ_U); |
| | | for (WhjlShareApi2001 shareData : list) { |
| | | shareData.setCzbz(Constant.CZBZ_U); |
| | | infoData = new ApiInfoData(); |
| | | infoData.setId(whjlShareApi2001.getSbflbm()); |
| | | infoData.setId(shareData.getSbflbm()); |
| | | infoData.setKqdm(apiConf.getKqdm()); |
| | | infoData.setInteType(WhjlConstant.API_CATEGORY_20); |
| | | infoData.setInteId(WhjlConstant.API_CODE_2001); |
| | | infoData.setUpdateTime(new Date()); |
| | | infoData.setDataId(whjlShareApi2001.getSbflbm()); |
| | | infoData.setData(JSON.toJSONString(whjlShareApi2001)); |
| | | infoData.setDataId(shareData.getSbflbm()); |
| | | infoData.setData(JSON.toJSONString(shareData)); |
| | | infoData.setCzbz(Constant.CZBZ_U); |
| | | apiInfoDataRep.save(infoData); |
| | | } |