From 88e4de4eabe790e97394fd020d96d045991d157e Mon Sep 17 00:00:00 2001 From: 于紫祥_1901 <email@yuzixiang_1910> Date: Tue, 15 Dec 2020 14:08:55 +0800 Subject: [PATCH] AQI数据插入任务update --- src/main/java/com/moral/task/HistoryMinutelySubTableTask.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/moral/task/HistoryMinutelySubTableTask.java b/src/main/java/com/moral/task/HistoryMinutelySubTableTask.java index 0619f1c..1e77ceb 100644 --- a/src/main/java/com/moral/task/HistoryMinutelySubTableTask.java +++ b/src/main/java/com/moral/task/HistoryMinutelySubTableTask.java @@ -1,20 +1,21 @@ package com.moral.task; +import java.time.LocalDateTime; + +import javax.annotation.Resource; + import com.moral.service.HistoryMinutelyService; import com.xxl.job.core.biz.model.ReturnT; import com.xxl.job.core.handler.annotation.XxlJob; -import org.springframework.format.datetime.joda.LocalDateTimeParser; -import org.springframework.stereotype.Component; -import javax.annotation.Resource; -import java.time.LocalDateTime; +import org.springframework.stereotype.Component; @Component public class HistoryMinutelySubTableTask { @Resource private HistoryMinutelyService historyMinutelyService; @XxlJob("createHistoryMinutelyTb") - public ReturnT createHistoryMinutelyTb(){ + public ReturnT createHistoryMinutelyTb(String param){ LocalDateTime time=LocalDateTime.now(); LocalDateTime time1 = time.plusMonths(1); String year = String.valueOf(time1.getYear()); @@ -24,7 +25,7 @@ } String yearAndMonth=year+month; historyMinutelyService.createHistoryMinutelyTable(yearAndMonth); - ReturnT returnT = new ReturnT(); + ReturnT returnT = new ReturnT(500, "���������������"); return returnT; } } -- Gitblit v1.8.0