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.vat.dpo.CashFlowCondition;
import pwc.taxtech.atms.vat.entity.CashFlow;
import pwc.taxtech.atms.vat.entity.CashFlowExample;

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

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

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

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

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

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

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

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

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

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

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

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

    List<CashFlow> selectByCondition(@Param("cfCondition") CashFlowCondition condition);

    Integer selectCountByCondition(@Param("cfCondition") CashFlowCondition condition);

    int insertBatch(List<CashFlow> cfs);
}