...
|
...
|
@@ -176,7 +176,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
|
|
OrderId string `json:"id"` //订单编号
|
|
|
OrderNumber string `json:"orderNumber"` //订单号
|
|
|
OrderState int `json:"orderState"` //订单状态
|
|
|
StateOfPayment string `json:"stateOfPayment"` //支付状态
|
|
|
StateOfPayment int `json:"stateOfPayment"` //支付状态
|
|
|
CreateTime string `json:"createTime"` //订单创建时间
|
|
|
PartnerName string `json:"partnerName"` //合伙人姓名
|
|
|
DividendProportion float64 `json:"dividendProportion"` //分红比例
|
...
|
...
|
@@ -192,7 +192,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
|
|
OrderId: fmt.Sprintf("%v", order.Id),
|
|
|
OrderNumber: order.OrderCode,
|
|
|
OrderState: order.OrderStatus,
|
|
|
StateOfPayment: "",
|
|
|
StateOfPayment: order.BonusStatus,
|
|
|
CreateTime: order.CreateAt.Local().Format("2006-01-02 15:04:05"),
|
|
|
PartnerName: order.PartnerInfo.PartnerName,
|
|
|
DividendProportion: order.PartnerBonusPercent,
|
...
|
...
|
@@ -201,11 +201,11 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
|
|
ReceiveDividends: utils.Decimal(order.OrderPaymentAmount * (order.PartnerBonusPercent / 100.0)),
|
|
|
CommissionProportion: order.SalesmanBonusPercent,
|
|
|
}
|
|
|
if order.BonusStatus == domain.BonusPaid {
|
|
|
item.StateOfPayment = "已支付分红"
|
|
|
} else {
|
|
|
item.StateOfPayment = "等待支付分红"
|
|
|
}
|
|
|
//if order.BonusStatus == domain.BonusPaid {
|
|
|
// item.StateOfPayment = "已支付分红"
|
|
|
//} else {
|
|
|
// item.StateOfPayment = "等待支付分红"
|
|
|
//}
|
|
|
if order.OrderActualAmount < order.OrderAmount {
|
|
|
item.DividendSpending = utils.Decimal((order.OrderAmount - order.OrderActualAmount) * (order.PartnerBonusPercent / 100.0))
|
|
|
}
|
...
|
...
|
|