添加默认vip_price为0

This commit is contained in:
wuchunlei
2025-04-11 10:44:23 +08:00
parent 332b1468e7
commit 914a57f129

View File

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