package com.storlead.sales.mapper.customer;

import com.storlead.sales.pojo.entity.customer.BulletinReadEntity;
import com.storlead.framework.mybatis.mapper.MyBaseMapper;
import com.storlead.sales.pojo.vo.customer.BulletinReadVO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 公告阅读表 Mapper 接口
 * </p>
 *
 * @author YPZ
 * @since 2024-10-25
 */
public interface BulletinReadMapper extends MyBaseMapper<BulletinReadEntity> {

    List<BulletinReadVO> listByBulletinIds(@Param("bulletinIds") Collection<Long> bulletinIds);

    /**
     * 根据公告查询 readVO
     * @param bulletinId
     * @return
     */
    List<BulletinReadVO> listByBulletinById(@Param("bulletinId")Long bulletinId);
}
