根据单据号查询该单据所有校验规则结果

  • 接口:common/rule/findValRuleResultList
  • Method:GET
  • 数据格式:JSON

接口说明:此接口用于根据单据号查询该单据所有校验规则结果。

请求参数

字段名称 字段类型 字段描述 是否必填
bizId String 当前次接口同步的唯一标识 true
timestamp long 当前次接口同步时间对应的时间戳 true
document_num String 单据号 true

返回参数

字段名称 字段类型 字段描述
resCode Integer 响应状态码(见附录)
resMsg String 响应描述信息
bizId String 请求唯一标识码
data List 校验结果

List

字段名称 字段类型 字段描述
resultId Integer 校验结果id
ruleId Integer 规则id
aiRuleId Integer ai规则id
companyId Integer 公司id
source String 校验对象
sourceId Integer 报错的头/行id
headerId Integer 单据id
documentId Integer 单据头唯一id
documentLineId Integer 单据行唯一id
exceptionLevel Integer 报错等级
exceptionMessage String 报错信息
valType String 规则类型
exceptionHide String 隐藏对象
ruleEvent String 触发节点
note String 说明
ruleName String 规则名称
exceptionCategory Integer 异常类型
validationDetail String 校验过程

示例:

请求数据

common/rule/findValRuleResultList?bizId=sdfasdfasfd&timestamp=1760945652653&document_num=REQ0000046100

返回数据

执行成功
{
  "resCode": 200000,
  "resMsg": "success",
  "bizId": "5f282bbb-7c80-4117-863f-a5fd775e0309",
  "data": [
    {
      "resultId": 1059392,
      "ruleId": 217752962,
      "companyId": 3809,
      "source": "EXPL",
      "sourceId": 1696591,
      "headerId": 19298566,
      "exceptionLevel": 0,
      "exceptionMessage": "wf_budget_exist_check_ptd_all:未编制预算请查看",
      "ruleEvent": "expsubmitted",
      "ruleName": "wf_budget_exist_check_ptd_all"
    },
    {
      "resultId": 1059393,
      "ruleId": 217751990,
      "companyId": 3809,
      "source": "NEXP",
      "sourceId": 19298566,
      "headerId": 19298566,
      "documentId": 19298566,
      "exceptionLevel": 0,
      "exceptionMessage": "预算超标!!!",
      "valType": "auto",
      "ruleEvent": "expsubmitted",
      "ruleName": "wf_budget_check预算检查-何梁斌测试中"
    }
  ]
}

results matching ""

    No results matching ""