getAllRoutes
===

```sql

select menu.id,
       menu.PARENT_MENU_ID      parent_id,
       menu.NAME                title,
       menu.CODE                name,
       menu.ICON,
       ifnull(menu.SEQ, 999999) seq,
       func.ACCESS_URL          path,
       func.COMPONENT           component
from core_menu menu
       left join core_function func on func.ID = menu.FUNCTION_ID 
       where menu.DEL_FLAG = 0 
        and menu.id in 
            (select crm.menu_id from core_role_menu crm 
                 where crm.role_id in (#join(roleIds)#)) 
```

RouteMapping
===
```json
    {
        "path": "path",
        "name": "name",
        "component": "component",
        "id": "id",
        "parentId": "parent_id",
        "seq": "seq",
        "meta": {
            "icon": "icon",
            "title": "title",
            "roles": {
                "id": "role_id"
            }
        }
    }
```



