作者 陈志颖

fix:修复订单产品参数缺失

@@ -112,7 +112,7 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD @@ -112,7 +112,7 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD
112 return nil, application.ThrowError(application.TRANSACTION_ERROR, "新增分红订单异常") 112 return nil, application.ThrowError(application.TRANSACTION_ERROR, "新增分红订单异常")
113 } 113 }
114 114
115 - // 获取订单产品 115 + // 新增订单产品
116 var orderGoods []*domain.OrderGood 116 var orderGoods []*domain.OrderGood
117 var dividendsOrderAmount float64 117 var dividendsOrderAmount float64
118 for _, orderGood := range createDividendsOrderCommand.OrderGoods { 118 for _, orderGood := range createDividendsOrderCommand.OrderGoods {
@@ -112,7 +112,10 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend @@ -112,7 +112,10 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend
112 DividendsOrderNumber: good.DividendsOrderNumber, 112 DividendsOrderNumber: good.DividendsOrderNumber,
113 DividendsReturnedOrderNumber: good.DividendsReturnedOrderNumber, 113 DividendsReturnedOrderNumber: good.DividendsReturnedOrderNumber,
114 CooperationContractNumber: good.CooperationContractNumber, 114 CooperationContractNumber: good.CooperationContractNumber,
  115 + CompanyId: good.CompanyId,
  116 + OrgId: good.OrgId,
115 OrderGoodExpense: good.OrderGoodExpense, 117 OrderGoodExpense: good.OrderGoodExpense,
  118 + OrderGoodDividendsStatus: good.OrderGoodDividendsStatus,
116 CreatedAt: time.Now(), 119 CreatedAt: time.Now(),
117 DeletedAt: time.Time{}, 120 DeletedAt: time.Time{},
118 UpdatedAt: time.Time{}, 121 UpdatedAt: time.Time{},
@@ -204,6 +207,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend @@ -204,6 +207,7 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend
204 OrderGoodExpense: goodDomain.OrderGoodExpense, 207 OrderGoodExpense: goodDomain.OrderGoodExpense,
205 OrgId: goodDomain.OrgId, 208 OrgId: goodDomain.OrgId,
206 CompanyId: goodDomain.CompanyId, 209 CompanyId: goodDomain.CompanyId,
  210 + OrderGoodDividendsStatus: goodDomain.OrderGoodDividendsStatus,
207 CreatedAt: time.Time{}, 211 CreatedAt: time.Time{},
208 DeletedAt: time.Time{}, 212 DeletedAt: time.Time{},
209 UpdatedAt: time.Now(), 213 UpdatedAt: time.Now(),
@@ -121,6 +121,7 @@ func (repository *DividendsReturnedOrderRepository) Save(dividendsReturnedOrder @@ -121,6 +121,7 @@ func (repository *DividendsReturnedOrderRepository) Save(dividendsReturnedOrder
121 OrderGoodExpense: good.OrderGoodExpense, 121 OrderGoodExpense: good.OrderGoodExpense,
122 OrgId: good.OrgId, 122 OrgId: good.OrgId,
123 CompanyId: good.CompanyId, 123 CompanyId: good.CompanyId,
  124 + OrderGoodDividendsStatus: good.OrderGoodDividendsStatus,
124 CreatedAt: time.Now(), 125 CreatedAt: time.Now(),
125 DeletedAt: time.Time{}, 126 DeletedAt: time.Time{},
126 UpdatedAt: time.Time{}, 127 UpdatedAt: time.Time{},
@@ -216,6 +217,7 @@ func (repository *DividendsReturnedOrderRepository) Save(dividendsReturnedOrder @@ -216,6 +217,7 @@ func (repository *DividendsReturnedOrderRepository) Save(dividendsReturnedOrder
216 OrderGoodExpense: goodDomain.OrderGoodExpense, 217 OrderGoodExpense: goodDomain.OrderGoodExpense,
217 OrgId: goodDomain.OrgId, 218 OrgId: goodDomain.OrgId,
218 CompanyId: goodDomain.CompanyId, 219 CompanyId: goodDomain.CompanyId,
  220 + OrderGoodDividendsStatus: goodDomain.OrderGoodDividendsStatus,
219 CreatedAt: time.Time{}, 221 CreatedAt: time.Time{},
220 DeletedAt: time.Time{}, 222 DeletedAt: time.Time{},
221 UpdatedAt: time.Now(), 223 UpdatedAt: time.Now(),