package com.jumeirah.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jumeirah.common.entity.SysNoticeRead;
import com.jumeirah.common.param.SysNoticeReadPageParam;
import com.jumeirah.common.param.SysNoticeReadQueryVo;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * 系统通知已读 未读 Mapper 接口
 *
 * @author xxx
 * @since 2020-11-06
 */
@Repository
public interface SysNoticeReadMapper extends BaseMapper<SysNoticeRead> {

            /**
             * 根据ID获取查询对象
             *
             * @param id
             * @return
             */
        SysNoticeReadQueryVo getSysNoticeReadById(Serializable id);

            /**
             * 获取分页对象
             *
             * @param page
             * @param sysNoticeReadPageParam
             * @return
             */
            IPage<SysNoticeReadQueryVo> getSysNoticeReadPageList(@Param("page") Page page,@Param("param") SysNoticeReadPageParam sysNoticeReadPageParam);

        }
