!348 fix & improve

Merge pull request !348 from OceansDeep/pg
This commit is contained in:
OceansDeep 2024-06-14 03:31:36 +00:00 committed by Gitee
commit 9cf97f3203
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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