package com.gxwebsoft.common.core.utils;

import com.gxwebsoft.shop.service.OrderService;

import javax.annotation.Resource;

/**
 * 自动执行计划
 *
 * @author WebSoft
 * @since 2018-12-14 08:38:19
 */
public class SchedulingUtil {
  @Resource
  private OrderService orderService;

//  @Scheduled(cron="*/5 * * * * *")
//  public void reportCurrentTime() {
//    System.out.println("定时任务开始 = " + new Date());
//    int count = orderService.count(new LambdaQueryWrapper<Order>().eq(Order::getPayStatus, 20));
////      orderService.removeOrderByTimeOut();
//    System.out.println("count = " + count);
//  }
}
