Commit aabc3389 authored by tangwei's avatar tangwei

曾加场站类

parent e86c3776
package com.yeejoin.amos.boot.module.jxiop.api.dto;
import com.baomidou.mybatisplus.annotation.TableField;
/**
* @description:
* @author: tw
* @createDate: 2023/7/3
*/
public class StationTaksDto {
private String gateway;// '网关',
private String stationNumber;// '场站编号',
}
package com.yeejoin.amos.boot.module.jxiop.api.service;
import com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic;
import java.util.List;
/**
* @description:
* @author: tw
* @createDate: 2023/7/3
*/
public interface IStationDataTask {
//获取场站列表
List<StationBasic> getListStationBasic();
//获取每个场站风机
//获取每个风机信息
//每个分级信息处理
}
package com.yeejoin.amos.boot.module.jxiop.biz.tasks;
import com.yeejoin.amos.boot.module.jxiop.api.service.IStationDataTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* @description: 定时获取场站最新数据
* @author: tw
* @createDate: 2023/7/3
*/
@Component
public class StationDataTask {
@Autowired
IStationDataTask stationDataTask;
//定时获取场站指标最新数据
@Scheduled(cron = "${station.task.cron}")
public void getStationDataTask(){
//获取所有场站信息
stationDataTask
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment