商品Id 问题

This commit is contained in:
2025-12-19 17:50:27 +08:00
parent 1d0deb4a38
commit 30b3da513b
2 changed files with 23 additions and 1 deletions

View File

@@ -52,7 +52,11 @@ public class GbWareServiceImpl extends ServiceImpl<GbWareMapper, GbWare> impleme
q2.eq(GbWare::getUseShopType, "custom").and("FIND_IN_SET( " + shopId + ", use_shops ) > 0");
});
});
return page(Page.of(param.getPage(), param.getSize()), queryWrapper);
Page<GbWare> page = page(Page.of(param.getPage(), param.getSize()), queryWrapper);
page.getRecords().forEach(item -> {
item.setShopId(shopId);
});
return page;
}
@Override