Merge branch '毕业答辩' into production
This commit is contained in:
commit
0e9115bb06
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user