数据为空

This commit is contained in:
2026-04-01 14:05:06 +08:00
parent dcf72b07c2
commit 384557e914

View File

@@ -339,7 +339,9 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
Set<String> keys = redisService.rightLikeKey(prefix);
for (String key : keys) {
List<ProductDTO> prodList = redisService.getJsonToBeanList(key, ProductDTO.class);
list.addAll(prodList);
if(CollUtil.isNotEmpty(prodList)) {
list.addAll(prodList);
}
}
} else {
String key = prefix + param.getCategoryId();