简要描述:
- 获取导入excel的处理结果
接口版本:
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
0.0.1 | 宋德美 | 2024-22-22 |
请求URL:
- /gw/fs/getExcelProcess
请求方式:
- POST
请求头:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
Content-Type | 是 | string | 请求类型: application/json |
Token | 是 | 登录token |
请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
import_id | 是 | string | 导入接口返回的import_id |
返回示例:
正确时返回:
{
"code": 200,
"data": {
"config": [
{
"title": "",
"field": "import_id",
"type": "key",
"max_length": 0,
"column": 11,
"required": false,
"exist_field": true
},
{
"title": "妈妈姓名",
"field": "customer_name",
"type": "varchar",
"max_length": 0,
"column": 2,
"required": false,
"exist_field": true
},
{
"title": "妈妈手机",
"field": "customer_tel",
"type": "varchar",
"max_length": 0,
"column": 5,
"required": false,
"exist_field": true
},
{
"title": "登记日期",
"field": "dj_day",
"type": "datetime",
"max_length": 0,
"column": 8,
"required": false,
"exist_field": true
},
{
"title": "宝宝生日",
"field": "baby_birthday",
"type": "date",
"max_length": 0,
"column": 6,
"required": false,
"exist_field": true
}
],
"file_path": "/data/git/photos/uploads/excels/202411/365083cb75f9aa3722145506.xlsx",
"file_key": "uploads/excels/202411/365083cb75f9aa3722145506.xlsx",
"table_name": "crm_c_excel_import_data",
"status": "success",
"msg": "导入成功",
"start_time": "2024-11-22 14:55:06",
"end_time": "2024-11-22 14:55:14"
},
"msg": ""
}
错误时返回:
{
"code": 404,
"data": null,
"msg": "指定导入任务不存在:3kgwnbueluir6ghfflsyhxvg7mdit75p"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
config | json | 导入配置,由上传时传过去的 |
file_path | string | excel文件路径 |
file_key | string | 相对路径 |
table_name | string | 表 名 |
status | string | init:未处理或待处理,running:正处理,error:错误,success:成功完成 |
msg | string | 如果有错误,这里有详细的错误信息 |
start_time | string | 开始时间 |
end_time | string | 结束时间 |
。。。 |
备注:
- 更多返回错误代码请看首页的错误代码描述
作者:宋德美 创建时间:2024-11-22 14:52
最后编辑:宋德美 更新时间:2024-12-08 14:43
最后编辑:宋德美 更新时间:2024-12-08 14:43