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

38 lines
1.3 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-11-25 01:04:53 +08:00
import java.text.ParseException;
import java.util.Map;
2024-11-25 01:04:53 +08:00
public interface DeviceService extends IService<Device> {
2024-11-25 15:48:00 +08:00
Page<DeviceVO> page(Integer currentPage, Integer pageSize, String gasWellName, String gasStationName, Long deviceTypeId);
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
void saveDeviceControlData(Map<String, String> controlData, 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
void wellCtl(Integer isOpen, Long deviceId);
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-25 01:04:53 +08:00
}