package com.skr.mdm.dao;

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

import java.util.List;

@Repository
public interface ContentInformDao extends BaseMapper<ContentInformDO> {

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

    List<ContentInformVO> listContentInformVO(@Param("param") BaseQueryQO baseQueryQO, @Param("companyId") Integer companyId);

    List<ContentInformSO> listReloadSO(@Param("equipmentId") Integer equipmentId, @Param("cmdType") Integer cmdType);
}