package com.jwipc.sys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.MsgNotice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.sys.model.po.MsgNoticePO;
import com.jwipc.sys.model.query.MsgNoticeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 通知公告	 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-31
 */
public interface MsgNoticeMapper extends BaseMapper<MsgNotice> {

    List<MsgNoticePO> findPageByQuery(@Param("query") MsgNoticeQuery query);

    List<MsgNoticePO> findPageByQuery(Page<MsgNotice> dbPage, @Param("query") MsgNoticeQuery query);

    MsgNoticePO getDataById(@Param("id") Long id);
}
