package com.common.service; import com.common.entity.DeviceReceiveLog; import com.github.pagehelper.PageInfo; import java.time.LocalDateTime; import java.util.List; import java.util.Map; public interface DeviceReceiveLogService { // 插入操作 Long insertLog(DeviceReceiveLog log); int batchInsertLogs(List logs); // 查询操作 DeviceReceiveLog getById(Long id); List getByDeviceId(Integer deviceId); List getByCollectId(Integer collectId); List getByTimeRange(LocalDateTime startTime, LocalDateTime endTime); List getByCondition(DeviceReceiveLog condition); PageInfo getByConditionPage(DeviceReceiveLog condition, Integer pageNum, Integer pageSize); // 统计操作 Long countByCondition(DeviceReceiveLog condition); List> getDeviceLogStatistics(); // 删除操作 int deleteOldLogs(LocalDateTime beforeTime); // 获取最近日志 List getRecentLogs(Integer limit); }