package com.ruoyi.record.mapper;

import java.util.List;
import com.ruoyi.record.domain.RecordBusbarAlarm;
import com.ruoyi.record.domain.VO.RecordBusbarAlarmCountResult;

/**
 * 巡检报警记录Mapper接口
 *
 * @author zangch
 * @date 2024-12-03
 */
public interface RecordBusbarAlarmMapper
{
    /**
     * 查询巡检报警记录
     *
     * @param objId 巡检报警记录主键
     * @return 巡检报警记录
     */
    public RecordBusbarAlarm selectRecordBusbarAlarmByObjId(Long objId);

    /**
     * 查询巡检报警记录列表
     *
     * @param recordBusbarAlarm 巡检报警记录
     * @return 巡检报警记录集合
     */
    public List<RecordBusbarAlarm> selectRecordBusbarAlarmList(RecordBusbarAlarm recordBusbarAlarm);

    /**
     * 新增巡检报警记录
     *
     * @param recordBusbarAlarm 巡检报警记录
     * @return 结果
     */
    public int insertRecordBusbarAlarm(RecordBusbarAlarm recordBusbarAlarm);

    /**
     * 修改巡检报警记录
     *
     * @param recordBusbarAlarm 巡检报警记录
     * @return 结果
     */
    public int updateRecordBusbarAlarm(RecordBusbarAlarm recordBusbarAlarm);

    /**
     * 删除巡检报警记录
     *
     * @param objId 巡检报警记录主键
     * @return 结果
     */
    public int deleteRecordBusbarAlarmByObjId(Long objId);

    /**
     * 批量删除巡检报警记录
     *
     * @param objIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRecordBusbarAlarmByObjIds(Long[] objIds);

    public  List<RecordBusbarAlarmCountResult> recordBusbarAlarmCount(RecordBusbarAlarm recordBusbarAlarm);
}
