瀏覽代碼

草稿箱

tags/24080901
PoffyZhang 1 年之前
父節點
當前提交
2cd610333a
共有 1 個檔案被更改,包括 3 行新增5 行删除
  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 查看文件

@@ -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();


Loading…
取消
儲存