1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

...

2 Commits

View File

@ -57,7 +57,15 @@ public class GoodController {
}
}
List<GoodVO> list = goodService.listOnSale(cateId, searchText);
return Res.success(list);
// return Res.success(list);
// 小程序商品列表页 划线价格 未划线价格 写反了所以接口这里也反过来写
return Res.success(list.stream().map(i -> {
Double retailPrice = i.getRetailPrice();
i.setCounterPrice(i.getCounterPrice());
i.setRetailPrice(retailPrice);
return i;
}).collect(Collectors.toList()));
}
/**