From c891eff615cc281506e527c1f471b435f26d2580 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Thu, 7 Sep 2023 16:21:43 +0800 Subject: [PATCH] =?UTF-8?q?PDF=E8=BD=AC=E6=8D=A2=20=E5=90=8E=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java b/pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java index d58fad1..db1f3b6 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java @@ -125,6 +125,9 @@ public class ProjectConvert { private static ProjectMimplementReq convertMimplementVoWithConvertPdf(GovBizProjectMimplementVO mimplement) { ProjectMimplementReq req = BeanUtil.copyProperties(mimplement,ProjectMimplementReq.class); + if(Objects.isNull(req)){ + return req; + } req.setBaseUserConsFile(StringUtils.isNotBlank(mimplement.getBaseUserConsFilePdf()) ? mimplement.getBaseUserConsFilePdf() : mimplement.getBaseUserConsFile()); req.setBaseChanFile(StringUtils.isNotBlank(mimplement.getBaseChanFilePdf()) ? mimplement.getBaseChanFilePdf() : @@ -160,6 +163,9 @@ public class ProjectConvert { public static ProjectCimplementReq convertCimplementVoWithConvertPdf(GovBizProjectCimplementVO cimplement) { ProjectCimplementReq req = BeanUtil.copyProperties(cimplement,ProjectCimplementReq.class); + if(Objects.isNull(req)){ + return req; + } req.setBaseChangeFormFile(StringUtils.isNotBlank(cimplement.getBaseChangeFormFilePdf()) ? cimplement.getBaseChangeFormFilePdf() : cimplement.getBaseChangeFormFile()); req.setBaseUserConsFile(StringUtils.isNotBlank(cimplement.getBaseUserConsFilePdf()) ? cimplement.getBaseUserConsFilePdf() :