添加默认vip_price为0
This commit is contained in:
@@ -388,6 +388,7 @@ public class BookLabelAndMarketController {
|
|||||||
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("product_id").toString());
|
ShopProduct shopProduct = shopProductService.getById(map.get("product_id").toString());
|
||||||
|
map.put("vip_price",0);
|
||||||
if (userVipService.isVip()&&shopProduct.getIsVipPrice()==1){
|
if (userVipService.isVip()&&shopProduct.getIsVipPrice()==1){
|
||||||
map.put("vip_price",shopProductService.getVipPrice(shopProduct));
|
map.put("vip_price",shopProductService.getVipPrice(shopProduct));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user