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)){