预算编制金额查询
- url: common/budgets/v2/glBudgetAmount/findByCidsAndPeriods
- method: GET
- 数据格式:json
- 说明: 编制金额查询
参数
请求参数(RequestParams)
| 字段名称 |
字段类型 |
字段描述 |
是否必填 |
长度限制 |
| bizId |
String |
当前请求唯一标识 |
TRUE |
36 |
| timestamp |
long |
当前请求对应的时间戳 |
TRUE |
13 |
| cids |
List<Long> |
组合维度cid集合 |
TRUE |
200 |
| periodIds |
List<Long> |
财年period_id集合 |
TRUE |
200 |
返回参数
- data 为数组,data[] 表示数组中元素(对象)
- validate_rule有值时,才有对应的period_type——参考示例
| 字段名称 |
字段类型 |
字段描述 |
| bizId |
String |
当前次接口同步的唯一标识 |
| resCode |
Integer |
响应状态码(见附录) |
| resMsg |
String |
返回信息描述 |
| data |
Array |
当前请求的数据集合 |
| data[].company_id |
Long |
公司ID |
| data[].cid |
Long |
预算组合维度ID |
| data[].gl_period |
Long |
预算财年期间ID |
| data[].reference_amount |
BigDecimal |
参考金额 |
| data[].budget_amount |
BigDecimal |
预算金额 |
| data[].warning_pct |
BigDecimal |
预算报警阈值 |
| data[].error_pct |
BigDecimal |
预算报错阈值 |
| data[].validate_rule |
String |
预算校验函数 |
| data[].source_plan_id |
Long |
预算计划ID |
| data[].plan_name |
String |
预算计划NAME |
| data[].period_type |
String |
预算校验函数映射 |
| data[].period_name |
String |
预算财年期间名称 |
| data[].last_update_date |
Long |
最后更新时间(时间戳) |
示例
请求数据
完整 URL:
/common/budgets/v2/glBudgetAmount/findByCidsAndPeriods?bizId=a1cc76ab-58e6-419d-8798-8aefaaab7f66×tamp=1673798400000&cids=5855&periodIds=1674&periodIds=1673&periodIds=1670
参数拆解:
| 参数 |
值 |
| bizId |
a1cc76ab-58e6-419d-8798-8aefaaab7f66 |
| timestamp |
1673798400000 |
| cids |
5855 |
| periodIds |
1674 |
| periodIds |
1673 |
| periodIds |
1670 |
返回数据
{
"resCode": 200000,
"resMsg": "success",
"bizId": "a1cc76ab-58e6-419d-8798-8aefaaab7f66",
"data": [
{
"last_update_date": 1597409925000,
"company_id": 3809,
"cid": 5855,
"gl_period": 1670,
"reference_amount": 2000.00,
"budget_amount": 2000.00,
"warning_pct": 0.8000000000,
"error_pct": 1.1000000000,
"source_plan_id": 556,
"plan_name": "财年+科目01",
"period_name": "2020年第三季度-8月"
},
{
"last_update_date": 1582701730000,
"company_id": 3809,
"cid": 5855,
"gl_period": 1673,
"reference_amount": 0.00,
"budget_amount": 0.00,
"warning_pct": 0.3000000000,
"error_pct": 1.0000000000,
"validate_rule": "wf_budget_check_total(header_id,0)",
"source_plan_id": 539,
"period_type": "total0",
"period_name": "2020年第四季度-10月"
},
{
"last_update_date": 1582701730000,
"company_id": 3809,
"cid": 5855,
"gl_period": 1674,
"reference_amount": 0.00,
"budget_amount": 0.00,
"warning_pct": 0.3000000000,
"error_pct": 1.0000000000,
"validate_rule": "wf_budget_check_total(header_id,0)",
"source_plan_id": 539,
"period_type": "total0",
"period_name": "2020年第四季度-11月"
}
]
}