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; import com.isu.gaswellwatch.entity.DeviceOptLog; import com.isu.gaswellwatch.vo.DeviceHistoryVO; import com.isu.gaswellwatch.vo.DeviceVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.Date; import java.util.List; @Mapper @Repository public interface DeviceDao extends BaseMapper { Page page(Page page, @Param("gasWellName") String gasWellName, @Param("gasStationName") String gasStationName, @Param("deviceTypeId") Long deviceTypeId); DeviceVO getDeviceById(@Param("id") Long id); Page historyPage(Page objectPage, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("deviceId") Long deviceId, @Param("tableName") String tableName); Page deviceOptLogPage(Page objectPage, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("deviceId") Long deviceId); List getDeviceVOByIds(@Param("idList")List deviceIdList); }