Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-08-15 18:19:17 +08:00
commit b0e7330961
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
ResourceDTO index = (ResourceDTO) x;
int pinTop = index.getPinTop() == null ? 0 : index.getPinTop();
if (pinTop > 0) {
return index.getPinTopTime() == null ? new Date(0).getTime() + index.getTotal() : index.getPinTopTime().getTime() + index.getTotal();
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();
}