2024-11-25 01:04:53 +08:00
|
|
|
package com.isu.gaswellwatch.service;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
import com.isu.gaswellwatch.dto.DeviceCreateDTO;
|
|
|
|
import com.isu.gaswellwatch.dto.DeviceEditDTO;
|
|
|
|
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
|
|
|
|
2024-11-26 03:12:53 +08:00
|
|
|
import java.text.ParseException;
|
2024-11-28 01:30:00 +08:00
|
|
|
import java.util.List;
|
2024-11-26 03:12:53 +08:00
|
|
|
import java.util.Map;
|
|
|
|
|
2024-11-25 01:04:53 +08:00
|
|
|
public interface DeviceService extends IService<Device> {
|
|
|
|
|
2024-11-28 16:38:54 +08:00
|
|
|
Page<DeviceVO> page(Integer currentPage, Integer pageSize, String gasWellName, String gasStationName, Long deviceTypeId, Long blockId);
|
2024-11-25 01:04:53 +08:00
|
|
|
|
|
|
|
void add(DeviceCreateDTO deviceCreateDTO);
|
|
|
|
|
|
|
|
void edit(DeviceEditDTO deviceEditDTO);
|
|
|
|
|
|
|
|
void delete(Long id);
|
|
|
|
|
2024-11-25 15:48:00 +08:00
|
|
|
DeviceVO getDevice(Long id);
|
2024-11-25 01:04:53 +08:00
|
|
|
|
2024-11-26 03:12:53 +08:00
|
|
|
Map<String,String> getDeviceControlData(Long deviceId);
|
2024-11-25 01:04:53 +08:00
|
|
|
|
2024-11-26 18:46:34 +08:00
|
|
|
Page<DeviceHistoryVO> getDeviceHistoryData(Integer currentPage, Integer pageSize, String startTime, String endTime, Long deviceId) throws ParseException;
|
2024-11-26 03:12:53 +08:00
|
|
|
|
2024-11-26 18:46:34 +08:00
|
|
|
Page<DeviceOptLog> getDeviceLogData(Integer currentPage, Integer pageSize, String startTime, String endTime, Long deviceId) throws ParseException;
|
2024-11-28 01:30:00 +08:00
|
|
|
|
|
|
|
List<DeviceVO> getDeviceVOByIds(List<Long> deviceIdList);
|
2024-11-25 01:04:53 +08:00
|
|
|
}
|
|
|
|
|