| | |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.SyncProtocol; |
| | | import com.fzzy.api.dto.ResponseDto; |
| | | import com.fzzy.api.entity.ApiConfs; |
| | | import com.fzzy.api.entity.ApiInfoData; |
| | |
| | | String result = ""; |
| | | List<WhjlShareApi2001> list; |
| | | for (ApiConfs apiConf : apiConfs) { |
| | | if(!apiConf.getSyncProtocol().equals(SyncProtocol.FZZY_V40_WHJL.getCode())){ |
| | | continue; |
| | | } |
| | | apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); |
| | | if (null == apiService) { |
| | | continue; |
| | |
| | | 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); |
| | | } |