Skip to content

Commit

Permalink
fix: 优化店铺优惠券商品分类生成
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiGaoRobot committed Jun 14, 2024
1 parent 89422b2 commit 2a984b8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ private void updateGoodsIndexPromotions(String promotionsJsonStr) {
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;
Expand Down

0 comments on commit 2a984b8

Please sign in to comment.