package pwc.taxtech.atms.vat.dao;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.dto.vatdto.PeriodCellTemplateConfigExtendDto;
import pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig;
import pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfigExample;

@Mapper
public interface PeriodCellTemplateConfigMapper extends MyVatMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    long countByExample(PeriodCellTemplateConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int deleteByExample(PeriodCellTemplateConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int insert(PeriodCellTemplateConfig record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int insertSelective(PeriodCellTemplateConfig record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    List<PeriodCellTemplateConfig> selectByExampleWithRowbounds(PeriodCellTemplateConfigExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    List<PeriodCellTemplateConfig> selectByExample(PeriodCellTemplateConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    PeriodCellTemplateConfig selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") PeriodCellTemplateConfig record, @Param("example") PeriodCellTemplateConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") PeriodCellTemplateConfig record, @Param("example") PeriodCellTemplateConfigExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(PeriodCellTemplateConfig record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_cell_template_config
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(PeriodCellTemplateConfig record);

    void batchInsert(List<PeriodCellTemplateConfig> list);

    List<PeriodCellTemplateConfigExtendDto> getPeriodCellTemplateConfigExtendDtos(@Param("templateIDList")List<Long> templateIDList,Integer period);
}