员工借款金额详情接口

说明

  • 通过该接口可以查看员工在各个流程状态的借款金额,以及核销情况。具体状态表示和金额见详细参数。

注意事项

  • 一次最多传入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  新增员工借款金额详情接口文档
Copyright © 杭州每刻科技有限公司 www.maycur.com all right reserved,powered by Gitbook该文件修订时间: 2024-11-20 10:52:00

results matching ""

    No results matching ""

    results matching ""

      No results matching ""