| | |
| | | */ |
| | | public interface DeviceService extends IService<Device> { |
| | | |
| | | //根据站点id获取设备列表 |
| | | List<Device> getDevicesByMonitorPointId(Integer monitorPointId); |
| | | |
| | | //根据mac获取因子信息 |
| | |
| | | */ |
| | | public interface HistoryDailyService extends IService<HistoryDaily> { |
| | | |
| | | //获取某设备某因子月均值 |
| | | Map<String, Object> getMonthAvg(Map<String, Object> params); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface HistoryHourlyService extends IService<HistoryHourly> { |
| | | |
| | | //根据mac获取小时AQI |
| | | Map<String,Object> getHourlyAqiByMac(String mac); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface MenuService extends IService<Menu> { |
| | | |
| | | //获取该组织层级菜单 |
| | | Map<String,Object> selectMenusByOrgId(Integer orgId); |
| | | |
| | | //获取该组织菜单列表 |
| | | List<Menu> getMenuList(Integer orgId); |
| | | } |
| | |
| | | |
| | | QueryWrapper<SysArea> sysAreaQueryWrapper = new QueryWrapper<>(); |
| | | sysAreaQueryWrapper.select("area_code", "area_name", "parent_code").in("area_code", cityCodes); |
| | | //获取当前用户拥有权限的地图列表 |
| | | List<SysArea> allAreas = sysAreaMapper.selectList(sysAreaQueryWrapper); |
| | | |
| | | //第一级城市 |
| | |
| | | */ |
| | | public interface CityAqiConfigService extends IService<CityAqiConfig> { |
| | | |
| | | //获取aqi城市配置 |
| | | List<CityAqiConfig> getCityAqiConfigs(); |
| | | |
| | | } |
| | |
| | | |
| | | public interface HistoryAqiService extends IService<HistoryAqi> { |
| | | |
| | | //墨迹aqi数据insert |
| | | void insertHistoryAqi(); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface HistoryDailyService extends IService<HistoryDaily> { |
| | | |
| | | //日数据统计 |
| | | void insertHistoryDaily(); |
| | | |
| | | } |
| | |
| | | //5分钟表创建 |
| | | void createTable(String timeUnits); |
| | | |
| | | //5分钟数据统计 |
| | | //5分钟数据insert |
| | | void insertHistoryFiveMinutely(); |
| | | |
| | | } |
| | |
| | | |
| | | public interface HistoryMinutelyService { |
| | | |
| | | //分钟表创建 |
| | | void createTable(String timeUnits); |
| | | |
| | | //从分钟表统计5分钟数据 |
| | | List<Map<String, Object>> getHistoryFiveMinutelyData(Map<String, Object> params); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface HistoryMonthlyService extends IService<HistoryMonthly> { |
| | | |
| | | //月数据统计 |
| | | void insertHistoryMonthly(); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface HistoryWeeklyService extends IService<HistoryWeekly> { |
| | | |
| | | //周数据统计 |
| | | void insertHistoryWeekly(); |
| | | |
| | | } |
| | |
| | | @Autowired |
| | | private HistoryAqiService historyAqiService; |
| | | |
| | | //墨迹小时aqi数据接入 |
| | | @XxlJob("insertHistoryAqi") |
| | | public ReturnT insertHistoryAqi() { |
| | | try { |
| | |
| | | */ |
| | | public interface HistoryHourlyService extends IService<HistoryHourly> { |
| | | |
| | | //小时数据insert |
| | | void insertHistoryHourly(Map<String, Object> data); |
| | | |
| | | } |
| | |
| | | */ |
| | | public interface HistoryMinutelyService { |
| | | |
| | | //分钟数据insert |
| | | void insertHistoryMinutely(Map<String, Object> data); |
| | | |
| | | } |