| | |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | | import com.xxl.job.core.log.XxlJobLogger; |
| | | |
| | | //@Component |
| | | @Component |
| | | public class HistoryTableInsertTask { |
| | | private static transient Logger logger = LoggerFactory.getLogger(HistoryTableInsertTask.class); |
| | | |
| | |
| | | @Resource |
| | | private HistoryDailyService historyDailyService; |
| | | |
| | | //@XxlJob("historyMinutely") |
| | | @XxlJob("historyMinutely") |
| | | public ReturnT insertHistoryMinutelyTable(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | int year = time.getYear(); |
| | |
| | | return returnT; |
| | | } |
| | | |
| | | //@XxlJob("historyHourly") |
| | | @XxlJob("historyHourly") |
| | | public ReturnT insertHistoryHourlyTable(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | int year = time.getYear(); |
| | |
| | | return returnT; |
| | | } |
| | | |
| | | //@XxlJob("historyDaily") |
| | | @XxlJob("historyDaily") |
| | | public ReturnT insertHistoryDailyTable(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | LocalDateTime endTime = time.truncatedTo(ChronoUnit.DAYS); |