package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysController;
import com.ruoyi.system.domain.SysDevice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysControllerMapper {

        void insertsyscontroller(@Param("controllerId")String controllerId,
                                 @Param("timestamp")String timestamp,
                                 @Param("fleetId")String fleetId,
                                 @Param("name")String name,
                                 @Param("path")String path);
        void insertsyscontrollercmd(@Param("controllerId")String controllerId,
                                 @Param("timestamp")String timestamp,
                                 @Param("fleetId")String fleetId,
                                 @Param("name")String name,
                                 @Param("path")String path);

        void insertsyscontrollerfault(@Param("controllerId")String controllerId,
                                    @Param("timestamp")String timestamp,
                                    @Param("fleetId")String fleetId,
                                    @Param("name")String name,
                                    @Param("path")String path);

        Integer selectsyscontrollercount(@Param("path")String paht);
        Integer selectsyscontrollercountcmd(@Param("path")String paht);
        Integer selectsyscontrollercountfault(@Param("path")String paht);


        void updatesyscontroller(@Param("controllerId")String controllerId,
                                 @Param("timestamp")String timestamp,
                                 @Param("fleetId")String fleetId,
                                 @Param("name")String name,
                                 @Param("path")String path);
        SysController selectcontrollerpath(@Param("path")String path);

        List<String> selectall();

        SysDevice selectjingweidu(@Param("tableName")String tableName,@Param("Name")String Name);

}
