作者 tangxvhui

修复:订单详情异常

... ... @@ -114,7 +114,8 @@ func (service OrderInfoService) GetOrderDetail(getOrderQuery query.GetOrderQuery
partnerData *domain.PartnerInfo
goods []domain.OrderGood
)
partnerData, err = PartnerInfoRepository.FindOne(domain.PartnerFindOneQuery{UserId: order.PartnerInfo.Id})
partnerData, err = PartnerInfoRepository.FindOne(domain.PartnerFindOneQuery{UserId: order.PartnerId})
if err != nil {
return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, fmt.Sprintf("检索合伙人数据失败:%s", err))
}
... ...
... ... @@ -36,6 +36,9 @@ func (reponsitory OrderBaseRepository) transformPgModelToDomainModel(orderModel
PlanOrderCount: orderModel.PlanOrderCount, PlanOrderAmount: orderModel.PlanOrderAmount,
UseOrderCount: orderModel.UseOrderCount, UseOrderAmount: orderModel.UseOrderAmount,
},
PartnerInfo: domain.Partner{
Id: orderModel.PartnerId,
},
}
return order, nil
}
... ...