package pwc.taxtech.atms.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.MyMapper; import pwc.taxtech.atms.entitiy.RolePermission; import pwc.taxtech.atms.entitiy.RolePermissionExample; @Mapper public interface RolePermissionMapper extends MyMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ long countByExample(RolePermissionExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int deleteByExample(RolePermissionExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int deleteByPrimaryKey(String ID); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int insert(RolePermission record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int insertSelective(RolePermission record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ List<RolePermission> selectByExampleWithRowbounds(RolePermissionExample example, RowBounds rowBounds); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ List<RolePermission> selectByExample(RolePermissionExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ RolePermission selectByPrimaryKey(String ID); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int updateByExampleSelective(@Param("record") RolePermission record, @Param("example") RolePermissionExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int updateByExample(@Param("record") RolePermission record, @Param("example") RolePermissionExample example); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int updateByPrimaryKeySelective(RolePermission record); /** * This method was generated by MyBatis Generator. * This method corresponds to the database table RolePermission * * @mbg.generated */ int updateByPrimaryKey(RolePermission record); List<RolePermission> selectByRoleId(String roleId); List<RolePermission> selectByRoleAndServiceTypeWithAssociation(@Param("roleID") String roleID, @Param("serviceTypeID") String serviceTypeID); List<RolePermission> selectByRoleListAndServiceTypeWithAssociation(@Param("roleList") List<String> roleList, @Param("serviceTypeID") String serviceTypeID); }