...
|
...
|
@@ -38,6 +38,7 @@ func Detail(header *protocol.RequestHeader, request *protocol.OrderDetailRequest |
|
|
OrderStatus: orderStatus(order),
|
|
|
CreateTime: order.CreateTime.Unix() * 1000,
|
|
|
UpdateTime: order.UpdateTime.Unix() * 1000,
|
|
|
SalesTime: order.SaleDate.Unix() * 1000,
|
|
|
OrderDistrict: map[string]interface{}{"id": order.RegionInfo.RegionId, "name": order.RegionInfo.RegionName},
|
|
|
Customer: protocol.Customer{Uname: order.Buyer.BuyerName, Phone: order.Buyer.ContactInfo},
|
|
|
Products: orderProducts(order),
|
...
|
...
|
@@ -234,6 +235,7 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
PartnerCategoryId: request.JoinWay,
|
|
|
})
|
|
|
rsp.Total = cumulativeQuantity
|
|
|
rsp.Timestamp = time.Now().Unix() * 1000
|
|
|
}
|
|
|
//【特殊处理2】 今天累计数量特殊处理 当前查询时间段内所有订单总数(复用rsp.Total字段)
|
|
|
if request.StartTime > 0 && request.EndTime > 0 {
|
...
|
...
|
@@ -259,6 +261,7 @@ func DomainOrderToOrderListItem(order *domain.OrderBase) *protocol.OrderListItem |
|
|
},
|
|
|
OrderAmount: order.PlanOrderAmount,
|
|
|
UpdateTime: order.UpdateTime.Unix() * 1000,
|
|
|
SalesTime: order.SaleDate.Unix() * 1000,
|
|
|
MyDividend: bonusStatic.OrderTotalReceivable(),
|
|
|
IsRead: order.IsRead(),
|
|
|
}
|
...
|
...
|
|