地址问题,时间判断问题
This commit is contained in:
parent
aa7d1fab52
commit
2031b77f12
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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("/")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user