修改疯子读书商品列表bug

This commit is contained in:
wuchunlei
2025-03-07 10:01:30 +08:00
parent 4248794c24
commit 9ac37aa3aa

View File

@@ -387,7 +387,7 @@ public class BookLabelAndMarketController {
wrapper.orderByDesc(ShopProduct::getSumSales); wrapper.orderByDesc(ShopProduct::getSumSales);
List<Map<String,Object>> list = toLabelService.listMaps(wrapper); List<Map<String,Object>> list = toLabelService.listMaps(wrapper);
for (Map<String,Object> map:list){ for (Map<String,Object> map:list){
ShopProduct shopProduct = shopProductService.getById(map.get("id").toString()); ShopProduct shopProduct = shopProductService.getById(map.get("product_id").toString());
if (shopProduct.getIsVipPrice()==1){ if (shopProduct.getIsVipPrice()==1){
map.put("vip_price",shopProductService.getVipPrice(shopProduct)); map.put("vip_price",shopProductService.getVipPrice(shopProduct));
} }