完善 DictTypeServiceImpl 单元测试

This commit is contained in:
YunaiV
2023-02-01 07:45:57 +08:00
parent 0537421655
commit fed9feb05f
3 changed files with 85 additions and 46 deletions

View File

@ -41,6 +41,11 @@ public class LocalDateTimeUtils {
return LocalDateTime.of(year, mouth, day, 0, 0, 0);
}
public static LocalDateTime[] buildBetweenTime(int year1, int mouth1, int day1,
int year2, int mouth2, int day2) {
return new LocalDateTime[]{buildTime(year1, mouth1, day1), buildTime(year2, mouth2, day2)};
}
/**
* 判断当前时间是否在该时间范围内
*