fixed 订单添加商品信息

This commit is contained in:
LittleBoy 2022-12-12 15:34:48 +08:00
parent e68e7ef115
commit 83ca6b6155

View File

@ -118,7 +118,11 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
QueryWrapper q = new QueryWrapper();
q.eq("uid", uid);
q.eq("id", id);
return getOne(q);
final OrderInfo o = getOne(q);
if(null != o){
o.setGoods(goodsService.getById(o.getGid()));
}
return o;
}
public long buyHistoryCount(int uid, int gid) {