| | |
| | | private Api1211Rep api1211Rep; |
| | | @Autowired |
| | | private Api1212Rep api1212Rep; |
| | | @Autowired |
| | | private Api1213Rep api1213Rep; |
| | | @Autowired |
| | | private Api1214Rep api1214Rep; |
| | | @Autowired |
| | | private Api1215Rep api1215Rep; |
| | | @Autowired |
| | | private Api1216Rep api1216Rep; |
| | | @Autowired |
| | | private Api1217Rep api1217Rep; |
| | | @Autowired |
| | | private Api1218Rep api1218Rep; |
| | | @Autowired |
| | | private Api1219Rep api1219Rep; |
| | | |
| | | |
| | | /** |
| | | * 1109 文件信息同步 |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 1213 封仓确认单 |
| | | */ |
| | | public void pushData1213(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //获取客户信息 |
| | | List<Api1213> list = api1213Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----未获取到客户信息,不推送-----"); |
| | | return; |
| | | } |
| | | param.setInteCategory(Constant.API_CATEGORY_12); |
| | | param.setInteId(Constant.API_CODE_1213); |
| | | |
| | | ResponseDto responseDto; |
| | | for (Api1213 data : list) { |
| | | param.setBizId(data.getBizId()); |
| | | responseDto = apiRemoteService.pushData(param, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | //更新状态 |
| | | api1213Rep.save(data); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 1214 储备粮空仓验收表 |
| | | */ |
| | | public void pushData1214(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //储备粮空仓验收表 |
| | | List<Api1214> list = api1214Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----未获取到空仓验收信息,不推送-----"); |
| | | return; |
| | | } |
| | | param.setInteCategory(Constant.API_CATEGORY_12); |
| | | param.setInteId(Constant.API_CODE_1214); |
| | | |
| | | ResponseDto responseDto; |
| | | for (Api1214 data : list) { |
| | | param.setBizId(data.getBizId()); |
| | | responseDto = apiRemoteService.pushData(param, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | //更新状态 |
| | | api1214Rep.save(data); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 1215 储备油空罐验收表 |
| | | */ |
| | | public void pushData1215(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //储备油空罐验收表 |
| | | List<Api1215> list = api1215Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----未获取到空罐验收信息,不推送-----"); |
| | | return; |
| | | } |
| | | param.setInteCategory(Constant.API_CATEGORY_12); |
| | | param.setInteId(Constant.API_CODE_1215); |
| | | |
| | | ResponseDto responseDto; |
| | | for (Api1215 data : list) { |
| | | param.setBizId(data.getBizId()); |
| | | responseDto = apiRemoteService.pushData(param, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | //更新状态 |
| | | api1215Rep.save(data); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 1216 储备粮倒仓验收表 |
| | | */ |
| | | public void pushData1216(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //储备粮倒仓验收表 |
| | | List<Api1216> list = api1216Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----未获取到倒仓验收信息,不推送-----"); |
| | | return; |
| | | } |
| | | param.setInteCategory(Constant.API_CATEGORY_12); |
| | | param.setInteId(Constant.API_CODE_1216); |
| | | |
| | | ResponseDto responseDto; |
| | | for (Api1216 data : list) { |
| | | param.setBizId(data.getBizId()); |
| | | responseDto = apiRemoteService.pushData(param, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | //更新状态 |
| | | api1216Rep.save(data); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 1217 轮换验收信息 |
| | | */ |
| | | public void pushData1217(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //轮换验收信息 |
| | | List<Api1217> list = api1217Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----未获取到轮换验收信息,不推送-----"); |
| | | return; |
| | | } |
| | | param.setInteCategory(Constant.API_CATEGORY_12); |
| | | param.setInteId(Constant.API_CODE_1217); |
| | | |
| | | ResponseDto responseDto; |
| | | for (Api1217 data : list) { |
| | | param.setBizId(data.getBizId()); |
| | | responseDto = apiRemoteService.pushData(param, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | //更新状态 |
| | | api1217Rep.save(data); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 1218 入库成本核定表 |
| | | */ |
| | | public void pushData1218(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //入库成本核定表 |
| | | List<Api1218> list = api1218Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----未获取到入库成本核定表,不推送-----"); |
| | | return; |
| | | } |
| | | param.setInteCategory(Constant.API_CATEGORY_12); |
| | | param.setInteId(Constant.API_CODE_1218); |
| | | |
| | | ResponseDto responseDto; |
| | | for (Api1218 data : list) { |
| | | param.setBizId(data.getBizId()); |
| | | responseDto = apiRemoteService.pushData(param, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | //更新状态 |
| | | api1218Rep.save(data); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 1219 入库成本核定明细表 |
| | | */ |
| | | public void pushData1219(ApiRemoteService apiRemoteService, ApiParam param) { |
| | | //入库成本核定明细表 |
| | | List<Api1219> list = api1219Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd()); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----未获取到入库成本核定表,不推送-----"); |
| | | return; |
| | | } |
| | | param.setInteCategory(Constant.API_CATEGORY_12); |
| | | param.setInteId(Constant.API_CODE_1219); |
| | | |
| | | ResponseDto responseDto; |
| | | for (Api1219 data : list) { |
| | | param.setBizId(data.getBizId()); |
| | | responseDto = apiRemoteService.pushData(param, data); |
| | | if (responseDto.getSuccess() == 0) { |
| | | if (Constant.CZBZ_I.equals(data.getCzbz())) { |
| | | data.setCzbz(Constant.CZBZ_U); |
| | | //更新状态 |
| | | api1219Rep.save(data); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |