gasWellWatch/src/main/java/com/isu/gaswellwatch/service/DeviceService.java

44 lines
1.7 KiB
Java
Raw Normal View History

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;
import com.isu.gaswellwatch.vo.DeviceHistoryVO;
2024-11-25 15:48:00 +08:00
import com.isu.gaswellwatch.vo.DeviceVO;
2024-12-12 14:52:02 +08:00
import jakarta.servlet.http.HttpServletResponse;
2024-11-25 01:04:53 +08:00
import java.text.ParseException;
2024-11-28 01:30:00 +08:00
import java.util.List;
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
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 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-12-10 21:17:08 +08:00
List<DeviceHistoryVO> getPressureChartData(Long deviceId, String startTime, String endTime);
List<DeviceHistoryVO> getSwitchStatusData(Long deviceId, String startTime, String endTime,String deviceProduct);
2024-12-12 14:52:02 +08:00
void exportHistoryData(HttpServletResponse response, Long deviceId, String startTime, String endTime) throws ParseException;
2024-11-25 01:04:53 +08:00
}