购方信息查不到跳过校验

release
WangQi 2 years ago
parent f7b85a3c7b
commit 55061b56f8
  1. 8
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/manager/service/impl/InvoiceServiceImpl.java

@ -1594,9 +1594,10 @@ public class InvoiceServiceImpl implements InvoiceService {
orderInfoIdList.stream().forEach(id->{ orderInfoIdList.stream().forEach(id->{
OrderInfo orderInfo = orderInfoMapper.selectOrderInfoByOrderId(id, null); OrderInfo orderInfo = orderInfoMapper.selectOrderInfoByOrderId(id, null);
BuyerEntity buyerEntity = buyerMapper.queryBuyerInfoByGhfIdAndEntId(orderInfo.getGhfId(), orderInfo.getEntId()); BuyerEntity buyerEntity = buyerMapper.queryBuyerInfoByGhfIdAndEntId(orderInfo.getGhfId(), orderInfo.getEntId());
if (buyerEntity == null) { // if (buyerEntity == null) {
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方信息为空,请补全!"); // throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方信息为空,请补全!");
} // }
if (buyerEntity != null) {
if (OrderInfoEnum.CHECK_BANK_FLAG_YES.getKey().equals(buyerEntity.getCheckBankFlag())) { if (OrderInfoEnum.CHECK_BANK_FLAG_YES.getKey().equals(buyerEntity.getCheckBankFlag())) {
log.info("开始校验客户信息完整"); log.info("开始校验客户信息完整");
if (StrUtil.isBlank(orderInfo.getGhfNsrsbh())) { if (StrUtil.isBlank(orderInfo.getGhfNsrsbh())) {
@ -1615,6 +1616,7 @@ public class InvoiceServiceImpl implements InvoiceService {
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方银行账号为空,请补全!"); throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方银行账号为空,请补全!");
} }
} }
}
}); });
} }

Loading…
Cancel
Save