|
|
@ -1596,25 +1596,27 @@ 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 (OrderInfoEnum.CHECK_BANK_FLAG_YES.getKey().equals(buyerEntity.getCheckBankFlag())) { |
|
|
|
if (buyerEntity != null) { |
|
|
|
log.info("开始校验客户信息完整"); |
|
|
|
if (OrderInfoEnum.CHECK_BANK_FLAG_YES.getKey().equals(buyerEntity.getCheckBankFlag())) { |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfNsrsbh())) { |
|
|
|
log.info("开始校验客户信息完整"); |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方纳税人识别号为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfNsrsbh())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方纳税人识别号为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfDz())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方地址为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfDz())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方地址为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfDh())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方电话为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfDh())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方电话为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfYh())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方开户行为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfYh())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方开户行为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfZh())) { |
|
|
|
} |
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方银行账号为空,请补全!"); |
|
|
|
if (StrUtil.isBlank(orderInfo.getGhfZh())) { |
|
|
|
|
|
|
|
throw new RuntimeException("结算单:"+orderInfo.getDdh()+"购方银行账号为空,请补全!"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|