运算符 | 描述 | 示例值 |
---|---|---|
eq | 等于 | "Beijing" 或 ["<targetid>"] |
ne | 不等于 | "London" 或 ["<targetid>"] |
gt | 大于 | 20 或 "2025-02-06 00:00:00" |
ge | 大于等于 | 10 |
lt | 小于 | 20 |
le | 小于等于 | 100 |
in | 是其中一个 | ["value1", "value2"] |
notin | 不是任意一个 | ["value1", "value2"] |
contains | 包含 | "Ch" 或 ["销售部", "市场部"] |
notcontains | 不包含 | "Ch" 或 ["销售部", "市场部"] |
concurrent | 同时包含 | ["<id1>", "<id2>"] |
belongsto | 属于 | ["<departmentid>"] |
notbelongsto | 不属于 | ["<departmentid>"] |
startswith | 开头是 | "张" |
notstartswith | 开头不是 | "李" |
endswith | 结尾是 | "公司" |
notendswith | 结尾不是 | "有限公司" |
between | 在范围内 | ["2025-01-01", "2025-01-31"] |
notbetween | 不在范围内 | ["10", "20"] |
运算符 | 描述 | 备注 |
---|---|---|
isempty | 为空 | 不需要 value 字段 |
isnotempty | 不为空 | 不需要 value 字段 |
ID | 说明 |
---|---|
user-self | 当前用户 |
user-sub | 下属 |
user-workflow | 工作流 |
user-api | API |
{
"type": "group",
"logic": "AND",
"children": [
{
"type": "condition",
"field": "name",
"operator": "startswith",
"value": "张"
},
{
"type": "condition",
"field": "onboard_date",
"operator": "between",
"value": ["2025-01-01", "2025-01-31"]
}
]
}
{
"type": "group",
"logic": "AND",
"children": [
{
"type": "group",
"logic": "AND",
"children": [
{
"type": "condition",
"field": "name",
"operator": "startswith",
"value": "张"
},
{
"type": "condition",
"field": "onboard_date",
"operator": "between",
"value": ["2025-01-01", "2025-01-31"]
}
]
},
{
"type": "group",
"logic": "OR",
"children": [
{
"type": "condition",
"field": "department_name",
"operator": "contains",
"value": ["销售部", "市场部"]
},
{
"type": "condition",
"field": "department_id",
"operator": "belongsto",
"value": ["华北区ID"]
}
]
}
]
}
group
的children
只能全是group
或全是condition
,不能混合type
为group
时,logic
字段必须指定为AND
或OR
isempty
和isnotempty
时不需要提供value
字段between
、in
、contains
、concurrent
、belongsto
等)option
的key
值放到数组中作为value
,使用数组值运算符record_id
,再以数组值规则进行筛选