| package com.moral.api.task; | 
|   | 
| import com.alibaba.fastjson.JSON; | 
| import com.alibaba.fastjson.JSONObject; | 
| import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; | 
| import com.moral.api.entity.*; | 
| import com.moral.api.service.*; | 
| import com.xxl.job.core.biz.model.ReturnT; | 
| import com.xxl.job.core.context.XxlJobHelper; | 
| import com.xxl.job.core.handler.annotation.XxlJob; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Component; | 
|   | 
| import java.text.ParseException; | 
| import java.text.SimpleDateFormat; | 
| import java.util.*; | 
|   | 
| /** | 
|  * @program: screen | 
|  * @description: 提示信息自动生成接口 | 
|  * @author: lizijie | 
|  * @create: 2021-10-12 08:53 | 
|  **/ | 
| @Component | 
| public class WindModelTask { | 
|   | 
|     @Autowired | 
|     private WindModelService windModelService; | 
|   | 
|     @XxlJob("windModelInsert") | 
|     public ReturnT windModelInsert(){ | 
|         try { | 
|             windModelService.windFieldStatistics(); | 
|         } catch (Exception e) { | 
|             XxlJobHelper.log(e.getMessage()); | 
|             return new ReturnT(ReturnT.FAIL_CODE, e.getMessage()); | 
|         } | 
|         return ReturnT.SUCCESS; | 
|     } | 
| } |