package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.entity.ContentInformUserDO;
import com.skr.mdm.bean.qo.BaseQueryQO;
import com.skr.mdm.bean.vo.content.ContentInformUserVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author nfq
 * @date 2022-12-09 16:10
 */
@Repository
public interface ContentInformUserDao extends BaseMapper<ContentInformUserDO> {

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

    void insertBatch(@Param("list") List<ContentInformUserDO> contentInformUserDOList);

    List<ContentInformUserVO> listContentInformUserVO(@Param("informId") Integer informId, @Param("param") BaseQueryQO baseQueryQO);

    List<Integer> listEquipmentIdByInformIds(@Param("list") List<Integer> list);


}