| | |
| | | package cn.exrick.xboot.your.controller.wx; |
| | | |
| | | import cn.exrick.xboot.core.common.utils.ObjectUtil; |
| | | import cn.exrick.xboot.core.common.utils.ResultUtil; |
| | | |
| | | import cn.exrick.xboot.your.entity.OrderStatusCount; |
| | | import cn.exrick.xboot.your.entity.SignCount; |
| | | import cn.exrick.xboot.your.entity.Suggest; |
| | | |
| | | import cn.exrick.xboot.your.service.IOrderTaskService; |
| | | import cn.exrick.xboot.your.service.ISignCountService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import javax.rmi.CORBA.Util; |
| | | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | | @Component |
| | | @Configuration //1.主要用于标记配置类,兼备Component的效果。 |
| | |
| | | // @Scheduled(cron = "0/5 * * * * ?") |
| | | // @Scheduled(cron = "0 */1 * * * ?") |
| | | // @Scheduled(cron = "0 0 2 * * ?")//每天凌晨两点执行一次 |
| | | @Scheduled(cron = " 0 0 */1 * * ?")//每小时执行一次 |
| | | @Scheduled(cron = " 0 30 2 * * ?")//每天2.30执行一次 |
| | | //或直接指定时间间隔,例如:5秒 |
| | | //@Scheduled(fixedRate=5000) |
| | | private void configureTasks() { |
| | |
| | | } |
| | | return times; |
| | | } |
| | | } |
| | | } |