Merge branch 'test' of http://gitlab.fjmaimaimai.com/mmm-go/partnermg into test
正在显示
1 个修改的文件
包含
2 行增加
和
7 行删除
| @@ -196,16 +196,11 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym | @@ -196,16 +196,11 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym | ||
| 196 | CreateTime: order.CreateAt.Local().Format("2006-01-02 15:04:05"), | 196 | CreateTime: order.CreateAt.Local().Format("2006-01-02 15:04:05"), |
| 197 | PartnerName: order.PartnerInfo.PartnerName, | 197 | PartnerName: order.PartnerInfo.PartnerName, |
| 198 | DividendProportion: order.PartnerBonusPercent, | 198 | DividendProportion: order.PartnerBonusPercent, |
| 199 | - DividendsReceivable: utils.Decimal(order.OrderActualAmount * (order.PartnerBonusPercent / 100.0)), | 199 | + DividendsReceivable: utils.Decimal(order.OrderAmount * (order.PartnerBonusPercent / 100.0)), |
| 200 | DividendSpending: 0, | 200 | DividendSpending: 0, |
| 201 | - ReceiveDividends: utils.Decimal(order.OrderPaymentAmount * (order.PartnerBonusPercent / 100.0)), | 201 | + ReceiveDividends: utils.Decimal(order.OrderActualAmount * (order.PartnerBonusPercent / 100.0)), |
| 202 | CommissionProportion: order.SalesmanBonusPercent, | 202 | CommissionProportion: order.SalesmanBonusPercent, |
| 203 | } | 203 | } |
| 204 | - //if order.BonusStatus == domain.BonusPaid { | ||
| 205 | - // item.StateOfPayment = "已支付分红" | ||
| 206 | - //} else { | ||
| 207 | - // item.StateOfPayment = "等待支付分红" | ||
| 208 | - //} | ||
| 209 | if order.OrderActualAmount < order.OrderAmount { | 204 | if order.OrderActualAmount < order.OrderAmount { |
| 210 | item.DividendSpending = utils.Decimal((order.OrderAmount - order.OrderActualAmount) * (order.PartnerBonusPercent / 100.0)) | 205 | item.DividendSpending = utils.Decimal((order.OrderAmount - order.OrderActualAmount) * (order.PartnerBonusPercent / 100.0)) |
| 211 | } | 206 | } |
-
请 注册 或 登录 后发表评论