Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-08-15 18:12:32 +08:00
commit 29adf34a3e
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,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();
}