package com.goafanti.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.goafanti.admin.bo.NoticeBo;
import com.goafanti.common.model.Notice;

public interface NoticeMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table notice
	 * @mbg.generated  Thu May 27 17:22:58 CST 2021
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table notice
	 * @mbg.generated  Thu May 27 17:22:58 CST 2021
	 */
	int insert(Notice record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table notice
	 * @mbg.generated  Thu May 27 17:22:58 CST 2021
	 */
	int insertSelective(Notice record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table notice
	 * @mbg.generated  Thu May 27 17:22:58 CST 2021
	 */
	Notice selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table notice
	 * @mbg.generated  Thu May 27 17:22:58 CST 2021
	 */
	int updateByPrimaryKeySelective(Notice record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table notice
	 * @mbg.generated  Thu May 27 17:22:58 CST 2021
	 */
	int updateByPrimaryKey(Notice record);



	int selectUnreadedCount(String aid);

	int batchUpdateUnreaded(List<String> dl);

	void insertBatch(List<Notice> notice);

	List<NoticeBo> findUnreadNoticeListByPage(@Param("aid") String aid);

	List<NoticeBo> publicReleaseUnread(@Param("aid") String aid);
}
