|
@@ -94,7 +94,9 @@ public class ShopServiceImpl extends ServiceImpl<IShopMapper, Shop> implements I
|
|
|
public List<Shop> getByCategoryAndSceneNum(Integer categoryId, String sceneNum) {
|
|
|
LambdaQueryWrapper<Shop> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(Shop::getCategoryId,categoryId);
|
|
|
- wrapper.eq(Shop::getSceneUrl,sceneNum);
|
|
|
+ if(StringUtils.isNotBlank(sceneNum)){
|
|
|
+ wrapper.eq(Shop::getSceneUrl,sceneNum);
|
|
|
+ }
|
|
|
return this.list(wrapper);
|
|
|
}
|
|
|
}
|