POST api/Resource/PostRunAutoImport

带参数的开始自动导入 如果使用了parms参数,parm对象的属性名称可以作为后台配置的sql语句中的参数,使用{属性名称}包含parm对象中的属性名称。 例如:parms={"key1":"value1","key2":"value2"} 后台sql配置可以为:select * from table1 where field1={key1} and field2='{key2}'

Request Information

URI Parameters

None.

Body Parameters

请求体,{"id":"自动导入编号","parms":{"key1":"value1","key2":"value2"},"dblinkname":"默认为空"}

RequestAutoImport
NameDescriptionTypeAdditional information
id

integer

None.

dblinkname

string

None.

parms

Dictionary of Object [key] and Object [value]

None.

runImmediate

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "dblinkname": "sample string 2",
  "parms": {
    "System.Object": {}
  },
  "runImmediate": true
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestAutoImport'.

Response Information

Resource Description

result
NameDescriptionTypeAdditional information
error

错误代码

integer

None.

message

错误信息

string

None.

data

数据

Object

None.

stacktrace

详细错误信息

string

None.

otherdata

其他返回数据

Object

None.

LastError

string

None.

IsComplete

boolean

None.

total

integer

None.

index

integer

None.

IsTerminate

boolean

None.

taskgroupid

integer

None.

taskid

integer

None.

msg

string

None.

status

integer

None.

serverTime

date

None.

lockdata

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "error": 1,
  "message": "sample string 2",
  "data": {},
  "stacktrace": "sample string 4",
  "otherdata": {},
  "LastError": "sample string 6",
  "IsComplete": true,
  "total": 8,
  "index": 9,
  "IsTerminate": true,
  "taskgroupid": 11,
  "taskid": 12,
  "msg": "sample string 13",
  "status": 14,
  "serverTime": "2025-04-24T20:57:35.4314732+08:00",
  "lockdata": {}
}