package com.goafanti.common.dao;

import com.goafanti.common.model.AchievementPublish;
import com.goafanti.common.model.AchievementPublishExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AchievementPublishMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    long countByExample(AchievementPublishExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int deleteByExample(AchievementPublishExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int insert(AchievementPublish record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int insertSelective(AchievementPublish record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    List<AchievementPublish> selectByExample(AchievementPublishExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    AchievementPublish selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int updateByExampleSelective(@Param("record") AchievementPublish record, @Param("example") AchievementPublishExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int updateByExample(@Param("record") AchievementPublish record, @Param("example") AchievementPublishExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int updateByPrimaryKeySelective(AchievementPublish record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table achievement_publish
     *
     * @mbg.generated Tue Jan 30 11:16:40 CST 2018
     */
    int updateByPrimaryKey(AchievementPublish record);

	int checkExisting(AchievementPublish a);
	
	int batchDeleteByAchievementId(String id) ;
	
	List<String>getPublishPagesById(String id);
}