外部审核结果写入接口
接口信息
| 项目 | 值 |
|---|---|
| 接口名称 | 保存外部审核结果 |
| 请求方法 | POST |
| 请求路径 | /report/external/audit/result |
| Controller | com.maycur.openapi.controller.ReportController#saveExternalAuditResult |
| Content-Type | application/json |
请求参数
请求体
{
"reportId": "REIMBURSE-202608110001",
"reportType": "REIMBURSE",
"externalAuditStatus": "AUDIT_SUCCESS",
"results": [
{
"msg": "外部审核通过",
"url": "https://example.com/audit/detail/123"
},
{
"msg": "存在待核验项目",
"url": "https://example.com/audit/detail/456"
}
]
}
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
reportId |
string | 是 | 报销单据 ID;Controller 会将其映射为 Service 层的 formCode。 |
reportType |
string | 是 | 报销单据类型,例如 REIMBURSE、CORP_REIMBURSE |
externalAuditStatus |
string | 否 | 外部审核推送状态,例如 AUDITING、AUDIT_SUCCESS。本次请求的所有结果共用该状态。 |
results |
array | 否 | 外部审核结果列表;支持一次写入多条。 |
results[].msg |
string | 否 | 外部审核结果文案。 |
results[].url |
string | 否 | 外部审核详情链接。 |
返回示例
成功
{
"code": "ACK",
"message": "保存成功"
}
参数错误
当 reportId 或 reportType 缺失时:
{
"code": "NACK",
"message": "reportId和reportType不能为空"
}
清空示例
以下请求会删除指定 entCode + reportId + reportType 下的全部外部审核结果,不再新增记录:
{
"reportId": "REIMBURSE-202608110001",
"reportType": "REIMBURSE",
"results": []
}