浏览代码

草稿箱

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


正在加载...
取消
保存