...
|
...
|
@@ -82,10 +82,10 @@ func orderProducts(order *domain.OrderBase) interface{} { |
|
|
item["orderCount"] = good.PlanGoodNumber
|
|
|
item["orderAmount"] = good.PlanAmount
|
|
|
item["dividendPercent"] = good.PartnerBonusPercent
|
|
|
item["dividendReceivable"] = static.OrderTotalBonus() //应收分红
|
|
|
item["dividendReceived"] = static.OrderBonusReceive() //已收分红
|
|
|
item["dividendUnReceive"] = static.OrderBonusWait() // 未收分红
|
|
|
item["dividendExpend"] = static.OrderBonusOutstanding() //分红支出
|
|
|
item["dividendReceivable"] = static.OrderTotalReceivable() //应收分红
|
|
|
item["dividendReceived"] = static.OrderBonusReceive() //已收分红
|
|
|
item["dividendUnReceive"] = static.OrderBonusWait() // 未收分红
|
|
|
item["dividendExpend"] = static.OrderBonusOutstanding() //分红支出
|
|
|
if len(good.Remark) > 0 {
|
|
|
item["orderUpdateReason"] = good.Remark
|
|
|
}
|
...
|
...
|
@@ -100,12 +100,13 @@ func orderProducts(order *domain.OrderBase) interface{} { |
|
|
}
|
|
|
func orderTotalStatic(order *domain.OrderBase) interface{} {
|
|
|
item := make(map[string]interface{})
|
|
|
static := order.OrderBonusStatic()
|
|
|
item["totalCount"] = order.PlanOrderCount
|
|
|
item["totalAmount"] = order.PlanOrderAmount
|
|
|
item["totalDividendReceivable"] = order.OrderTotalBonus()
|
|
|
item["totalReceived"] = order.OrderBonusReceive()
|
|
|
item["totalUnReceive"] = order.OrderBonusWait()
|
|
|
item["totalExpend"] = order.OrderBonusOutstanding()
|
|
|
item["totalDividendReceivable"] = static.OrderTotalReceivable()
|
|
|
item["totalReceived"] = static.OrderBonusReceive()
|
|
|
item["totalUnReceive"] = static.OrderBonusWait()
|
|
|
item["totalExpend"] = static.OrderBonusOutstanding()
|
|
|
if order.UseOrderCount > 0 {
|
|
|
item["totalCountAdjust"] = order.UseOrderCount
|
|
|
item["totalAmountAdjust"] = order.UseOrderAmount
|
...
|
...
|
@@ -221,7 +222,7 @@ func DomainOrderToOrderListItem(order *domain.OrderBase) *protocol.OrderListItem |
|
|
DeliveryNo: order.DeliveryCode,
|
|
|
OrderAmount: order.PlanOrderAmount,
|
|
|
UpdateTime: order.UpdateTime.Unix() * 1000,
|
|
|
MyDividend: bonusStatic.OrderTotalBonus(),
|
|
|
MyDividend: bonusStatic.OrderTotalReceivable(),
|
|
|
IsRead: order.IsRead(),
|
|
|
}
|
|
|
} |
...
|
...
|
|