订单平台佣金bug修复,价格计算相关优化

This commit is contained in:
Chopper
2021-08-02 18:44:05 +08:00
parent 083b90a04a
commit 644de06172
20 changed files with 110 additions and 321 deletions

View File

@@ -94,7 +94,8 @@ public class GoodsStoreController {
@GetMapping(value = "/get/{id}")
public ResultMessage<GoodsVO> get(@PathVariable String id) {
AuthUser tokenUser = UserContext.getCurrentUser();
GoodsVO goods = goodsService.getGoodsVO(id);
GoodsVO goods = goodsService.getGoodsVOFromDB(id);
assert tokenUser != null;
if (tokenUser.getStoreId().equals(goods.getStoreId())) {
return ResultUtil.data(goods);
}