[TOC]
简要描述
请求URL
http://localhost:9066/digit/agent/risk/prv-risk-warn-rule/getRiskRuleWarnPage?current=1&pageSize=10&createTimeGt=2022-08-01T16:06:38&createTimeLt=2022-08-05T20:10:01&ruleName=通话&ruleType=1&ruleCode=GZ202208141222141&status=1
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
ruleName |
否 |
string |
规则名称 |
ruleType |
否 |
string |
规则类型 参见字典表 gcode字段值:RuleType |
ruleCode |
否 |
string |
规则编码 |
status |
否 |
int |
规则状态 0:已停用 1:启用中 |
createTimeGt |
否 |
localdatetime |
大于某创建时间 |
createTimeLt |
否 |
localdatetime |
小于某创建时间 |
current |
是 |
long |
当前页码 |
pageSize |
是 |
long |
每页数据量 |
返回示例
{
"success": true,
"retCode": "0",
"retMsg": "成功",
"retData": [
{
"id": 3,
"ruleCode": "GZ2022081412221410003",
"ruleName": "0通话规则2",
"ruleType": 1,
"hierarchicalWarning": 1,
"status": 1,
"creator": null,
"createTime": "2022-08-04 17:13:14",
"modifyBy": null,
"modifyTime": null,
"gradeWarningType": null,
"createTimeGt": null,
"createTimeLt": null,
"applyAgent": "2;2",
"applyAgentValue": "5;4",
"applyAgentChinese": "严重预警:诚毅测试、较重严重预警:建1",
"applyArea": null,
"warningType": "2;1",
"name": null
}
],
"current": 1,
"size": 10,
"total": 3,
"pages": 1
}
返回参数说明
参数名 |
类型 |
说明 |
ruleCode |
string |
规则编码 |
ruleName |
string |
规则名称 |
ruleType |
string |
规则类型 参见字典表 gcode字段值:RuleType |
applyAgentChinese |
string |
适用代理商 |
applyArea |
string |
适用区域 这里返回的是区域编码,需要前端根据编码获取对应值显示在页面,1.多个区域编码之间用,分隔 2.非分级多规则并列条件之间用;分隔 3.分级预警分级条件之间用;分隔。获取对应值规则:先判断返回值是否有; 有;的,再判断hierarchicalWarning的值,(hierarchicalWarning=0,添加前缀规则条件X: hierarchicalWarning=1,再判断warningType的值(同样判断是否有;分隔,有;通过截取获取对应值,预警类型 参见字典表 gcode字段值:WarningType)最后判断;截取的每个值是否有,分隔 通过截取,的值分别获取对应字段显示在页面上) 没有;分隔的,代表是非分级预警条件只有一条规则,判断返回值是否有,分隔 通过截取,的值分别获取对应字段显示在页面上 |
status |
int |
规则状态 0:已停用 1:启用中 |
creator |
long |
创建人 |
createTime |
localdatetime |
创建时间 |
备注