|
@@ -176,7 +176,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
|
@@ -176,7 +176,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
176
|
OrderId string `json:"id"` //订单编号
|
176
|
OrderId string `json:"id"` //订单编号
|
177
|
OrderNumber string `json:"orderNumber"` //订单号
|
177
|
OrderNumber string `json:"orderNumber"` //订单号
|
178
|
OrderState int `json:"orderState"` //订单状态
|
178
|
OrderState int `json:"orderState"` //订单状态
|
179
|
- StateOfPayment string `json:"stateOfPayment"` //支付状态
|
179
|
+ StateOfPayment int `json:"stateOfPayment"` //支付状态
|
180
|
CreateTime string `json:"createTime"` //订单创建时间
|
180
|
CreateTime string `json:"createTime"` //订单创建时间
|
181
|
PartnerName string `json:"partnerName"` //合伙人姓名
|
181
|
PartnerName string `json:"partnerName"` //合伙人姓名
|
182
|
DividendProportion float64 `json:"dividendProportion"` //分红比例
|
182
|
DividendProportion float64 `json:"dividendProportion"` //分红比例
|
|
@@ -192,7 +192,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
|
@@ -192,7 +192,7 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
192
|
OrderId: fmt.Sprintf("%v", order.Id),
|
192
|
OrderId: fmt.Sprintf("%v", order.Id),
|
193
|
OrderNumber: order.OrderCode,
|
193
|
OrderNumber: order.OrderCode,
|
194
|
OrderState: order.OrderStatus,
|
194
|
OrderState: order.OrderStatus,
|
195
|
- StateOfPayment: "",
|
195
|
+ StateOfPayment: order.BonusStatus,
|
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,
|
|
@@ -201,11 +201,11 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
|
@@ -201,11 +201,11 @@ func (OrderPaymentService *OrderPaymentService) ListDividendOrders(listOrderPaym |
201
|
ReceiveDividends: utils.Decimal(order.OrderPaymentAmount * (order.PartnerBonusPercent / 100.0)),
|
201
|
ReceiveDividends: utils.Decimal(order.OrderPaymentAmount * (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
|
- }
|
204
|
+ //if order.BonusStatus == domain.BonusPaid {
|
|
|
205
|
+ // item.StateOfPayment = "已支付分红"
|
|
|
206
|
+ //} else {
|
|
|
207
|
+ // item.StateOfPayment = "等待支付分红"
|
|
|
208
|
+ //}
|
209
|
if order.OrderActualAmount < order.OrderAmount {
|
209
|
if order.OrderActualAmount < order.OrderAmount {
|
210
|
item.DividendSpending = utils.Decimal((order.OrderAmount - order.OrderActualAmount) * (order.PartnerBonusPercent / 100.0))
|
210
|
item.DividendSpending = utils.Decimal((order.OrderAmount - order.OrderActualAmount) * (order.PartnerBonusPercent / 100.0))
|
211
|
}
|
211
|
}
|