package com.jeeplus.flowable.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.flowable.model.MyNoticeList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyNoticeListMapper extends BaseMapper<MyNoticeList> {

    void readAll(@Param("name") String name);

    /**
     * 查询通知信息
     *
     * @param myNotice
     * @return
     */
    public IPage<MyNoticeList> selectPage(Page<MyNoticeList> page, @Param("myNotice") MyNoticeList myNotice);

    /**
     * 根据通知信息查询详情
     * @param myNoticeList
     * @return
     */
    MyNoticeList getRepetitionCountBymyNotice(MyNoticeList myNoticeList);

    /**
     * 保存通知信息
     * @param myNoticeList
     */
    void insertMyNotice(MyNoticeList myNoticeList);

    /**
     * 修改通知信息
     * @param myNoticeList
     */
    void updateMyNotice(MyNoticeList myNoticeList);

    /**
     * 部分通知变更为已读
     * @param idList
     * @return
     */
    void portionRead(List idList);

}
