commit
9cf97f3203
@ -292,6 +292,9 @@ public class GoodsMessageListener implements RocketMQListener<MessageExt> {
|
|||||||
searchParams.setCategoryPath(promotions.getScopeId());
|
searchParams.setCategoryPath(promotions.getScopeId());
|
||||||
searchParams.setPageNumber(i);
|
searchParams.setPageNumber(i);
|
||||||
searchParams.setPageSize(BATCH_SIZE);
|
searchParams.setPageSize(BATCH_SIZE);
|
||||||
|
if (CharSequenceUtil.isNotEmpty(promotions.getStoreId()) && !"0".equals(promotions.getStoreId())){
|
||||||
|
searchParams.setStoreId(promotions.getStoreId());
|
||||||
|
}
|
||||||
IPage<GoodsSku> goodsSkuByPage = this.goodsSkuService.getGoodsSkuByPage(searchParams);
|
IPage<GoodsSku> goodsSkuByPage = this.goodsSkuService.getGoodsSkuByPage(searchParams);
|
||||||
if (goodsSkuByPage == null || goodsSkuByPage.getRecords().isEmpty()) {
|
if (goodsSkuByPage == null || goodsSkuByPage.getRecords().isEmpty()) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user