Files
MemRelay/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/即席查询多条件取数.md
T
memrelay 82b7386102 create: 即席查询多条件取数
MemRelay-Operation: memory-save:nqi-condition-query-2026-11-10
MemRelay-Resource: 6095f598-7c20-4f0f-afbb-5090da3c2182
2026-11-10 16:37:33 +08:00

20 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 即席查询多条件取数
type: fact
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/即席查询多条件取数
stable_id: 6095f598-7c20-4f0f-afbb-5090da3c2182
scope: project
memory_type: fact
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: nqi-condition-query-2026-11-10
created_at: '2026-11-10T08:37:31.351300+00:00'
updated_at: '2026-11-10T08:37:31.351300+00:00'
tags:
- decomeval
- nqi
---
实时查数还没做。多条件抓包里,查数走 POST /pro-adhoc/adhocquery/getTableCount 再 POST /pro-adhoc/adhocquery/getTable。公共表单有 geographicdimension、timedimension、enodebField、cgiField、timeField、cellField、cityField、result、where。result 是 {"result":[已选字段]},字段对象沿用平台的拼写 feild、feildName、feildtype,另有 table、tableName、datatype、columntype、poly、anyWay、chart、chartpoly,这次都是「无」。where 是条件数组。页面级过滤 query 为 true、feildName 为空:时间是 timeField 上 >= 起点、< 终点 23:59:59,datatype 为 timestamp;城市是 cityField、symbol 为 in、datatype 为 character。条件选择里手动加的条件 query 为 null,datatype 用字段自己的类型,whereCon 为 and 或 or。这次抓到的比较符号是 = 和 !=。界面上还有 <、>、<=、>=、包含、不包含、为空、不为空,这些的传参还没抓到。顶栏的基站和小区不会单独传 enodeb_id,而是落到 cgiField,symbol 为 in,多个 CGI 用逗号拼在一个 val 里,datatype 为 character。总行数用 getTableCount 的 count,不要用 getTable 的 recordsTotal;这次抓包里 recordsTotal 停在 40,实际返回行数是 1 或 34。getTable 还要带上 getTableCount 返回的 indexcount,以及 columns[n][data]、draw、start、length、order。页长仍是 200。同一次操作会连打 getRemarkField、getTableCount、getTable、getTableBottomInfo,备注这次是 {"row":[]},底部信息是粒度和维度。getSelectTable 带 flag=1 只返回能否导出,不带字段。