作者 陈志颖

fix:分红订单产品更新问题

@@ -266,20 +266,20 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend @@ -266,20 +266,20 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend
266 for _, orderGood := range dividendsOrder.Goods { 266 for _, orderGood := range dividendsOrder.Goods {
267 if orderGood.OrderGoodId == orderGoodModelToUpdate.OrderGoodId { 267 if orderGood.OrderGoodId == orderGoodModelToUpdate.OrderGoodId {
268 orderGoodModelsToUpdate[i] = &models.OrderGood{ 268 orderGoodModelsToUpdate[i] = &models.OrderGood{
269 - OrderGoodId: orderGoodModelToUpdate.OrderGoodId,  
270 - OrderGoodAmount: orderGoodModelToUpdate.OrderGoodAmount,  
271 - OrderGoodName: orderGoodModelToUpdate.OrderGoodName,  
272 - OrderGoodPrice: orderGoodModelToUpdate.OrderGoodPrice,  
273 - OrderGoodQuantity: orderGoodModelToUpdate.OrderGoodQuantity,  
274 - DividendsOrderNumber: orderGoodModelToUpdate.DividendsOrderNumber,  
275 - DividendsReturnedOrderNumber: orderGoodModelToUpdate.DividendsReturnedOrderNumber,  
276 - CooperationContractNumber: orderGoodModelToUpdate.CooperationContractNumber,  
277 - OrgId: orderGoodModelToUpdate.OrgId,  
278 - CompanyId: orderGoodModelToUpdate.CompanyId,  
279 - OrderGoodExpense: orderGoodModelToUpdate.OrderGoodExpense,  
280 - OrderGoodDividendsStatus: orderGoodModelToUpdate.OrderGoodDividendsStatus,  
281 - CreatedAt: orderGoodModelToUpdate.CreatedAt,  
282 - DeletedAt: orderGoodModelToUpdate.DeletedAt, 269 + OrderGoodId: orderGood.OrderGoodId,
  270 + OrderGoodAmount: orderGood.OrderGoodAmount,
  271 + OrderGoodName: orderGood.OrderGoodName,
  272 + OrderGoodPrice: orderGood.OrderGoodPrice,
  273 + OrderGoodQuantity: orderGood.OrderGoodQuantity,
  274 + DividendsOrderNumber: orderGood.DividendsOrderNumber,
  275 + DividendsReturnedOrderNumber: orderGood.DividendsReturnedOrderNumber,
  276 + CooperationContractNumber: orderGood.CooperationContractNumber,
  277 + OrgId: orderGood.OrgId,
  278 + CompanyId: orderGood.CompanyId,
  279 + OrderGoodExpense: orderGood.OrderGoodExpense,
  280 + OrderGoodDividendsStatus: orderGood.OrderGoodDividendsStatus,
  281 + CreatedAt: orderGood.CreatedAt,
  282 + DeletedAt: orderGood.DeletedAt,
283 UpdatedAt: time.Now(), 283 UpdatedAt: time.Now(),
284 } 284 }
285 } 285 }