package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.entity.ContentDocumentDO;
import com.skr.mdm.bean.so.content.ContentDocumentSO;
import com.skr.mdm.bean.vo.content.ContentVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContentDocumentDao extends BaseMapper<ContentDocumentDO> {

	/**
	 * 根据公司ID删除
	 * @param companyId 公司ID
	 */
	void deleteByCompanyId(@Param("companyId") Integer companyId);

	List<String> selectNameByIdList(@Param("contentIdList") List<Integer> contentIdList);

    /**
     * 获取设备内容
     * @param equipmentId
     * @return
     */
	List<ContentDocumentSO> listContentByEquipmentId(@Param("equipmentId") Integer equipmentId, @Param("issuedState") Integer issuedState);

	List<ContentVO> listContentVO(Integer companyId);

}