作者 陈志颖

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

... ... @@ -266,20 +266,20 @@ func (repository *DividendsOrderRepository) Save(dividendsOrder *domain.Dividend
for _, orderGood := range dividendsOrder.Goods {
if orderGood.OrderGoodId == orderGoodModelToUpdate.OrderGoodId {
orderGoodModelsToUpdate[i] = &models.OrderGood{
OrderGoodId: orderGoodModelToUpdate.OrderGoodId,
OrderGoodAmount: orderGoodModelToUpdate.OrderGoodAmount,
OrderGoodName: orderGoodModelToUpdate.OrderGoodName,
OrderGoodPrice: orderGoodModelToUpdate.OrderGoodPrice,
OrderGoodQuantity: orderGoodModelToUpdate.OrderGoodQuantity,
DividendsOrderNumber: orderGoodModelToUpdate.DividendsOrderNumber,
DividendsReturnedOrderNumber: orderGoodModelToUpdate.DividendsReturnedOrderNumber,
CooperationContractNumber: orderGoodModelToUpdate.CooperationContractNumber,
OrgId: orderGoodModelToUpdate.OrgId,
CompanyId: orderGoodModelToUpdate.CompanyId,
OrderGoodExpense: orderGoodModelToUpdate.OrderGoodExpense,
OrderGoodDividendsStatus: orderGoodModelToUpdate.OrderGoodDividendsStatus,
CreatedAt: orderGoodModelToUpdate.CreatedAt,
DeletedAt: orderGoodModelToUpdate.DeletedAt,
OrderGoodId: orderGood.OrderGoodId,
OrderGoodAmount: orderGood.OrderGoodAmount,
OrderGoodName: orderGood.OrderGoodName,
OrderGoodPrice: orderGood.OrderGoodPrice,
OrderGoodQuantity: orderGood.OrderGoodQuantity,
DividendsOrderNumber: orderGood.DividendsOrderNumber,
DividendsReturnedOrderNumber: orderGood.DividendsReturnedOrderNumber,
CooperationContractNumber: orderGood.CooperationContractNumber,
OrgId: orderGood.OrgId,
CompanyId: orderGood.CompanyId,
OrderGoodExpense: orderGood.OrderGoodExpense,
OrderGoodDividendsStatus: orderGood.OrderGoodDividendsStatus,
CreatedAt: orderGood.CreatedAt,
DeletedAt: orderGood.DeletedAt,
UpdatedAt: time.Now(),
}
}
... ...