作者 唐旭辉

更新

@@ -232,7 +232,7 @@ func (s SyncOrderService) copyOrderBestshopToOrderBase(orderBestshop *domain.Ord @@ -232,7 +232,7 @@ func (s SyncOrderService) copyOrderBestshopToOrderBase(orderBestshop *domain.Ord
232 ordergoods = append(ordergoods, good) 232 ordergoods = append(ordergoods, good)
233 } 233 }
234 orderbase.Goods = ordergoods 234 orderbase.Goods = ordergoods
235 - orderbase.PartnerId = orderBestshop.PartnerId 235 + orderbase.PartnerId = partnerData.Partner.Id
236 orderbase.CompanyId = partnerData.CompanyId 236 orderbase.CompanyId = partnerData.CompanyId
237 orderbase.Compute() 237 orderbase.Compute()
238 err = orderBaseRepository.Save(&orderbase) 238 err = orderBaseRepository.Save(&orderbase)