作者 陈志颖

fix:修复分红订单金额计算错误

@@ -141,7 +141,7 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD @@ -141,7 +141,7 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD
141 UpdatedAt: time.Time{}, 141 UpdatedAt: time.Time{},
142 }) 142 })
143 // 计算分红订单金额 143 // 计算分红订单金额
144 - dividendsOrderAmount, _ = decimal.NewFromFloat(dividendsOrderAmount).Add(decimal.NewFromFloat(orderGood.OrderGoodPrice).Mul(decimal.NewFromFloat(float64(orderGood.OrderGoodQuantity)).Sub(decimal.NewFromFloat(orderGood.OrderGoodExpense)))).Float64() 144 + dividendsOrderAmount, _ = decimal.NewFromFloat(dividendsOrderAmount).Add(decimal.NewFromFloat(orderGood.OrderGoodPrice).Mul(decimal.NewFromFloat(float64(orderGood.OrderGoodQuantity))).Sub(decimal.NewFromFloat(orderGood.OrderGoodExpense))).Float64()
145 } 145 }
146 146
147 // 订单时间转换 147 // 订单时间转换