package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.bean.bo.InstructMessageBO;
import com.skr.mdm.bean.qo.cmd.CmdQO;
import com.skr.mdm.bean.vo.equipment.SendCmdMessageInfoVO;
import com.skr.mdm.entity.DeviceInstructRestoreFactoryDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author nfq
 * @date 2022-12-09 18:26
 */
@Repository
public interface DeviceInstructRestoreFactoryDao extends BaseMapper<DeviceInstructRestoreFactoryDO> {

    /**
     * 根据设备ID删除
     * @param equipmentIdList 设备ID集合
     */
    void deleteByEquipmentIdList(@Param("equipmentIdList") List<Integer> equipmentIdList);

	void updateBatchIdsList(@Param("list") List<DeviceInstructRestoreFactoryDO> restoreFactoryDOList);

	void insertInstructRestoreFactory(InstructMessageBO instructMessageBO);

	List<SendCmdMessageInfoVO> selectSendInfoList(CmdQO cmdMessageBO);
}