| | |
| | | package com.ruoyi.order.util; |
| | | |
| | | import com.ruoyi.order.service.CommissionService; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | |
| | | /** |
| | |
| | | @Component |
| | | public class TaskUtil { |
| | | |
| | | @Resource |
| | | private CommissionService commissionService; |
| | | |
| | | @Scheduled(cron = "0 0 0 * * ?") |
| | | //@Scheduled(fixedRate = 60000) |
| | | @Scheduled(fixedRate = 60000) |
| | | public void taskMonth() { |
| | | |
| | | commissionService.calculationCommission(); |
| | | } |
| | | |
| | | // 每天晚上23:59:59执行的定时任务 |