New file |
| | |
| | | package com.moral.task; |
| | | |
| | | import com.moral.util.AlarmUtils_2; |
| | | import com.xxl.job.core.biz.model.ReturnT; |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | @Component |
| | | public class DeviceAdjustValueTimingTask { |
| | | private static transient Logger logger = LoggerFactory.getLogger(DeviceAdjustValueTimingTask.class); |
| | | |
| | | @XxlJob("RabbitMQRealtimeMinutely") |
| | | public ReturnT insertRabbitMQRealtimeMinutely(String params) { |
| | | AlarmUtils_2.sendMail("357328213@qq.com","任务调度测试!","任务调度成功!"); |
| | | ReturnT returnT = new ReturnT(500, "dayinxinxi"); |
| | | return returnT; |
| | | } |
| | | |
| | | } |