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; ResourceDTO index = (ResourceDTO) x;
int pinTop = index.getPinTop() == null ? 0 : index.getPinTop(); int pinTop = index.getPinTop() == null ? 0 : index.getPinTop();
if (pinTop > 0) { 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 { } else {
return new Date(0).getTime() + index.getTotal(); return new Date(0).getTime() + index.getTotal();
} }