...
|
...
|
@@ -248,13 +248,17 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
func DomainOrderToOrderListItem(order *domain.OrderBase) *protocol.OrderListItem {
|
|
|
bonusStatic := order.OrderBonusStatic()
|
|
|
return &protocol.OrderListItem{
|
|
|
Id: order.Id,
|
|
|
OrderType: order.OrderType,
|
|
|
OrderNo: order.OrderCode,
|
|
|
DeliveryNo: order.DeliveryCode,
|
|
|
OrderAmount: order.PlanOrderAmount,
|
|
|
UpdateTime: order.UpdateTime.Unix() * 1000,
|
|
|
MyDividend: bonusStatic.OrderTotalReceivable(),
|
|
|
IsRead: order.IsRead(),
|
|
|
Id: order.Id,
|
|
|
OrderType: order.OrderType,
|
|
|
OrderNo: order.OrderCode,
|
|
|
DeliveryNo: order.DeliveryCode,
|
|
|
OrderDistrict: map[string]interface{}{
|
|
|
"id": order.RegionInfo.RegionId,
|
|
|
"name": order.RegionInfo.RegionName,
|
|
|
},
|
|
|
OrderAmount: order.PlanOrderAmount,
|
|
|
UpdateTime: order.UpdateTime.Unix() * 1000,
|
|
|
MyDividend: bonusStatic.OrderTotalReceivable(),
|
|
|
IsRead: order.IsRead(),
|
|
|
}
|
|
|
} |
...
|
...
|
|