From 870ec51e7836fdafcc3bfd387d871b858c570686 Mon Sep 17 00:00:00 2001 From: liaoxuwei <5789413@qq.com> Date: Fri, 12 May 2023 09:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=B3=E8=AF=B7=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B2=A1=E6=9C=89=E5=AD=98=E5=82=A8=E8=AF=81=E7=85=A7?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xhx/module/record/service/impl/ApplyLogServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java b/certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java index a36ec6e..f67540d 100644 --- a/certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java +++ b/certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java @@ -220,9 +220,15 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap String paths = preview(docTemplate, context,hasPDF); String[] vals = paths.split(";"); if(vals.length==3) { + //鏈塸df鏃� applyLogEntity.setCertificateUrl(vals[2]); applyLogEntity.setPreviewUrl(vals[1]); } + if(vals.length==2) { + //鏃爌df鏃� + applyLogEntity.setCertificateUrl(vals[0]); + applyLogEntity.setPreviewUrl(vals[1]); + } applyLogEntity.setCreateTime(new Date()); applyLogEntity.setRecordStatus(YesNoEnum.NO.getValue()); if(context!=null && context.getUser()!=null) { -- 2.24.3