...
|
...
|
@@ -256,7 +256,7 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
cumulativeQuantity int
|
|
|
)
|
|
|
cumulativeQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
|
EndTime: time.Now().Unix() * 1000,
|
|
|
EndTime: utils.GetDayEnd().Unix() * 1000,
|
|
|
OrderTypes: domain.UserOrderTypes(domain.Career),
|
|
|
PartnerId: request.PartnerId,
|
|
|
PartnerCategoryId: request.JoinWay,
|
...
|
...
|
@@ -264,6 +264,7 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
rsp.Total = cumulativeQuantity
|
|
|
rsp.Timestamp = time.Now().Unix() * 1000
|
|
|
}
|
|
|
|
|
|
//【特殊处理2】 今天累计数量特殊处理 当前查询时间段内所有订单总数(复用rsp.Total字段)
|
|
|
if request.StartTime > 0 && request.EndTime > 0 {
|
|
|
zero := time.Time(xtime.XTime(time.Now()).DayBefore(0)).Unix()
|
...
|
...
|
@@ -278,8 +279,7 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r |
|
|
todayQuantity int
|
|
|
)
|
|
|
todayQuantity, _, err = OrderDao.OrderStatics(&domain.OrderStaticQuery{
|
|
|
BeginTime: queryOption.BeginTime.Unix() * 1000,
|
|
|
//EndTime: time.Now().Unix() * 1000,
|
|
|
BeginTime: queryOption.BeginTime.Unix() * 1000,
|
|
|
EndTime: queryOption.EndTime.Unix() * 1000,
|
|
|
OrderTypes: domain.UserOrderTypes(domain.Career),
|
|
|
PartnerId: request.PartnerId,
|
...
|
...
|
|