修改疯子读书商品列表bug
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user