获取项目下指定条件组合的检查人

更新时间:2021-10-25 19:08:42

接口说明

获取项目下指定条件组合的检查人

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/check_users/get-by-conditions

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
item_type body string 实测实量 业务类型
project_id body string 39ff70b4-7376-6fc3-0f15-2ce1824c7e8d 项目ID
conditions body string {\"39ffbd54-d869-db9a-7cab-ffb98f478ebc\":[[\"=\",\"building_id\",\"39ffbd54-d869-db9a-7cab-ffb98f478ebc\"]]} where 组合条件
tenant_code query string zjalpha 租户code

请求示例

{"item_type":"实测实量","project_id":"39ffb2ef-f8c4-69c7-e8e3-97b11dcfa914","conditions":"[\"and\",[\"=\",\"bidsection_id\",\"39ffb969-d73f-231d-2737-47a92377f5f9\"],[\"=\",\"item_id\",\"39da341b-f0ab-4d8c-7919-a495b167b922\"],[\"or\",[\"and\",[\"=\",\"building_id\",\"39ffb2ef-f8d2-f370-46fb-93689c14ce02\"],[\"=\",\"unit\",\"\"],[\"=\",\"floor\",\"1\"],[\"in\",\"room_id\",[\"39ffb2ef-f9bf-c087-5abd-6c3458f41d52\",\"39ffb2ef-f9c2-b2be-7fc6-fe926cc7175a\",\"39ffb2ef-f9c5-c46b-3efe-3fc066a28072\"]]],[\"and\",[\"=\",\"building_id\",\"39ffb2ef-f8d2-f370-46fb-93689c14ce02\"],[\"=\",\"unit\",\"\"],[\"=\",\"floor\",\"2\"],[\"in\",\"room_id\",[\"39ffb2ef-f9c9-ba31-3b4b-4800e522a17b\",\"39ffb2ef-f9cb-abe6-6be4-52380cfe0d66\",\"39ffb2ef-f9ce-20ba-cd25-d0be4d8e4a8b\"]]],[\"and\",[\"=\",\"building_id\",\"39ffb2ef-f8d2-f370-46fb-93689c14ce02\"],[\"=\",\"unit\",\"\"],[\"=\",\"floor\",\"3\"],[\"in\",\"room_id\",[\"39ffb2ef-f9d3-51a5-c145-7dcd5297b1e9\",\"39ffb2ef-f9d5-39bb-d1a1-83fa8b198490\",\"39ffb2ef-f9d7-2542-d6be-6167704bb799\"]]]]]"}

返回成功示例

{
    "errcode": 0,
    "errmsg": "请求成功",
    "data": [
        "weij"
    ]
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number
errmsg string
data array 检查人名数组

失败返回示例

{
  "errcode":4001, 
  "errmsg":"必填参数不能为空",
  "data":null
}

返回参数说明(失败)

参数名 参数类型 描述

results matching ""

    No results matching ""