查询问题

This commit is contained in:
2025-12-19 16:13:00 +08:00
parent 8a918cc0c0
commit 903121aa61
2 changed files with 3 additions and 3 deletions

View File

@@ -252,7 +252,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
@PostConstruct
public void initProductListCache() {
log.info("系统启动后初始化商品列表缓存,开始...");
List<Long> shopIdList = DbChain.table("tb_shop_info").select("id").objListAs(Long.class);
List<Long> shopIdList = DbChain.table("tb_shop_info").select("id").listAs(Long.class);
for (Long shopId : shopIdList) {
log.info("商品列表缓存>>当前店铺:{}", shopId);
ProductDTO dto = new ProductDTO();