| | |
| | | //获取实现接口 |
| | | ApiRemoteService apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); |
| | | if (null == apiService) return "系统没有当前推送协议配置,执行失败"; |
| | | if (PushProtocol.SB_SH_2023.getCode().equals(apiConf.getPushProtocol())) { |
| | | return pushDataList(items, apiService, apiConf); |
| | | } |
| | | |
| | | return pushDataSingle(items, apiService, apiConf); |
| | | } |
| | | |
| | |
| | | String result = ""; |
| | | |
| | | //封装参数 |
| | | ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1502); |
| | | ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1114_1502); |
| | | Api1502 d; |
| | | for (Api1502 data : items) { |
| | | d = new Api1502(); |
| | |
| | | private String pushDataList(List<Api1502> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { |
| | | |
| | | //封装参数 |
| | | ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1502); |
| | | ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_1114_1502); |
| | | |
| | | //推送,数据为集合形式 |
| | | ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); |