| | |
| | | package cn.exrick.xboot.your.schedulings; |
| | | |
| | | import cn.exrick.xboot.your.entity.*; |
| | | import cn.exrick.xboot.your.service.*; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | @Autowired |
| | | private IDuoZhengService iDuoZhengService; |
| | | |
| | | /** |
| | | * 每天21点执行 |
| | | * 1.将配送日期小于10天前的订单删除(t_order_task),同时删除相应订单详情数据(t_order_detail) |
| | | * 2.将配送日期小于20天前的订单从原始订单数据表删除(t_order_original),同时删除相应原始订单详情数据(t_order_original_detail) |
| | | */ |
| | | |
| | | @Scheduled(cron="0 0 21 * * ?")//每晚下午9点执行 |
| | | //@Scheduled(cron="0 33 17 * * ?")//测试 |
| | | public void execute(){ |