部门查询

  • 接口:common/glAccountRules/v2/findByPage
  • Method:GET
  • 接口说明:根据其他查询条件查询(支持按照最后更新时间、规则编码、事件编码、会计科目编码、会计结构编码查询)
  • 多语言环境:实现多语言环境方式是在接口请求头中添加Key为locale,Value值为语言环境,目前支持的语言有zh_CN(中文)、en_US(英文)、ja_JP(日文)、zh_TW(繁体),请选取其中一种

请求参数

字段名称 字段类型 字段描述 是否必填 长度
bizId String 业务唯一识别码 true 255
timestamp long 时间戳 true
page_num Integer 分页页数 (默认1,最小1) false
page_size Integer 分页条数 (默认100,仅支持20,50,100) false
code String 会计规则编码 false 64
account_code String 会计科目编码 false 64
structure_code String 会计结构编码 false 64
account_event_code String 会计事件编码 false 64
start_datetime long 最后更新时间-开始时间(13位数字时间戳) false 13
end_datetime long 最后更新时间-结束时间(13位数字时间戳) false 13

请求示例

/common/glAccountRules/v2/findByPage?bizId=7171d721-1d60-447c-930f-787&timestamp=1685391430000&end_datetime=1685593630000&start_datetime=1685391430000&page_size=20&code=50844&structure_code=default&account_code=1001&account_event_code=EXP_DR

返回参数

默认返参

字段名称 字段类型 字段描述
resCode Integer 状态码
resMsg String 描述
data.page_num Integer 当前页数
data.total_page Integer 总页数
data.page_size Integer 分页条数
data.total_count Integer 总条数
date.page_info Array 数据结果列表
data.page_info.code String 规则编码
data.page_info.account_code String 会计科目编码
data.page_info.structure_code String 会计结构编码
data.page_info.account_event_code String 事件编码
data.page_info.priority Integer 优先级
data.page_info.rule_condition json 条件
data.page_info.last_update_date Long 最后更新日期

返回示例

{
  "resCode": 200000,
  "resMsg": "success",
  "data": {
    "page_size": 20,
    "page_num": 1,
    "total_count": 1,
    "total_page": 1,
    "is_first_page": true,
    "is_last_page": true,
    "page_info": [
      {
        "code" : "50844",
        "structure_code" : "default",
        "account_event_code" : "EXP_DR",
        "priority" : 1,
        "account_code" : "1001",
        "rule_condition" : {
          "charge_department": "D1",
          "header_column22": "claim"
        }
      }
    ]
  }
}

results matching ""

    No results matching ""