From 502bc69531e11251a8be362c43528503ae15801e Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Thu, 30 Nov 2023 17:15:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8Cdebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/gov/utils/ProjectConvertUtil.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/gov/utils/ProjectConvertUtil.java b/pmapi/src/main/java/com/ningdatech/pmapi/gov/utils/ProjectConvertUtil.java index 248714c..c324563 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/gov/utils/ProjectConvertUtil.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/gov/utils/ProjectConvertUtil.java @@ -226,16 +226,15 @@ public class ProjectConvertUtil { max = Math.max(app.getSecrecyGrade(),max); } if(max > 0){ - approve.setEqualProtectionLevel(String.format(max.toString(), - StrPool.FORMAT_DATE_SINGLE_DIGITS)); + approve.setEqualProtectionLevel(String.format(StrPool.FORMAT_DATE_SINGLE_DIGITS,max)); } } approve.setPreliminaryDesignScheme(project.getPreliminaryPlanFile()); approve.setPreliminaryDesignFile(project.getPreliminaryInspectionMaterials()); approve.setBaseReviewOpinion(project.getProposeAttach()); if(Objects.nonNull(project.getBaseReviewResults())){ - approve.setBaseReviewResults(String.format(project.getBaseReviewResults().toString(), - StrPool.FORMAT_DATE_SINGLE_DIGITS)); + approve.setBaseReviewResults(String.format(StrPool.FORMAT_DATE_SINGLE_DIGITS, + project.getBaseReviewResults())); } List purchases = project.getPurchases(); if(CollUtil.isNotEmpty(purchases)){