1. 获取物项分类树根节点key

1.1. 基本信息

Path

POST http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/query/uoBldStructures?noRelation=true

API描述

获取物项分类树根节点key

1.2. 请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc
Content-Type 内容类型 application/json

Path Param

参数名称 介绍 举例
buildingId 建筑id abc

Request Body

application/json

{
    "condition": [
        {
            "field": "level",
            "operator": "==",
            "value": "1",
            "number": "true",
            "logic": ""
        },
        {
            "field": "type",
            "operator": "==",
            "value": "item",
            "number": "false",
            "logic": "And"
        }
    ],
    "select": [
        "name"
    ]
}

1.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "data": [
            {
                "currentUserPermissions": "rwdc",
                "key": "l1b2427fccb8447f84a8e996a2f5f731_itr", // 物项分类树根节点key
                "name": "物项分类"
            }
        ],
        "count": 1
    }
}

2. 获取指定根节点的完整物项分类树

2.1. 基本信息

Path

GET http://building-bos.rickricks.com/bosfoundationservice/{buildingId}/prototype/query/tree/uoBldStructures/{rootKey}?type=Child&depth=-1

API描述

获取指定根节点的完整物项分类树

2.2. 请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc

Path Param

参数名称 介绍 举例
buildingId 建筑id abc
rootKey 物项分类树根节点key 5f5cb56c11cc45c49c30d7ac54d2b5f8

2.3. 返回内容

执行成功

{
    "message": "请求处理成功",
    "code": "SUCCESS",
    "data": {
        "code": "ITR",
        "level": 1,
        "sameNodeAttribute": true,
        "type": "item",
        "showCode": false,
        "leaf": false,
        "guser": "users/a9eda0ae03064874b74268541e49c923",
        "gtime": "1573201866731",
        "children": [
            {
                "code": "分类1",
                "level": 2,
                "sameNodeAttribute": true,
                "description": "",
                "type": "item",
                "showCode": false,
                "leaf": true,
                "parentId": "uoBldStructures/l1b2427fccb8447f84a8e996a2f5f731_itr",
                "guser": "users/a9eda0ae03064874b74268541e49c923",
                "gtime": "1573201844179",
                "permissionGroup": [],
                "name": "分类1",
                "guid": "d5c0d3b417244bc1b15e2fcf4e1baf07",
                "applyToChildNode": true,
                "longCode": "ITR※d5c0d3b417244bc1b15e2fcf4e1baf07",
                "bosclass": "uoBldStructures",
                "key": "d5c0d3b417244bc1b15e2fcf4e1baf07",
                "order": 1,
                "gcreatetime": "1573201844179",
                "longName": "物项分类※分类1"
            }
        ],
        "permissionGroup": [],
        "name": "物项分类",
        "guid": "l1b2427fccb8447f84a8e996a2f5f731_itr",
        "applyToChildNode": true,
        "longCode": "ITR",
        "bosclass": "uoBldStructures",
        "_class": "com.bimwinner.building.model.BldStructure",
        "key": "l1b2427fccb8447f84a8e996a2f5f731_itr",
        "order": 0,
        "longName": "物项分类"
    }
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-09-23 15:25:50

results matching ""

    No results matching ""