package com.ruoyi.system.mapper;
|
|
import java.util.List;
|
import org.apache.ibatis.annotations.Param;
|
import com.ruoyi.system.domain.TDetectionCabinet;
|
|
/**
|
* 检测柜 Mapper 接口
|
*
|
* @author ruoyi
|
*/
|
public interface TDetectionCabinetMapper
|
{
|
/**
|
* 查询指定的未删除检测柜。
|
*
|
* @param cabinetId 检测柜主键
|
* @return 检测柜信息
|
*/
|
TDetectionCabinet selectDetectionCabinetById(Long cabinetId);
|
|
/**
|
* 按设备综合条件、创建时间及状态条件查询检测柜。
|
*
|
* @param detectionCabinet 查询条件
|
* @return 检测柜列表
|
*/
|
List<TDetectionCabinet> selectDetectionCabinetList(TDetectionCabinet detectionCabinet);
|
|
/**
|
* 根据设备编码查询未删除检测柜。
|
*
|
* @param cabinetCode 设备编码
|
* @return 检测柜信息
|
*/
|
TDetectionCabinet selectByCabinetCode(String cabinetCode);
|
|
/**
|
* 根据规范化后的 MAC 地址查询未删除检测柜。
|
*
|
* @param macAddress MAC 地址
|
* @return 检测柜信息
|
*/
|
TDetectionCabinet selectByMacAddress(String macAddress);
|
|
/**
|
* 新增检测柜。
|
*
|
* @param detectionCabinet 检测柜信息
|
* @return 影响行数
|
*/
|
int insertDetectionCabinet(TDetectionCabinet detectionCabinet);
|
|
/**
|
* 修改检测柜基础信息。
|
*
|
* @param detectionCabinet 检测柜信息
|
* @return 影响行数
|
*/
|
int updateDetectionCabinet(TDetectionCabinet detectionCabinet);
|
|
/**
|
* 修改检测柜启禁用状态。
|
*
|
* @param detectionCabinet 检测柜主键、目标状态及更新人
|
* @return 影响行数
|
*/
|
int updateDetectionCabinetStatus(TDetectionCabinet detectionCabinet);
|
|
/**
|
* 将检测柜标记为逻辑删除。
|
*
|
* @param cabinetId 检测柜主键
|
* @param updateBy 更新人
|
* @return 影响行数
|
*/
|
int deleteDetectionCabinetById(@Param("cabinetId") Long cabinetId, @Param("updateBy") String updateBy);
|
}
|