获取设备使用数据

This commit is contained in:
2025-09-09 16:06:34 +08:00
parent 7e87971c0b
commit 832234269d
5 changed files with 32 additions and 26 deletions

View File

@ -99,11 +99,11 @@ public interface DeviceMapper extends BaseMapper<Device> {
/**
* 获取设备使用数据
*
* @param deviceId 设备ID
* @param deviceTypeId 设备ID
* @param range 时间范围 1:半年 2:一年
* @return 每月使用数据列表
*/
List<Map<String, Object>> getEquipmentUsageData(Long deviceId, Integer range);
List<Map<String, Object>> getEquipmentUsageData(@Param("deviceTypeId") Long deviceTypeId, @Param("range") Integer range);
// 在DeviceMapper.java中添加方法
int getUsageDataForMonth(@Param("deviceId") Long deviceId,