|
|
|
@ -79,18 +79,18 @@ public class InvoiceDataServiceImpl implements InvoiceDataService { |
|
|
|
|
if (orderInvoiceInfo == null) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
//查询当前税号的销方信息是否配置推送地址
|
|
|
|
|
PushInfo queryPushInfo = new PushInfo(); |
|
|
|
|
//推送地址为有效
|
|
|
|
|
queryPushInfo.setStatus("0"); |
|
|
|
|
queryPushInfo.setNsrsbh(orderInvoiceInfo.getXhfNsrsbh()); |
|
|
|
|
//接口类型为发票作废状态推送
|
|
|
|
|
queryPushInfo.setInterfaceType(OrderInfoEnum.INTERFACE_TYPE_INVOICE_PUSH_STATUS_1.getKey()); |
|
|
|
|
List<PushInfo> selectListByPushInfo = orderPushInfoMapper.queryPushInfoList(queryPushInfo, shList); |
|
|
|
|
if (ObjectUtil.isEmpty(selectListByPushInfo)) { |
|
|
|
|
set.add(orderInvoiceInfo.getXhfNsrsbh()); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
// //查询当前税号的销方信息是否配置推送地址
|
|
|
|
|
// PushInfo queryPushInfo = new PushInfo();
|
|
|
|
|
// //推送地址为有效
|
|
|
|
|
// queryPushInfo.setStatus("0");
|
|
|
|
|
// queryPushInfo.setNsrsbh(orderInvoiceInfo.getXhfNsrsbh());
|
|
|
|
|
// //接口类型为发票作废状态推送
|
|
|
|
|
// queryPushInfo.setInterfaceType(OrderInfoEnum.INTERFACE_TYPE_INVOICE_PUSH_STATUS_1.getKey());
|
|
|
|
|
// List<PushInfo> selectListByPushInfo = orderPushInfoMapper.queryPushInfoList(queryPushInfo, shList);
|
|
|
|
|
// if (ObjectUtil.isEmpty(selectListByPushInfo)) {
|
|
|
|
|
// set.add(orderInvoiceInfo.getXhfNsrsbh());
|
|
|
|
|
// continue;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//将需要推送给企业的发票数据放入发票推送队列
|
|
|
|
|
log.info("{}invociePush:{}", LOGGER_MSG, JsonUtils.getInstance().toJsonString(orderInvoiceInfo)); |
|
|
|
|