批量新增作业对象(API名称:batchAddAndUpdateTaskObject)
功能介绍
用于批量新增作业对象
相关接口
URL
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
---|---|---|---|
POST |
https://isdp+域名/openapi/v1/taskObjectFacede/batchAddAndUpdateTaskObject |
OpenAPI |
application/json |
请求头
KEY |
VALUE |
是否必填 |
描述 |
---|---|---|---|
Content-Type |
application/json |
是 |
无 |
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
signSiteModels |
object |
是 |
data如下(批量条数不能超过5条) |
Data入参:
字段名 |
字段名称 |
是否必填 |
类型 |
示例 |
signSiteCode |
作业对象编码 |
是 |
String |
测试作业对象编码111 |
signSiteName |
作业对象名称 |
是 |
String |
测试作业对象名称111 |
signSiteType |
作业对象类型 |
否 |
String |
2 |
longitude |
经度 |
否 |
String |
-18 |
latitude |
纬度 |
否 |
String |
-90 |
customerCode |
客户编码 |
否 |
String |
fdsafsda |
supplierCode |
供应商编码 |
否 |
String |
作业对象名称 |
signSiteAddress |
详细地址 |
否 |
String |
1 |
secret |
是否敏感编码 |
否 |
String |
0 |
ownerCode |
责任人编码(多个用英文逗号隔开) |
否 |
String |
100XXX@isdp,personTest5 |
ownerGroupCode |
责任群组编码 |
否 |
String |
321e |
orgNo |
组织编码 |
否 |
String |
Ctest1 |
projectNo |
项目编码 |
否 |
String |
3213213 |
adminRegionName |
末级行政区域编码 |
否 |
String |
111111,112,234232 |
deviceId |
设备Id |
否 |
String |
1234 |
coordinate |
位置坐标xyz |
否 |
String |
x,y,z |
positionSystem |
定位系统类型 |
否 |
String |
不涉及 或者 GPS 或者UWB
说明:
longitude和latitude有值的情况下,此参数必填,positionSystem为GPS,否则会导致经纬度显示不全。 coordinate有值情况,positionSystem为UWB。 |
taskObjectGroupId |
作业对象分组 |
否 |
String |
123 |
deviceTypeId |
设备类型Id |
否 |
String |
123 |
signSiteParentId |
上级作业对象Id |
否 |
String |
123 |
signSiteSource |
第三方数据来源 |
否 |
String |
零售 |
响应参数
参数 |
类型 |
描述 |
---|---|---|
stateCode |
String |
处理结果(0代表success) |
errorMessage |
String |
错误消息 |
result |
Object |
返回结果 |
请求示例
{ "signSiteModels":[ { "signSiteCode":"测试作业对象编码001", "signSiteName":"测试作业对象名称001", "signSiteType":"屋顶站", "longitude":-180, "latitude":-90, "customerCode":"fdsafsda", "supplierCode":"", "signSiteAddress":"3213213123", "secret":"0", "ownerCode":"100XXX@isdp,personTest5", "ownerGroupCode":"", "orgNo":"Ctest1", "projectNo":"3213213", "adminRegionName":"111111,112,234232" "deviceId":"11111", "deviceTypeId ": 12345, "coordinate":"11,22,33" , "positionSystem":"UWB", "taskObjectGroupId": 1234, "signSiteParentId": 1234, "sighSiteSource": "第三方" }, { "signSiteCode":"测试作业对象编码002", "signSiteName":"测试作业对象名称002", "signSiteType":"屋顶站", "longitude":-180, "latitude":-90, "customerCode":"fdsafsda", "supplierCode":"", "signSiteAddress":"3213213123", "secret":"0", "ownerCode":"100XXX@isdp,personTest5", "ownerGroupCode":"", "orgNo":"Ctest1", "projectNo":"3213213", "adminRegionName":"111111,112,234232" "deviceId":"11111", "deviceTypeId ": 12345, "coordinate":"11,22,33" , "positionSystem":"UWB", "taskObjectGroupId": 1234, "signSiteParentId": 1234, "sighSiteSource": "第三方" }, { "signSiteCode":"测试作业对象编码003", "signSiteName":"测试作业对象名称003", "signSiteType":"屋顶站", "longitude":-180, "latitude":-90, "customerCode":"fdsafsda", "supplierCode":"", "signSiteAddress":"3213213123", "secret":"0", "ownerCode":"100XXX@isdp,personTest5", "ownerGroupCode":"", "orgNo":"Ctest1", "projectNo":"3213213", "adminRegionName":"111111,112,234232" "deviceId":"11111", "deviceTypeId ": 12345, "coordinate":"11,22,33" , "positionSystem":"UWB", "taskObjectGroupId": 1234, "signSiteParentId": 1234, "sighSiteSource": "第三方" }, { "signSiteCode":"测试作业对象编码004", "signSiteName":"测试作业对象名称004", "signSiteType":"屋顶站", "longitude":-180, "latitude":-90, "customerCode":"fdsafsda", "supplierCode":"", "signSiteAddress":"3213213123", "secret":"0", "ownerCode":"100XXX@isdp,personTest5", "ownerGroupCode":"", "orgNo":"Ctest1", "projectNo":"3213213", "adminRegionName":"111111,112,234232" "deviceId":"11111", "deviceTypeId ": 12345, "coordinate":"11,22,33" , "positionSystem":"UWB", "taskObjectGroupId": 1234, "signSiteParentId": 1234, "sighSiteSource": "第三方" }, { "signSiteCode":"测试作业对象编码005", "signSiteName":"测试作业对象名称005", "signSiteType":"屋顶站", "longitude":-180, "latitude":-90, "customerCode":"fdsafsda", "supplierCode":"", "signSiteAddress":"3213213123", "secret":"0", "ownerCode":"100XXX@isdp,personTest5", "ownerGroupCode":"", "orgNo":"Ctest1", "projectNo":"3213213", "adminRegionName":"111111,112,234232" "deviceId":"11111", "deviceTypeId ": 12345, "coordinate":"11,22,33" , "positionSystem":"UWB", "taskObjectGroupId": 1234, "signSiteParentId": 1234, "sighSiteSource": "第三方" }, { "signSiteCode":"测试作业对象编码006", "signSiteName":"测试作业对象名称006", "signSiteType":"屋顶站", "longitude":-180, "latitude":-90, "customerCode":"fdsafsda", "supplierCode":"", "signSiteAddress":"3213213123", "secret":"0", "ownerCode":"100XXX@isdp,personTest5", "ownerGroupCode":"", "orgNo":"Ctest1", "projectNo":"3213213", "adminRegionName":"111111,112,234232" "deviceId":"11111", "deviceTypeId ": 12345, "coordinate":"11,22,33" , "positionSystem":"UWB", "taskObjectGroupId": 1234, "signSiteParentId": 1234, "sighSiteSource": "第三方" } ] }
响应示例
{ stateCode": "2", "errorMessage": "新建条数不能超过5个", "result": null }
状态码
状态码请参见状态码。
错误码
错误码请参见错误码。