数据为空
This commit is contained in:
@@ -339,7 +339,9 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|||||||
Set<String> keys = redisService.rightLikeKey(prefix);
|
Set<String> keys = redisService.rightLikeKey(prefix);
|
||||||
for (String key : keys) {
|
for (String key : keys) {
|
||||||
List<ProductDTO> prodList = redisService.getJsonToBeanList(key, ProductDTO.class);
|
List<ProductDTO> prodList = redisService.getJsonToBeanList(key, ProductDTO.class);
|
||||||
list.addAll(prodList);
|
if(CollUtil.isNotEmpty(prodList)) {
|
||||||
|
list.addAll(prodList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
String key = prefix + param.getCategoryId();
|
String key = prefix + param.getCategoryId();
|
||||||
|
|||||||
Reference in New Issue
Block a user