代码还原

This commit is contained in:
Chopper 2021-08-04 09:26:49 +08:00
parent ce22c9b7ff
commit c1025b7268

View File

@ -104,10 +104,7 @@ public class EsGoodsSearchServiceImpl implements EsGoodsSearchService {
@Override
public List<String> getHotWords(Integer count) {
List<String> hotWords = new ArrayList<>();
if (hotWords.isEmpty() || hotWords == null) {
return null;
}
//下表从0开始所以count-1
//下标从0开始所以count-1
count = count - 1;
Set<DefaultTypedTuple> set = cache.reverseRangeWithScores(CachePrefix.HOT_WORD.getPrefix(), count);
for (DefaultTypedTuple defaultTypedTuple : set) {