package com.ruoyi.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysFaultMapper {

    void insertfault(@Param("faultId") String faultId,
                     @Param("faultdescs") String faultdescs,
                     @Param("faultstatus") String faultstatus,
                     @Param("createtime") String createtime,
                     @Param("messageType") String messageType,
                     @Param("controllerId") String controllerId,
                     @Param("deviceId") String deviceId,
                     @Param("longitude") String longitude,
                     @Param("latitude") String latitude,
                     @Param("readpeople") String readpeople);

    void updatefault(@Param("faultstatus")String faultstatus,
                     @Param("messageType")String messageType,
                     @Param("longitude")String longitude,
                     @Param("latitude")String latitude,
                     @Param("faultdescs")String faultdescs,
                     @Param("controllerId")String controllerId,
                     @Param("deviceId")String deviceId,
                     @Param("createtime")String createtime);


    Integer selectfaultcount(@Param("fleetId")String fleetId);

    void createmessage(@Param("tableName")String tableName);

}
