| | |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | | import com.xxl.job.core.log.XxlJobLogger; |
| | | |
| | | //@Component |
| | | @Component |
| | | public class RabbitMQInsertTask { |
| | | private static transient Logger logger = LoggerFactory.getLogger(RabbitMQInsertTask.class); |
| | | |
| | |
| | | @Qualifier("organization_data") |
| | | private TopicExchange organization_data; |
| | | |
| | | //@XxlJob("RabbitMQRealtimeMinutely") |
| | | @XxlJob("RabbitMQRealtimeMinutely") |
| | | public ReturnT insertRabbitMQRealtimeMinutely(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | int year = time.getYear(); |
| | |
| | | return returnT; |
| | | } |
| | | |
| | | //@XxlJob("RabbitMQRealtimeEveryFiveMinutes") |
| | | @XxlJob("RabbitMQRealtimeEveryFiveMinutes") |
| | | public ReturnT insertRabbitMQRealtimeEveryFiveMinutes(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | int year = time.getYear(); |
| | |
| | | return returnT; |
| | | } |
| | | |
| | | //@XxlJob("RabbitMQMinutely") |
| | | @XxlJob("RabbitMQMinutely") |
| | | public ReturnT insertRabbitMQMinutely(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | int year = time.getYear(); |
| | |
| | | return returnT; |
| | | } |
| | | |
| | | //@XxlJob("RabbitMQHourly") |
| | | @XxlJob("RabbitMQHourly") |
| | | public ReturnT insertRabbitMQHourly(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | Map organizationIdMap = JSON.parseObject(params); |
| | |
| | | return returnT; |
| | | } |
| | | |
| | | //@XxlJob("RabbitMQDaily") |
| | | @XxlJob("RabbitMQDaily") |
| | | public ReturnT insertRabbitMQDaily(String params) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | Map organizationIdMap = JSON.parseObject(params); |