gasWellWatch/src/main/java/com/isu/gaswellwatch/dao/DeviceDao.java

43 lines
1.6 KiB
Java
Raw Normal View History

2024-11-25 01:04:53 +08:00
package com.isu.gaswellwatch.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.isu.gaswellwatch.entity.Device;
2024-11-26 18:46:34 +08:00
import com.isu.gaswellwatch.entity.DeviceOptLog;
import com.isu.gaswellwatch.vo.DeviceHistoryVO;
2024-11-25 15:48:00 +08:00
import com.isu.gaswellwatch.vo.DeviceVO;
2024-11-25 01:04:53 +08:00
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.Date;
2024-11-28 01:30:00 +08:00
import java.util.List;
2024-11-25 01:04:53 +08:00
@Mapper
@Repository
public interface DeviceDao extends BaseMapper<Device> {
2024-11-25 15:48:00 +08:00
Page<DeviceVO> page(Page<Object> page,
@Param("gasWellName") String gasWellName,
@Param("gasStationName") String gasStationName,
2024-11-28 16:38:54 +08:00
@Param("deviceTypeId") Long deviceTypeId,
@Param("blockId") Long blockId);
2024-11-25 01:04:53 +08:00
2024-11-25 15:48:00 +08:00
DeviceVO getDeviceById(@Param("id") Long id);
Page<DeviceHistoryVO> historyPage(Page<Object> objectPage,
@Param("startTime")Date startTime,
@Param("endTime")Date endTime,
@Param("deviceId") Long deviceId,
@Param("tableName") String tableName);
2024-11-26 18:46:34 +08:00
Page<DeviceOptLog> deviceOptLogPage(Page<DeviceOptLog> objectPage,
@Param("startTime")Date startTime,
@Param("endTime")Date endTime,
@Param("deviceId") Long deviceId);
2024-11-28 01:30:00 +08:00
List<DeviceVO> getDeviceVOByIds(@Param("idList")List<Long> deviceIdList);
2024-11-25 01:04:53 +08:00
}