Refactor mybatis RowBounds.