订单统计 根据支付时间统计
This commit is contained in:
parent
ddf8a89cb0
commit
69bb3339dc
|
|
@ -54,8 +54,8 @@ public class ShopOrderStatisticServiceImpl extends ServiceImpl<ShopOrderStatisti
|
|||
// 获取前一天的结束时间(23:59:59)
|
||||
DateTime endOfDay = DateUtil.endOfDay(yesterday);
|
||||
List<OrderInfo> orderInfos = orderInfoService.list(new QueryWrapper()
|
||||
.ge(OrderInfo::getCreateTime, startOfDay)
|
||||
.le(OrderInfo::getCreateTime, endOfDay)
|
||||
.ge(OrderInfo::getPaidTime, startOfDay)
|
||||
.le(OrderInfo::getPaidTime, endOfDay)
|
||||
.ne(OrderInfo::getStatus, "unpaid").ne(OrderInfo::getStatus, "cancelled"));
|
||||
|
||||
// 统计充值记录
|
||||
|
|
|
|||
Loading…
Reference in New Issue