package pwc.taxtech.atms.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.dpo.OrganizationServiceTemplateGroupDto;
import pwc.taxtech.atms.entity.OrganizationServiceTemplateGroup;
import pwc.taxtech.atms.entity.OrganizationServiceTemplateGroupExample;

import java.util.List;

@Mapper
public interface OrganizationServiceTemplateGroupMapper extends MyMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table TAX_ADMIN.ORG_SERVICE_TEMPLATE_GROUP
     *
     * @mbg.generated
     */
    long countByExample(OrganizationServiceTemplateGroupExample example);

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

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

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

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

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

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

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

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

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

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

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

    List<OrganizationServiceTemplateGroupDto> getSingleOrgByOrgIdToOSTGDto(@Param("orgId") String orgId);

    List<String> getOrgnizationServiceTemplateGroupOrgNames(@Param("templateGroupDtoId") Long templateGroupDtoId);
}