识别结果修改
接口:common/attachment/recognition/update
Method:POST
- 接口说明:识别结果修改
参数
请求参数
参数名 | 类型 | 必填 | 说明 | |
---|---|---|---|---|
timestamp | Long | 请求时间的时间戳 | TRUE | |
bizId | Long | 业务唯一识别码 | TRUE | |
data.attachment_url | String | Y | 附件URL | |
data.llm_result | String | Y | 模型解析结果 |
返回参数
字段名称 | 字段类型 | 字段描述 |
---|---|---|
resCode | Integer | 响应状态码 |
resMsg | String | 返回信息描述 |
data | List<AttachmentRecognitionVo> | 成功修改的附件识别结果 |
AttachmentRecognitionVo
字段名称 | 字段类型 | 字段描述 |
---|---|---|
file_name | String | 文件名 |
attachment_url | String | 附件URL |
attachment_type_code | String | 附件类型 |
attachment_id | Long | 附件id |
type | String | 文件类型 |
status | String | 解析状态 |
batch_code | String | 批次 id |
ocr_result | JSONObject | ocr 结果 |
llm_result | JSONObject | 模型解析结果 |
original_llm_result | JSONObject | 模型原解析结果 |
error_msg | JSONObject | 报错原因 |
请求示例
请求参数
{
"bizId": "6657adf0-1516-4d42-8e5c-df334beedc28",
"timestamp": 1741593493678,
"data": [
{
"attachment_url": "c2981cee-edf3-4667-abbd-15538e24d96e.jpg",
"llm_result": {
"total_amount": 47.25,
"dining_people": 0,
"merchant_name": "慈溪市公牛电器有限公司",
"dining_time": "2020-03-26",
"details": [
{
"amount": 41.81,
"quantity": 1,
"dish": "配电控制设备*",
"price": 41.81
}
],
"non_compliant_dishes": [],
"type": "expenseStatement",
"alcohol_amount": 0.00
}
}
]
}
返回参数
{
"resCode": 200000,
"resMsg": "success",
"bizId": "6657adf0-1516-4d42-8e5c-df334beedc28",
"data": [
{
"id": 858,
"attachmentUrl": "c2981cee-edf3-4667-abbd-15538e24d96e.jpg",
"fileName": "c2981cee-edf3-4667-abbd-15538e24d96e.jpg",
"type": "测试",
"status": "completed",
"batchCode": "ee6a3337-d195-44dc-a1f6-42aef9326698",
"llmResult": {
"total_amount": 47.25,
"dining_people": 0,
"merchant_name": "慈溪市公牛电器有限公司",
"dining_time": "2020-03-26",
"details": [
{
"amount": 41.81,
"quantity": 1,
"dish": "配电控制设备*",
"price": 41.81
}
],
"non_compliant_dishes": [],
"type": "expenseStatement",
"alcohol_amount": 0.00
},
"uniqueKey": 858
}
]
}