package com.zc.business.service; import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.common.core.domain.AjaxResult; import com.zc.business.domain.DcDevice; import com.zc.business.domain.DcEvent; import com.zc.business.domain.DcStakeMark; import com.zc.common.core.httpclient.exception.HttpException; import io.swagger.v3.oas.models.security.SecurityScheme; import org.apache.ibatis.annotations.Param; import sun.reflect.generics.tree.VoidDescriptor; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; /** * 设备Service接口 * * @author zhaoxianglong */ public interface IDcDeviceService extends IService { /** * 添加设备信息 * * @param dcDevice 设备信息 * @return 操作结果 */ boolean addDevice(DcDevice dcDevice); /** * 修改设备信息 * * @param dcDevice 设备信息 * @return 操作结果 */ boolean editDevice(DcDevice dcDevice); /** * 删除设备 * * @param ids 设备ID * @return 操作结果 */ boolean removeDevice(List ids); /** * 获取设备列表 * * @param dcDevice 参数 * @return 结果 */ List pageDevice(DcDevice dcDevice); /** * 获取设备列表 * * @param dcDevice 参数 * @return 结果 */ List listDevice(DcDevice dcDevice); /** * 根据事件数据查询可用设备 */ List deviceListByEvent(DcEvent dcEvent, String deviceType); /** * 批量修改设备 * * @param listDevice 参数 * @return 结果 */ boolean batchUpdate(List listDevice); /** * 根据id查询设备信息 * * @param id 设备ID * @return 设备信息 */ DcDevice getDevice(String id); /** * 根据网段查询设备 * @param networkSegment * @return */ List getDeviceByNetworkSegment(String networkSegment); /** * 根据网段分组查询分组设备 * @return */ Map> getGroupingDeviceByNetworkSegment(); DcStakeMark exampleQueryTheAssociatedPileNumber(DcDevice dcDevice); Long statisticalAnomalyDevice(); List devicePileNumberQueryDevice(Map parameter); List numberOfDevicesByType(DcDevice dcDevice); List numberOfDevicesByType(); List> countTheNumberOfEligibleItems(); List selectNearCamPile(String direction, String startMileage, String endMileage); /** * 查询上游10公里内的情报板 */ AjaxResult selectNearBoard(String stakeMark, String direction); //设备查询-设备名称列表 public List> selectDeviceNameList(DcDevice dcDevice); //设备查询-设备参数属性列表 public List> selectDeviceParameterProperties(DcDevice dcDevice); AjaxResult getDeviceByIotDeviceId(String iotDeviceId) throws HttpException, IOException; //查询收费站摄像头 List selectDeviceTollStationCamera(); //同步收费站摄像头状态 Integer updateTollStationCameraStatus(DcDevice dcDevice); //获取附近收费站摄像头 List selectTollStationCamPile(String direction, String startMileage, String endMileage); //获取设备信息 DcDevice getDcDeviceById(@Param("iotDeviceId") String iotDeviceId); }