package com.hdkj.lt.bf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdkj.lt.bf.entity.FhzgNotice;
import com.hdkj.lt.bf.entity.vo.NoticeListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Sunlit
 * @description 针对表【fhzg_notice】的数据库操作Mapper
 * @createDate 2025-12-26 10:20:52
 * @Entity com.hdkj.lt.bf.entity.FhzgNotice
 */
public interface FhzgNoticeMapper extends BaseMapper<FhzgNotice> {

    List<NoticeListVO> getNoticeList(@Param("userId")Long userId, @Param("isRead")Integer isRead, @Param("offset")Integer offset, @Param("pageSize")Integer pageSize);

    Long getNoticeListCount(@Param("userId")Long userId, @Param("isRead")Integer isRead);

    List<Long> getAllUnreadNoticeId(@Param("userId") Long userId);
}




