地址问题,时间判断问题

This commit is contained in:
Jerry Yan 2024-12-30 20:47:24 +08:00
parent aa7d1fab52
commit 2031b77f12
2 changed files with 3 additions and 3 deletions

View File

@ -89,8 +89,8 @@ public class AliOssStorageOperator extends ADeviceStorageOperator {
calendar.clear();
return fileList.stream()
.sorted(Comparator.comparing(FileObject::getCreateTime))
.filter(item -> item.getCreateTime().after(startDate) || item.getCreateTime().equals(startDate))
.filter(item -> item.getCreateTime().equals(endDate) || item.getCreateTime().before(endDate))
.filter(item -> item.getEndTime().after(startDate))
.filter(item -> item.getCreateTime().before(endDate))
.collect(Collectors.toList());
}

View File

@ -40,7 +40,7 @@ public class StorageUtil {
}
public static String getRelativePath(String fullPath, String relativeOn) {
if (StringUtils.isBlank(relativeOn)) {
if (StringUtils.isNotBlank(relativeOn)) {
fullPath = fullPath.replace(relativeOn, "");
}
if (fullPath.startsWith("/")) {