作者 yangfu

订单列表修改

... ... @@ -148,14 +148,16 @@ func OrderList(header *protocol.RequestHeader, request *protocol.OrderListReques
if request.PageIndex == 0 {
//部分发货的订单数量
rsp.Statistics["partShipmentQuantity"], _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
EndTime: time.Now().Unix() * 1000,
EndTime: request.EndTime,
BeginTime: request.StartTime,
OrderType: domain.OrderReal,
PartnerId: header.UserId,
OrderStatus: domain.OrderStatusDeliverSome,
})
//全部发货的订单数量
rsp.Statistics["allShipmentQuantity"], _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
EndTime: time.Now().Unix() * 1000,
EndTime: request.EndTime,
BeginTime: request.StartTime,
OrderType: domain.OrderReal,
PartnerId: header.UserId,
OrderStatus: domain.OrderStatusDeliverAll,
... ... @@ -165,13 +167,15 @@ func OrderList(header *protocol.RequestHeader, request *protocol.OrderListReques
)
//累计实发订单
cumulativeQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
EndTime: time.Now().Unix() * 1000,
EndTime: request.EndTime,
BeginTime: request.StartTime,
OrderType: domain.OrderReal,
PartnerId: header.UserId,
})
//累计意向订单
intentionQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
EndTime: time.Now().Unix() * 1000,
EndTime: request.EndTime,
BeginTime: request.StartTime,
OrderType: domain.OrderIntention,
PartnerId: header.UserId,
})
... ...