|
@@ -188,8 +188,8 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
@@ -188,8 +188,8 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
188
|
//统计数据
|
188
|
//统计数据
|
189
|
if request.PageIndex == 0 {
|
189
|
if request.PageIndex == 0 {
|
190
|
var (
|
190
|
var (
|
191
|
- partShipmentQuantity, allShipmentQuantity int
|
|
|
192
|
- cumulativeQuantity int
|
191
|
+ //partShipmentQuantity, allShipmentQuantity int
|
|
|
192
|
+ cumulativeQuantity int
|
193
|
)
|
193
|
)
|
194
|
//部分发货的订单数量
|
194
|
//部分发货的订单数量
|
195
|
//partShipmentQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
195
|
//partShipmentQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
@@ -200,13 +200,13 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
@@ -200,13 +200,13 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
200
|
// OrderStatus: domain.OrderStatusDeliverSome,
|
200
|
// OrderStatus: domain.OrderStatusDeliverSome,
|
201
|
//})
|
201
|
//})
|
202
|
//全部发货的订单数量
|
202
|
//全部发货的订单数量
|
203
|
- allShipmentQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
|
204
|
- EndTime: request.EndTime,
|
|
|
205
|
- BeginTime: request.StartTime,
|
|
|
206
|
- OrderType: domain.OrderReal,
|
|
|
207
|
- PartnerId: header.UserId,
|
|
|
208
|
- //OrderStatus: domain.OrderStatusDeliverAll,
|
|
|
209
|
- })
|
203
|
+ //allShipmentQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
|
204
|
+ // EndTime: request.EndTime,
|
|
|
205
|
+ // BeginTime: request.StartTime,
|
|
|
206
|
+ // OrderType: domain.OrderReal,
|
|
|
207
|
+ // PartnerId: header.UserId,
|
|
|
208
|
+ // //OrderStatus: domain.OrderStatusDeliverAll,
|
|
|
209
|
+ //})
|
210
|
//累计实发订单
|
210
|
//累计实发订单
|
211
|
cumulativeQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
211
|
cumulativeQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
212
|
EndTime: time.Now().Unix() * 1000,
|
212
|
EndTime: time.Now().Unix() * 1000,
|
|
@@ -224,8 +224,10 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
@@ -224,8 +224,10 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
224
|
//订单数量
|
224
|
//订单数量
|
225
|
//rsp.Statistics["partShipmentQuantity"] = partShipmentQuantity
|
225
|
//rsp.Statistics["partShipmentQuantity"] = partShipmentQuantity
|
226
|
//rsp.Statistics["allShipmentQuantity"] = allShipmentQuantity
|
226
|
//rsp.Statistics["allShipmentQuantity"] = allShipmentQuantity
|
227
|
- rsp.Statistics["orderQuantity"] = partShipmentQuantity + allShipmentQuantity //所有订单 = 部分发货 + 已经发货
|
|
|
228
|
- rsp.Statistics["cumulativeQuantity"] = cumulativeQuantity //实发订单 = 部分发货 + 全部发货
|
227
|
+ //rsp.Statistics["orderQuantity"] = partShipmentQuantity + allShipmentQuantity //所有订单 = 部分发货 + 已经发货
|
|
|
228
|
+ //rsp.Statistics["cumulativeQuantity"] = cumulativeQuantity
|
|
|
229
|
+ rsp.Total = cumulativeQuantity
|
|
|
230
|
+ //实发订单 = 部分发货 + 全部发货
|
229
|
//rsp.Statistics["intentionQuantity"] = intentionQuantity
|
231
|
//rsp.Statistics["intentionQuantity"] = intentionQuantity
|
230
|
|
232
|
|
231
|
}
|
233
|
}
|