正在显示
2 个修改的文件
包含
5 行增加
和
1 行删除
@@ -114,7 +114,8 @@ func (service OrderInfoService) GetOrderDetail(getOrderQuery query.GetOrderQuery | @@ -114,7 +114,8 @@ func (service OrderInfoService) GetOrderDetail(getOrderQuery query.GetOrderQuery | ||
114 | partnerData *domain.PartnerInfo | 114 | partnerData *domain.PartnerInfo |
115 | goods []domain.OrderGood | 115 | goods []domain.OrderGood |
116 | ) | 116 | ) |
117 | - partnerData, err = PartnerInfoRepository.FindOne(domain.PartnerFindOneQuery{UserId: order.PartnerInfo.Id}) | 117 | + |
118 | + partnerData, err = PartnerInfoRepository.FindOne(domain.PartnerFindOneQuery{UserId: order.PartnerId}) | ||
118 | if err != nil { | 119 | if err != nil { |
119 | return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, fmt.Sprintf("检索合伙人数据失败:%s", err)) | 120 | return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, fmt.Sprintf("检索合伙人数据失败:%s", err)) |
120 | } | 121 | } |
@@ -36,6 +36,9 @@ func (reponsitory OrderBaseRepository) transformPgModelToDomainModel(orderModel | @@ -36,6 +36,9 @@ func (reponsitory OrderBaseRepository) transformPgModelToDomainModel(orderModel | ||
36 | PlanOrderCount: orderModel.PlanOrderCount, PlanOrderAmount: orderModel.PlanOrderAmount, | 36 | PlanOrderCount: orderModel.PlanOrderCount, PlanOrderAmount: orderModel.PlanOrderAmount, |
37 | UseOrderCount: orderModel.UseOrderCount, UseOrderAmount: orderModel.UseOrderAmount, | 37 | UseOrderCount: orderModel.UseOrderCount, UseOrderAmount: orderModel.UseOrderAmount, |
38 | }, | 38 | }, |
39 | + PartnerInfo: domain.Partner{ | ||
40 | + Id: orderModel.PartnerId, | ||
41 | + }, | ||
39 | } | 42 | } |
40 | return order, nil | 43 | return order, nil |
41 | } | 44 | } |
-
请 注册 或 登录 后发表评论