Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-08-15 18:45:20 +08:00
commit e93234e7ec
1 changed files with 2 additions and 2 deletions

View File

@ -510,7 +510,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
if (pinTop > 0) {
return index.getPinTopTime() == null ? new Date(0).getTime() + (index.getTotal() == null ? 0L : index.getTotal()) : index.getPinTopTime().getTime() + +(index.getTotal() == null ? 0L : index.getTotal());
} else {
return new Date(0).getTime() + index.getTotal();
return new Date(0).getTime() + (index.getTotal() == null ? 0L : index.getTotal());
}
}).reversed()
).collect(Collectors.toList()));
@ -521,7 +521,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
if (pinTop > 0) {
return index.getPinTopTime() == null ? new Date(0).getTime() + (index.getTotal() == null ? 0L : index.getTotal()) : index.getPinTopTime().getTime() + (index.getTotal() == null ? 0L : index.getTotal());
} else {
return new Date(0).getTime() + index.getTotal();
return new Date(0).getTime() + (index.getTotal() == null ? 0L : index.getTotal());
}
})
).collect(Collectors.toList()));