员工借款金额详情接口
说明
- 通过该接口可以查看员工在各个流程状态的借款金额,以及核销情况。具体状态表示和金额见详细参数。
注意事项
- 一次最多传入10个 employeeNo,超过则报错,且不会对重复 No 过滤。
接口地址
/api/openapi/form/loan/employee/total
请求类型
POST
请求参数
参数说明
字段名称 | 字段类型 | 是否必填 | 字段说明 |
---|---|---|---|
employeeNos | List<String> | 是 | 员工工号 |
参数样例
{
"employeeNos": [
"user001",
"user002"
]
}
响应参数
响应参数说明
字段名称 | 字段类型 | 是否必填 | 字段说明 |
---|---|---|---|
employeeNo | string | 是 | 员工工号 |
details | list | 员工借款明细 |
details 包含字段说明
字段名称 | 字段类型 | 是否必填 | 字段说明 |
---|---|---|---|
taskStatus | string | 单据状态。详细见附录1说明 | |
deductions | list | 核销明细 |
deductions 包含字段说明
字段名称 | 字段类型 | 是否必填 | 字段说明 |
---|---|---|---|
deductionStatus | string | 核销状态。详细见附录2说明 | |
monetaryInfos | list | 金额,币种信息 |
monetaryInfos 包含字段说明
字段名称 | 字段类型 | 是否必填 | 字段说明 |
---|---|---|---|
amount | BigDecimal | 金额 | |
currency | string | 币种 |
参数样例
[
{
"employeeNo": "200186",
"details": [
{
"taskStatus": "PROCESSING",
"deductions": [
{
"deductionStatus": "UNSTART",
"monetaryInfos": [
{
"amount": 122.00,
"currency": "CNY",
"amountStr": "¥122.00"
}
]
}
]
},
{
"taskStatus": "COMPLETED",
"deductions": [
{
"deductionStatus": "ALL",
"monetaryInfos": [
{
"amount": 10001202.00,
"currency": "CNY",
"amountStr": "¥10,001,202.00"
}
]
},
{
"deductionStatus": "PENDING",
"monetaryInfos": [
{
"amount": 100.00,
"currency": "CNY",
"amountStr": "¥100.00"
}
]
},
{
"deductionStatus": "FINANCE",
"monetaryInfos": [
{
"amount": 1000.00,
"currency": "CNY",
"amountStr": "¥1,000.00"
}
]
}
]
}
]
},
{
"employeeNo": "220004",
"details": [
{
"taskStatus": "PROCESSING",
"deductions": []
},
{
"taskStatus": "COMPLETED",
"deductions": [
{
"deductionStatus": "ALL",
"monetaryInfos": [
{
"amount": 1000.00,
"currency": "AED",
"amountStr": "AED1,000.00"
},
{
"amount": 888.88,
"currency": "JPY",
"amountStr": "JPY888.88"
},
{
"amount": 12676.00,
"currency": "CNY",
"amountStr": "¥12,676.00"
}
]
},
{
"deductionStatus": "PENDING",
"monetaryInfos": [
{
"amount": 800.00,
"currency": "JPY",
"amountStr": "JPY800.00"
},
{
"amount": 300.00,
"currency": "CNY",
"amountStr": "¥300.00"
}
]
},
{
"deductionStatus": "COMPLETED",
"monetaryInfos": [
{
"amount": 1000.00,
"currency": "AED",
"amountStr": "AED1,000.00"
},
{
"amount": 12154.00,
"currency": "CNY",
"amountStr": "¥12,154.00"
}
]
}
]
}
]
}
]
附录
1
字段code | 字段说明 |
---|---|
PROCESSING | 审批流程未完成借款(借款单:审批中、审核中、结算中) |
COMPLETED | 审批流程已完成借款(已完成) |
2
字段code | 字段说明 |
---|---|
UNSTART | 流程中借款汇总金额(取值逻辑:借款单流程未完成【审批中、审核中、结算中】,借款单批准金额之和)。 taskStatus状态是 PROCESSING 时,则deductionStatus显示此状态。 |
ALL | 借款汇总金额(取值逻辑:已完成的借款单批准金额之和,包含核销中金额、核销完成金额、人工确认还款金额) |
PENDING | 核销中金额(取值逻辑:报销单、还款单流程未完成【审批中、审核中、结算中】,核销借款的金额之和) |
COMPLETED | 核销完成金额(取值逻辑:报销单、还款单流程已完成,核销借款的金额之和) |
FINANCE | 人工确认还款金额总和 |
修改记录
2023-07-27 新增员工借款金额详情接口文档