package pwc.taxtech.atms.vat.dao;

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.vat.entity.PeriodCellTemplate;
import pwc.taxtech.atms.vat.entity.PeriodCellTemplateExample;

import java.util.List;
import java.util.Map;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_ADMIN.PERIOD_CELL_TEMPLATE
     *
     * @mbg.generated
     */
    List<PeriodCellTemplate> selectByExample(PeriodCellTemplateExample example);

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_ADMIN.PERIOD_CELL_TEMPLATE
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") PeriodCellTemplate record, @Param("example") PeriodCellTemplateExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_ADMIN.PERIOD_CELL_TEMPLATE
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") PeriodCellTemplate record, @Param("example") PeriodCellTemplateExample example);

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

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

    void batchInsert(List<PeriodCellTemplate> list);

    Long getCellTemplateIdWithMap(Map<String, Object> map);

    Integer getDataType(@Param("cellTemplateId") Long cellTemplateId, @Param("reportId") Long reportId);
}