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.PeriodStandardAccount;
import pwc.taxtech.atms.vat.entity.PeriodStandardAccountExample;
import pwc.taxtech.atms.vat.entity.VatStandardAccount;

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table period_standard_account
     *
     * @mbg.generated
     */
    PeriodStandardAccount selectByPrimaryKey(String id);

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

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

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

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

    List<TrialBalanceDto> selectProjectStandardAccountLeftJoinBalanceStdManual(@Param("fromMonth") String fromMonth, @Param("toMonth") String toMonth,
                                                                               @Param("projectId") String projectId);

    VatStandardAccount selectOneByAccountCode(@Param("accountCode") String accountCode, @Param("projectId") String projectId);
}