Commit e4a9d965 authored by 刘基明's avatar 刘基明

空值判断

parent 862035cb
......@@ -150,6 +150,8 @@ public class RankService {
LocalDateTime start = LocalDateTime.now();
List<TopicEntity> topicEntities = topicService.queryAll();
if (CollectionUtils.isEmpty(topicEntities)) {
this.rankTopicList = new ArrayList<>();
this.rankTopicListTop4 = new ArrayList<>();
return;
}
List<TopicRankQo> topicRankQos = ConvertUtil.topicEntityToHotQos(topicEntities);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment