...
|
...
|
@@ -188,8 +188,8 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
//统计数据
|
|
|
if request.PageIndex == 0 {
|
|
|
var (
|
|
|
partShipmentQuantity, allShipmentQuantity int
|
|
|
cumulativeQuantity int
|
|
|
//partShipmentQuantity, allShipmentQuantity int
|
|
|
cumulativeQuantity int
|
|
|
)
|
|
|
//部分发货的订单数量
|
|
|
//partShipmentQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
...
|
...
|
@@ -200,13 +200,13 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
// OrderStatus: domain.OrderStatusDeliverSome,
|
|
|
//})
|
|
|
//全部发货的订单数量
|
|
|
allShipmentQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
|
EndTime: request.EndTime,
|
|
|
BeginTime: request.StartTime,
|
|
|
OrderType: domain.OrderReal,
|
|
|
PartnerId: header.UserId,
|
|
|
//OrderStatus: domain.OrderStatusDeliverAll,
|
|
|
})
|
|
|
//allShipmentQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
|
// EndTime: request.EndTime,
|
|
|
// BeginTime: request.StartTime,
|
|
|
// OrderType: domain.OrderReal,
|
|
|
// PartnerId: header.UserId,
|
|
|
// //OrderStatus: domain.OrderStatusDeliverAll,
|
|
|
//})
|
|
|
//累计实发订单
|
|
|
cumulativeQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
|
EndTime: time.Now().Unix() * 1000,
|
...
|
...
|
@@ -224,8 +224,10 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
//订单数量
|
|
|
//rsp.Statistics["partShipmentQuantity"] = partShipmentQuantity
|
|
|
//rsp.Statistics["allShipmentQuantity"] = allShipmentQuantity
|
|
|
rsp.Statistics["orderQuantity"] = partShipmentQuantity + allShipmentQuantity //所有订单 = 部分发货 + 已经发货
|
|
|
rsp.Statistics["cumulativeQuantity"] = cumulativeQuantity //实发订单 = 部分发货 + 全部发货
|
|
|
//rsp.Statistics["orderQuantity"] = partShipmentQuantity + allShipmentQuantity //所有订单 = 部分发货 + 已经发货
|
|
|
//rsp.Statistics["cumulativeQuantity"] = cumulativeQuantity
|
|
|
rsp.Total = cumulativeQuantity
|
|
|
//实发订单 = 部分发货 + 全部发货
|
|
|
//rsp.Statistics["intentionQuantity"] = intentionQuantity
|
|
|
|
|
|
}
|
...
|
...
|
|