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

Merge branch '毕业答辩' into production

This commit is contained in:
程序员小墨 2023-05-06 20:29:52 +08:00
commit 0e9115bb06

View File

@ -57,7 +57,15 @@ public class GoodController {
} }
} }
List<GoodVO> list = goodService.listOnSale(cateId, searchText); 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()));
} }
/** /**