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.TrialBalanceDto;
import pwc.taxtech.atms.vat.entity.CompanyBalance;
import pwc.taxtech.atms.vat.entity.CompanyBalanceExample;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_PROJECT. COMPANY_BALANCE
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(String balanceId);

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_PROJECT. COMPANY_BALANCE
     *
     * @mbg.generated
     */
    List<CompanyBalance> selectByExample(CompanyBalanceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_PROJECT. COMPANY_BALANCE
     *
     * @mbg.generated
     */
    CompanyBalance selectByPrimaryKey(String balanceId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_PROJECT. COMPANY_BALANCE
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") CompanyBalance record, @Param("example") CompanyBalanceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_PROJECT. COMPANY_BALANCE
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") CompanyBalance record, @Param("example") CompanyBalanceExample example);

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

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

    List<TrialBalanceDto> companyBalanceLeftJoinEnterpriseAccount(@Param("fromMonth") String fromMonth, @Param("toMonth") String toMonth);
}