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;
|
2024-11-26 03:12:53 +08:00
|
|
|
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;
|
|
|
|
|
2024-11-26 03:12:53 +08:00
|
|
|
import java.util.Date;
|
|
|
|
|
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,
|
|
|
|
@Param("deviceTypeId") Long deviceTypeId);
|
2024-11-25 01:04:53 +08:00
|
|
|
|
|
|
|
|
2024-11-25 15:48:00 +08:00
|
|
|
DeviceVO getDeviceById(@Param("id") Long id);
|
2024-11-26 03:12:53 +08:00
|
|
|
|
|
|
|
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-25 01:04:53 +08:00
|
|
|
}
|
|
|
|
|