预算规则信息查询

  • url: common/budgets/v2/glBudgetRuleJson/findRuleCondition
  • method: POST
  • 数据格式: json
  • 说明: 预算规则信息查询. 预算规则一般是 key-value集合的形式作为入参进行查询. 其中预算规则 value有为字符串和数字类型的区分.建议将字符串类型的预算规则查询入参添加到 data.rule_condition_string集合中, 数字类型添加到 data.rule_condition_number中. 如你无法区分类型, 也可以都添加到 data.rule_condition中. 其中 , data.rule_condition优先级最低, 如果存在key重复的情况, 将首先丢弃data.rule_condition中的value内容. data.rule_condition_stringdata.rule_condition_number 中存在key重复时, 将同时保留, 整形到过滤条件中.

参数

请求参数

字段名称 字段类型 字段描述 是否必填 长度限制
bizId String 当前请求唯一标识 TRUE 36
timestamp long 当前请求对应的时间戳 TRUE 13
data.page_size Integer 分页请求, 每页大小 TRUE 每页最大100
data.page_num Integer 分页请求, 页码 TRUE 1为第一页
data.rule_condition Map 需要匹配的预算规则 FALSE
data.rule_condition_string Map 需要匹配的预算规则. 可以将值为字符串类型的预算规则添加到此集合中. FALSE
data.rule_condition_number Map 需要匹配的预算规则. 可以将值为数字类型的预算规则添加到此集合中. FALSE
data.rule_id Long 预算规则ID FALSE
data.budget_event String FALSE 16

返回参数

字段名称 字段类型 字段描述
bizId String 当前请求唯一标识
resCode Integer 响应状态码(见附录)
resMsg String 返回信息描述
data.page_size Integer 分页大小
data.page_num Integer 页码
data.total_count Integer 总记录数
data.total_page Integer 总页数
data.is_first_page bool 是否为第一页
data.is_last_page bool 是否为最后一页
data.page_info Array 记录信息
data.page_info.rule_id Integer 预算规则ID
data.page_info.budget_event String
data.page_info.branch_id Integer 分公司ID
data.page_info.branch_code String 分公司编码
data.page_info.charge_department Integer 成本中心ID
data.page_info.charge_department_code String 成本中心编码
data.page_info.header_type_id Integer 单据头类型ID
data.page_info.header_type_code String 单据头类型编码
data.page_info.type_id Integer 消费类型ID
data.page_info.type_code String 消费类型编码
data.page_info.project_id Integer 项目ID
data.page_info.project_code String 项目编码
data.page_info.budget_id Integer 预算科目ID
data.page_info.budget_code String 预算科目编码
data.page_info.priority Integer 优先级(越大越高)
data.page_info.rule_condition String 预算规则

示例

请求数据

{
  "bizId" : "eefc93d1-968c-4c85-a4ea-b9ca0ff77649",
  "timestamp" : 1685975816,
  "data" : {
    "flag" : false,
    "page_size" : 100,
    "page_num" : 1,
    "rule_condition" : {
      "type_id" : 70845
    },
    "rule_condition_number" : {
      "header_type_id" : 162668
    }
  }
}

返回数据

{
  "resCode" : 200000,
  "resMsg" : "success",
  "bizId" : "eefc93d1-968c-4c85-a4ea-b9ca0ff77649",
  "data" : {
    "page_size" : 100,
    "page_num" : 1,
    "total_count" : 2,
    "total_page" : 1,
    "is_first_page" : true,
    "is_last_page" : true,
    "page_info" : [ {
      "last_update_date" : "2021-03-15 03:47:14",
      "rule_id" : 1682,
      "branch_id" : 121735,
      "branch_code" : "ceshizhuanshu001",
      "header_type_id" : 162668,
      "header_type_code" : "api_header_type",
      "type_id" : 70845,
      "type_code" : "T001",
      "priority" : 9,
      "rule_condition" : "{\"type_id\": 70845, \"header_type_id\": 162668}",
      "budget_id" : 1646,
      "budget_code" : "100001"
    }, {
      "last_update_date" : "2021-03-15 03:47:59",
      "rule_id" : 1683,
      "branch_id" : 121735,
      "branch_code" : "ceshizhuanshu001",
      "header_type_id" : 162668,
      "header_type_code" : "api_header_type",
      "type_id" : 70845,
      "type_code" : "T001",
      "priority" : 5,
      "rule_condition" : "{\"type_id\": 70845, \"header_type_id\": 162668}",
      "budget_id" : 1646,
      "budget_code" : "100001"
    } ]
  }
}

results matching ""

    No results matching ""