yuzixiang
2020-05-25 677819231dd95da18e645fbaca6b9557e576a3a3
src/main/java/com/moral/task/HistoryMinutelySubTableTask.java
@@ -2,6 +2,7 @@
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;
@@ -12,6 +13,7 @@
public class HistoryMinutelySubTableTask {
    @Resource
    private HistoryMinutelyService historyMinutelyService;
    @XxlJob("createHistoryMinutelyTb")
    public ReturnT createHistoryMinutelyTb(){
        LocalDateTime time=LocalDateTime.now();
        LocalDateTime time1 = time.plusMonths(1);
@@ -22,7 +24,7 @@
        }
        String yearAndMonth=year+month;
        historyMinutelyService.createHistoryMinutelyTable(yearAndMonth);
        ReturnT returnT = new ReturnT();
        ReturnT returnT = new ReturnT(500, "创表失败!");
        return returnT;
    }
}