Compare commits
2 Commits
f4e833b8db
...
0e9115bb06
Author | SHA1 | Date | |
---|---|---|---|
0e9115bb06 | |||
bc66e20b07 |
@ -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()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user