Parcourir la source

草稿箱

tags/24080901
PoffyZhang il y a 1 an
Parent
révision
2cd610333a
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. +3
    -5
      pmapi/src/test/java/com/ningdatech/pmapi/projectCollection/ProjectCollectionTest.java

+ 3
- 5
pmapi/src/test/java/com/ningdatech/pmapi/projectCollection/ProjectCollectionTest.java Voir le fichier

@@ -75,7 +75,7 @@ public class ProjectCollectionTest extends AppTests {

@Test
public void test(){
List<String> baseProjIds = Lists.newArrayList("33112300020230100032");
List<String> baseProjIds = Lists.newArrayList("33110000020210100193");
for(String baseProjId : baseProjIds){
GovBizProjectBaseinfo baseinfo = baseinfoService.getOne(Wrappers.lambdaQuery(GovBizProjectBaseinfo.class)
.eq(GovBizProjectBaseinfo::getBaseProjId, baseProjId)
@@ -183,10 +183,8 @@ public class ProjectCollectionTest extends AppTests {
}

public static String convertMonth(LocalDateTime baseProjStartTime, LocalDateTime baseProjEndTime) {
String start = baseProjStartTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
String end = baseProjEndTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
Temporal temporal1 = LocalDate.parse(start);
Temporal temporal2 = LocalDate.parse(end);
Temporal temporal1 = baseProjStartTime.toLocalDate();
Temporal temporal2 = baseProjEndTime.toLocalDate();
// 方法返回为相差月份
Long ll = ChronoUnit.MONTHS.between(temporal1, temporal2);
return ll.toString();


Chargement…
Annuler
Enregistrer