作者 唐旭辉

同步的数据默认合伙人类型

@@ -250,6 +250,7 @@ func (s SyncOrderService) copyOrderBestshopToOrderBase(orderBestshop *domain.Ord @@ -250,6 +250,7 @@ func (s SyncOrderService) copyOrderBestshopToOrderBase(orderBestshop *domain.Ord
250 orderbase.Goods = ordergoods 250 orderbase.Goods = ordergoods
251 orderbase.PartnerId = partnerData.Partner.Id 251 orderbase.PartnerId = partnerData.Partner.Id
252 orderbase.CompanyId = partnerData.CompanyId 252 orderbase.CompanyId = partnerData.CompanyId
  253 + orderbase.PartnerCategory = domain.PartnerCategory{Id: 1, Name: "事业合伙人"} // 默认设定为事业合伙人订单
253 orderbase.Compute() 254 orderbase.Compute()
254 err = orderBaseRepository.Save(&orderbase) 255 err = orderBaseRepository.Save(&orderbase)
255 if err != nil { 256 if err != nil {