大屏数据
This commit is contained in:
@ -4,10 +4,16 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.fuyuanshen.common.mybatis.core.page.PageQuery;
|
||||
import com.fuyuanshen.equipment.domain.DeviceAlarm;
|
||||
import com.fuyuanshen.equipment.domain.bo.DeviceAlarmBo;
|
||||
import com.fuyuanshen.equipment.domain.vo.AlarmStatisticsVo;
|
||||
import com.fuyuanshen.equipment.domain.vo.DeviceAlarmVo;
|
||||
import com.fuyuanshen.equipment.domain.vo.MonthlyAlarmStatisticsVo;
|
||||
import com.fuyuanshen.common.mybatis.core.mapper.BaseMapperPlus;
|
||||
import org.apache.ibatis.annotations.MapKey;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 设备告警Mapper接口
|
||||
*
|
||||
@ -23,7 +29,7 @@ public interface DeviceAlarmMapper extends BaseMapperPlus<DeviceAlarm, DeviceAla
|
||||
* @param bo 设备告警
|
||||
* @return 设备告警
|
||||
*/
|
||||
Page<DeviceAlarmVo> selectVoPage( Page pageQuery,@Param("bo") DeviceAlarmBo bo);
|
||||
Page<DeviceAlarmVo> selectVoPage(Page pageQuery, @Param("bo") DeviceAlarmBo bo);
|
||||
|
||||
/**
|
||||
* 根据设备IMEI查询最新的一条告警数据
|
||||
@ -34,4 +40,25 @@ public interface DeviceAlarmMapper extends BaseMapperPlus<DeviceAlarm, DeviceAla
|
||||
DeviceAlarmVo selectLatestByDeviceImei(@Param("deviceImei") String deviceImei);
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
* 获取实时告警列表
|
||||
*
|
||||
* @return 设备告警列表
|
||||
*/
|
||||
List<DeviceAlarmVo> getRealtimeAlarm();
|
||||
|
||||
/**
|
||||
* 获取报警统计数据
|
||||
*
|
||||
* @return 报警统计数据
|
||||
*/
|
||||
AlarmStatisticsVo getAlarmStatistics();
|
||||
|
||||
/**
|
||||
* 获取最近一年每月告警统计数据
|
||||
*
|
||||
* @return 每月告警统计数据
|
||||
*/
|
||||
@MapKey("key")
|
||||
List<Map<String, Object>> getMonthlyAlarmStatistics();
|
||||
}
|
||||
@ -40,4 +40,13 @@ public interface DeviceFenceAccessRecordMapper extends BaseMapperPlus<DeviceFenc
|
||||
Page<DeviceFenceAccessRecordVo> selectVoPageByXml(Page<DeviceFenceAccessRecord> page, @Param("bo") DeviceFenceAccessRecordBo bo);
|
||||
|
||||
|
||||
/**
|
||||
* 查询设备最新的围栏记录
|
||||
*
|
||||
* @param deviceId 设备ID
|
||||
* @return 围栏记录
|
||||
*/
|
||||
DeviceFenceAccessRecordVo selectLatestRecordByDeviceId(String deviceId);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -105,6 +105,9 @@ public interface DeviceMapper extends BaseMapper<Device> {
|
||||
*/
|
||||
List<Map<String, Object>> getEquipmentUsageData(@Param("deviceTypeId") Long deviceTypeId, @Param("range") Integer range);
|
||||
|
||||
// 在DeviceMapper.java中添加方法
|
||||
DeviceOverviewVo getDeviceOverview();
|
||||
|
||||
// 在DeviceMapper.java中添加方法
|
||||
int getUsageDataForMonth(@Param("deviceId") Long deviceId,
|
||||
@Param("year") int year,
|
||||
@ -117,4 +120,19 @@ public interface DeviceMapper extends BaseMapper<Device> {
|
||||
* @return 设备信息
|
||||
*/
|
||||
Device selectDeviceByImei(@Param("deviceImei") String deviceImei);
|
||||
|
||||
/**
|
||||
* 获取设备通讯方式统计数据
|
||||
*
|
||||
* @return 通讯方式统计列表
|
||||
*/
|
||||
List<DeviceCommunicationModeStatisticsVo> getDeviceCommunicationModeStatistics();
|
||||
|
||||
/**
|
||||
* 获取设备使用频次统计
|
||||
*
|
||||
* @param days 天数
|
||||
* @return 设备使用频次统计列表
|
||||
*/
|
||||
List<DeviceUsageFrequencyVo> getDeviceUsageFrequency(@Param("days") int days);
|
||||
}
|
||||
Reference in New Issue
Block a user