Bladeren bron

项目库导入修改

tags/24080901
CMM 1 jaar geleden
bovenliggende
commit
570d8b2d89
1 gewijzigde bestanden met toevoegingen van 1 en 11 verwijderingen
  1. +1
    -11
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java

+ 1
- 11
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java Bestand weergeven

@@ -245,7 +245,7 @@ public class AnnualPlanLibManage {
String buildCycle = w.getBuildCycle();
int index = buildCycle.indexOf(CommonConst.MONTH);
if (-1 == index){
throw new BizException("项目ID为%s的建设起止年限格式不正确,请按照");
throw new BizException("项目ID为:" + w.getProjectId() + "的建设起止年限格式不正确,请按照xx年xx月至xx年xx月的格式输入!");
}
String beginTime = buildCycle.substring(0, index + 1);
project.setBeginTime(beginTime);
@@ -356,14 +356,4 @@ public class AnnualPlanLibManage {
}
return user;
}


public static void main(String[] args) {
String a = "2023年3月至2023年11月";
int index = a.indexOf("-");
String b = a.substring(0, index + 1);
System.out.println(b);
String c = a.substring(index + 2);
System.out.println(c);
}
}

Laden…
Annuleren
Opslaan