1 请求地址
Request Method:POST
Request URL:{http}://{ip}:{port}/{lczServer}/oapi/lczCloudForm/dataQuery/totalQuery
2 请求体参数
{
"header": {
"authId":"用户凭证",
"targetVolume":"所属应用",
"privilege_type":"认证类型",
"validateVariants":"认证参数",
"v":"加密传参"
},
"requestBody": {
"fileNames":["表单名称"],
"fileName": "string",
"orders": [
{
"fieldName": "string", //字段名称
"order": "string" //排序方式(ASC或者DESC)
}
],
"wheres": [
{
"fieldName": "string",
"op": "string",
"vals": [
"string"
]
}
]
}
}
必选参数
参数名 |
类型 |
说明 |
---|---|---|
authId | string | 用户凭证,用于接口权限认证 |
targetVolume | string | 所属应用的内部名称 |
fileNames | string[] | 请求查询的多个表单名称 |
fileName | string[] | 请求查询的单个表单名称 |
orders | Obejct[] | 字段排序对象列表 |
wheres | Obejct[] | 查询条件对象列表(多个条件之间是且的关系) |
3 请求体
请求体格式如下:
{
"fieldNames": [
"string"
],
"fileName": "string",
"orders": [
{
"fieldName": "string",
"order": "string"
}
],
"volumeName": "string",
"wheres": [
{
"fieldName": "string",
"op": "string",
"vals": [
"string"
]
}
]
}
op
IN
fieldName in (参数值,参数值 ....)
NIN
fieldName not in (参数值,参数值 ....)
LIKE
fieldName like (%参数值%)
NLIKE
fieldName not like (%参数值%)
NULL
fieldName is null
NNULL
fieldName not null
BETWEEN
fieldName between 参数值1 and 参数值2
EQ
fieldName = 参数值
GT
fieldName > 参数值
LT
fieldName < 参数值
NEQ
fieldName != 参数值
LEQ
fieldName <= 参数值
GEQ
fieldName >= 参数值
4 响应体
成功响应体格式如下:
{
"content": {
"datas": [{
"${fieldName1}": "",
"${fieldName2}": 0,
"${tableName1}": [{
"${fieldName3}": "",
"${fieldName4}": 0
}],
"${tableName2}": [{
"${fieldName5}": "",
"${fieldName6}": 0
}]
}]
},
"success": true
}
${fieldName}: 用户要查询的字段名称
${tableName}: 子表名称
失败响应体格式如下:
{
"code": "string", //错误码
"msg": "string", //错误信息
"success": false
}
作者:柳杨 创建时间:2023-08-08 15:43
最后编辑:柳杨 更新时间:2025-04-22 15:31
最后编辑:柳杨 更新时间:2025-04-22 15:31
