From 9142c713f57335c860242a9785a0a0405595a967 Mon Sep 17 00:00:00 2001 From: pangyang <475446853@qq.com> Date: Fri, 10 Jun 2022 17:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=A5=A8=E8=8E=B7=E5=8F=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9=E5=B1=95=E7=A4=BA?= =?UTF-8?q?PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../djy/invoice/service/impl/InvLinkInfoServiceImpl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/invoice/src/main/java/com/djy/invoice/service/impl/InvLinkInfoServiceImpl.java b/invoice/src/main/java/com/djy/invoice/service/impl/InvLinkInfoServiceImpl.java index 994c6b9..4c53277 100644 --- a/invoice/src/main/java/com/djy/invoice/service/impl/InvLinkInfoServiceImpl.java +++ b/invoice/src/main/java/com/djy/invoice/service/impl/InvLinkInfoServiceImpl.java @@ -981,9 +981,12 @@ public class InvLinkInfoServiceImpl implements InvLinkInfoService { for(String str : invoiceIds){ dto = new InvoicePdfDto(); InvInvoiceInfo inv = invInvoiceInfoMapper.getByGid(str); - dto.setPdfUrl(inv.getPdfUrl()); - dto.setInvNum(inv.getInvNum()); - dtos.add(dto); + if(null != inv.getPdfUrl() && !"".equals(inv.getPdfUrl())){ + dto.setPdfUrl(inv.getPdfUrl()); + dto.setInvNum(inv.getInvNum()); + dtos.add(dto); + } + } }