Browse Source

日期修正

tags/24080901
PoffyZhang 1 year ago
parent
commit
3a4889deeb
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/common/constant/CommonConst.java
  2. +1
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/gov/contants/BizProjectContant.java
  3. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/common/constant/CommonConst.java View File

@@ -64,6 +64,6 @@ public interface CommonConst {
Integer VERIFY_TYPE = 2; Integer VERIFY_TYPE = 2;
String REPEAT = " 已在其他当前评价计划其他分组中,请勿重复添加!"; String REPEAT = " 已在其他当前评价计划其他分组中,请勿重复添加!";


String NORMAL_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
String NORMAL_TIME_PATTERN = "yyyy-MM-dd";


} }

+ 1
- 0
pmapi/src/main/java/com/ningdatech/pmapi/gov/contants/BizProjectContant.java View File

@@ -24,6 +24,7 @@ public interface BizProjectContant {
public static final String OP_UPDATE = "update"; public static final String OP_UPDATE = "update";
public static final String OP_DELETE = "delete"; public static final String OP_DELETE = "delete";
public static final String PDF_SUFFIX = ".pdf"; public static final String PDF_SUFFIX = ".pdf";
public static final String MONTH = "月";
} }


} }

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/gov/convert/ProjectConvert.java View File

@@ -395,7 +395,7 @@ public class ProjectConvert {
req.setBaseResearchReportFile(StringUtils.isNotBlank(apply.getBaseResearchReportFilePdf()) ? apply.getBaseResearchReportFilePdf() : req.setBaseResearchReportFile(StringUtils.isNotBlank(apply.getBaseResearchReportFilePdf()) ? apply.getBaseResearchReportFilePdf() :
apply.getBaseResearchReportFile()); apply.getBaseResearchReportFile());
req.setBaseProjConsClass(apply.getBaseProjConsClass()); req.setBaseProjConsClass(apply.getBaseProjConsClass());
req.setBaseProjDuration(String.valueOf(apply.getBaseProjDuration()));
req.setBaseProjDuration(apply.getBaseProjDuration() + BizProjectContant.ProjectCollection.MONTH);
req.setBaseProjIntro(apply.getBaseProjIntro()); req.setBaseProjIntro(apply.getBaseProjIntro());
req.setBaseProjStartTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjStartTime())); req.setBaseProjStartTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjStartTime()));
req.setBaseProjEndTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjEndTime())); req.setBaseProjEndTime(ProjectCollectionUtil.convertLocalDateTime(apply.getBaseProjEndTime()));


Loading…
Cancel
Save