package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.entity.SysChangeCertificateUserDO;
import com.skr.mdm.bean.qo.controller.QueryObjectQO;
import com.skr.mdm.bean.vo.system.SysChangeCertificateUserVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author:     Tty
 * @Description:
 * @Date:    2020/11/30 17:58
 * @Version:    1.0
*/

@Repository
public interface SysChangeCertificateUserDao extends BaseMapper<SysChangeCertificateUserDO> {
    /**
     * 根据设备ID删除
     * @param equipmentIdList 设备ID集合
     */
    void deleteByEquipmentIdList(@Param("equipmentIdList") List<Integer> equipmentIdList);

	List<SysChangeCertificateUserVO> selectChangDeviceEquipmentById(QueryObjectQO queryObjectQO);

	void insertCertificateUserList(@Param("changeCertificateId") Integer changeCertificateId, @Param("list") List<Integer> deviceIdList);

	List<Integer> selectDeviceIdList(@Param("changeCertificateId") Integer changeCertificateId);
}