package com.yeejoin.equipmanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarm;
import com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarmLog;

import java.util.List;

/**
 * @author keyong
 * @title: IEquipmentSpecificAlarmLogService
 * <pre>
 * @description: TODO
 * </pre>
 * @date 2021/8/19 10:36
 */
public interface IEquipmentSpecificAlarmLogService extends IService<EquipmentSpecificAlarmLog> {

    /**
     * 修改记录表中confirmType，数据变更未已处理
     */
    void updateAlarmLogByIotCodeAndIndexKey(EquipmentSpecificAlarm equipmentSpecificAlarm);

    /**
     * 通过告警ID，获取告警Log数据
     * @param equipmentSpecificAlarmId
     * @param isConfirm '' 为全部数据 0 为未确认 1为已确认
     * @return
     */
    List<EquipmentSpecificAlarmLog> getIsConfirmByAlarmId(Long equipmentSpecificAlarmId, String isConfirm);
}
