批量修改任务(API名称:batchModifyTaskList)
功能介绍
用于批量修改任务
相关接口
接口名称 |
调用说明 |
---|---|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
请求头
KEY |
VALUE |
是否必填 |
描述 |
---|---|---|---|
Content-Type |
application/json |
是 |
无 |
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
URL
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
---|---|---|---|
POST |
https://isdp+域名/openapi/v1/openSceneTask/batchModifyTaskList |
OpenAPI |
application/json |
请求参数
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
taskQueries |
List |
是 |
入参 |
taskQueries入参(注意:任务的基础字段是由场景配置的,最大批量创建10个任务):
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
sceneTaskId |
Long |
是 |
任务ID |
operUserId |
Long |
否 |
操作人ID |
operUserNo |
String |
否 |
操作人编码 |
customerTaskId |
Long |
否 |
客户任务ID |
resource |
String |
否 |
任务来源 |
taskName |
String |
是 |
任务名称 |
sceneName |
String |
是 |
任务场景名称 |
sceneId |
Long |
是 |
任务场景ID |
sceneCode |
String |
是 |
场景编码 |
sceneVersion |
String |
是 |
场景版本 |
signSiteId |
Long |
否 |
作业对象ID |
signSiteCode |
String |
否 |
作业对象编码 |
signSiteName |
String |
否 |
作业对象名称 |
projectNo |
String |
否 |
项目编码 |
projectName |
String |
否 |
项目名称 |
supplierName |
String |
否 |
供应商 |
assignedUserType |
String |
否 |
执行人类型 |
assignedUser |
String |
否 |
执行人账号 |
assignedUserId |
String |
否 |
执行人ID |
assignedUserName |
String |
否 |
执行人名称 |
beginTimestamp |
Long |
否 |
计划开始时间 |
endTimestamp |
Long |
否 |
计划完成时间 |
requiredStartTime |
Long |
否 |
要求开始时间 |
requiredEndTime |
Long |
否 |
要求完成时间 |
projectDuration |
String |
否 |
工期 |
jobDuration |
String |
否 |
标准时长 |
adminOrganizationName |
String |
是 |
管理组织单元名称 |
adminOrganization |
String |
是 |
管理组织单元编码 |
administrativeDivision |
String |
否 |
行政区域 |
administrativeDivisionName |
String |
否 |
行政区域名称 |
regionName |
String |
否 |
行政区域名称 |
regionId |
String |
否 |
行政区域ID |
regionPath |
String |
否 |
行政区域路径 |
skill |
String |
否 |
技能 |
address |
String |
否 |
详细地址 |
templateId |
Long |
否 |
模板ID |
templateCode |
String |
否 |
模板编码 |
templateName |
String |
否 |
模板名称 |
version |
String |
否 |
版本 |
reviewRuleId |
Long |
否 |
任务申请审批流ID |
reviewRuleName |
String |
否 |
任务申请审批流名称 |
taskRemark |
String |
否 |
任务备注 |
isAppraisal |
String |
否 |
任务是否需要审批 |
collectionReviewId |
Long |
否 |
采集审批流ID |
collectionReviewName |
String |
否 |
采集审批流名称 |
collectionProcessType |
String |
否 |
采集审批流类型 |
priority |
String |
否 |
优先级 |
schedulingMode |
String |
否 |
调度模式 |
customerName |
String |
否 |
客户名称 |
customerId |
String |
否 |
客户ID |
operationGuideList |
List |
否 |
操作指导 |
attachmentList |
List |
否 |
附件 |
taskMode |
String |
是 |
任务模式 |
saveDraft |
String |
是 |
0:保持草稿、1:提交 |
taskExtend |
List |
否 |
任务扩展属性 |
url |
String |
否 |
待办地址 |
thirdUrl |
String |
否 |
第三方待办地址 |
preTaskList |
List |
否 |
子任务前后置关系 |
taskExtend扩展属性每个Object字段说明:
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
extendName |
Long |
是 |
任务扩展属性名称 |
extendType |
Long |
是 |
扩展属性类型(1:长文本;2:枚举;3:多枚举;4:日期;5:时间;6:整数;7:小数;20:短文本) |
extendValue |
String |
否 |
任务扩展属性值 |
fieldOrder |
Integeer |
否 |
任务扩展属性顺序 |
isNecessary |
String |
是 |
扩展属性是否必填(1:必填;2:不必填) |
sceneTaskId |
Long |
是 |
任务id |
stage |
Integer |
否 |
任务扩展属性阶段 1:创建阶段 2: 执行阶段 |
unitName |
String |
否 |
单位名称 |
preTaskList子任务前后置关系每个Object字段说明:
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
isEnabledScenePre |
String |
否 |
是否继承场景前后置关系 Y:从场景获取,不取接口参数 N :不从场景获取,只取接口入参为准;默认Y,从场景集成 |
preTaskName |
String |
是 |
前置任务名称 |
preTaskLocation |
String |
是 |
前置任务位置信息 |
taskPreName |
String |
是 |
后置任务名称 |
taskPreLocation |
String |
是 |
后置任务位置 |
preType |
String |
是 |
前置后置关系 |
preTaskLocation参数说明:
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
x |
int |
是 |
|
y |
int |
是 |
taskPreLocation参数说明:
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
x |
int |
是 |
|
y |
int |
是 |
响应参数
参数 |
类型 |
描述 |
---|---|---|
stateCode |
String |
响应状态码:0-成功;其他-失败 |
errorMessage |
String |
响应描述 |
result |
Object |
响应结果内容data、分页数据 |
请求示例
{ "taskQueries": [ { "actualBeginTime": null, "actualEndTime": null, "address": null, "adminOrganization": "830", "adminOrganizationName": "杨凌作业系统测试№", "administrativeDivision": null, "administrativeDivisionName": null, "assignedUserId": "641094", "assignedUserName": "无牙仔", "attachmentList": [], "beginTimestamp": null, "category": null, "categoryId": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "checkOrderId": null, "checkOrderName": null, "collectionProcessType": null, "collectionReviewId": null, "collectionReviewName": null, "commandSwitch": "", "createName": "", "createdBy": null, "creationDate": "", "creationTimestamp": null, "customerId": null, "customerName": null, "endTimestamp": null, "isApplyApprove": 0, "isAppraisal": null, "jobDuration": null, "latitude": "", "longitude": "", "operUserId": null, "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentCategory": null, "parentCategoryId": null, "priority": null, "processType": null, "projectDuration": null, "projectName": null, "projectNo": null, "regionId": null, "regionName": null, "regionPath": null, "regionPathName": null, "requiredEndTime": null, "requiredStartTime": null, "reviewRuleId": null, "reviewRuleName": "", "saveDraft": "0", "sceneCode": "TS20230331164909638", "sceneId": 132575, "sceneLicense": null, "sceneMode": 4, "sceneName": "zhang子任务前后置关系_串行", "sceneTaskId": 3245532, "sceneVersion": "1.1", "schedulingMode": null, "signInConfig": null, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "subTaskList": [ { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 1, "oldTaskName": "子任务11", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245532, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239384", "sceneTaskId": 1971245, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务11", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 2, "oldTaskName": "子任务22", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245532, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239385", "sceneTaskId": 1971246, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务22", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 3, "oldTaskName": "子任务33", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245532, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239386", "sceneTaskId": 1971247, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务33", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" } ], "isCustomerTaskIdDuplicate": "Y", "customerTaskId": 1667986035211, "taskMode": 4, "taskName": "openapi_批量创建zhang子任务前后置关系_串行01", "taskObjectType": "", "taskRemark": null, "templateCode": null, "templateId": null, "templateName": null, "userGroup": "", "userGroupName": "", "version": null, "isEnabledScenePre": "N", "preTaskList": [ { "preTaskName": "子任务11", "preTaskLocation": "{\"x\":250,\"y\":300}", "taskPreName": "子任务22", "taskPreLocation": "{\"x\":250,\"y\":600}", "preType": "FS" } ] }, { "actualBeginTime": null, "actualEndTime": null, "address": null, "adminOrganization": "830", "adminOrganizationName": "杨凌作业系统测试№", "administrativeDivision": null, "administrativeDivisionName": null, "assignedUserId": "641094", "assignedUserName": "无牙仔", "attachmentList": [], "beginTimestamp": null, "category": null, "categoryId": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "checkOrderId": null, "checkOrderName": null, "collectionProcessType": null, "collectionReviewId": null, "collectionReviewName": null, "commandSwitch": "", "createName": "", "createdBy": null, "creationDate": "", "creationTimestamp": null, "customerId": null, "customerName": null, "endTimestamp": null, "isApplyApprove": 0, "isAppraisal": null, "jobDuration": null, "latitude": "", "longitude": "", "operUserId": null, "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentCategory": null, "parentCategoryId": null, "priority": null, "processType": null, "projectDuration": null, "projectName": null, "projectNo": null, "regionId": null, "regionName": null, "regionPath": null, "regionPathName": null, "requiredEndTime": null, "requiredStartTime": null, "reviewRuleId": null, "reviewRuleName": "", "saveDraft": "0", "sceneCode": "TS20230403100040256", "sceneId": 132827, "sceneLicense": null, "sceneMode": 4, "sceneName": "zhang子任务无配置关系", "sceneTaskId": 3245531, "sceneVersion": "1.0", "schedulingMode": null, "signInConfig": null, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "subTaskList": [ { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 1, "oldTaskName": "子任务11", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245531, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239679", "sceneTaskId": 1971248, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务11", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 2, "oldTaskName": "子任务22", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245531, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239680", "sceneTaskId": 1971249, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务22", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 3, "oldTaskName": "子任务33", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245531, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239681", "sceneTaskId": 1971250, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务33", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" } ], "isCustomerTaskIdDuplicate": "Y", "customerTaskId": 1667986035211, "taskMode": 4, "taskName": "openapi_批量创建zhang子任务无配置关系01", "taskObjectType": "", "taskRemark": null, "templateCode": null, "templateId": null, "templateName": null, "userGroup": "", "userGroupName": "", "version": null, "isEnabledScenePre": "N", "preTaskList": [ { "preTaskName": "子任务11", "preTaskLocation": "{\"x\":250,\"y\":100}", "taskPreName": "子任务33", "taskPreLocation": "{\"x\":250,\"y\":600}", "preType": "FS" }, { "preTaskName": "子任务22", "preTaskLocation": "{\"x\":250,\"y\":300}", "taskPreName": "子任务33", "taskPreLocation": "{\"x\":250,\"y\":600}", "preType": "FS" } ] }, { "actualBeginTime": null, "actualEndTime": null, "address": null, "adminOrganization": "830", "adminOrganizationName": "杨凌作业系统测试№", "administrativeDivision": null, "administrativeDivisionName": null, "assignedUserId": "641094", "assignedUserName": "无牙仔", "attachmentList": [], "beginTimestamp": null, "category": null, "categoryId": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "checkOrderId": null, "checkOrderName": null, "collectionProcessType": null, "collectionReviewId": null, "collectionReviewName": null, "commandSwitch": "", "createName": "", "createdBy": null, "creationDate": "", "creationTimestamp": null, "customerId": null, "customerName": null, "endTimestamp": null, "isApplyApprove": 0, "isAppraisal": null, "jobDuration": null, "latitude": "", "longitude": "", "operUserId": null, "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentCategory": null, "parentCategoryId": null, "priority": null, "processType": null, "projectDuration": null, "projectName": null, "projectNo": null, "regionId": null, "regionName": null, "regionPath": null, "regionPathName": null, "requiredEndTime": null, "requiredStartTime": null, "reviewRuleId": null, "reviewRuleName": "", "saveDraft": "0", "sceneCode": "TS20230403100252102", "sceneId": 132828, "sceneLicense": null, "sceneMode": 4, "sceneName": "zhang4个子任务_有一个无配置关系", "sceneTaskId": 3245533, "sceneVersion": "1.0", "schedulingMode": null, "signInConfig": null, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "subTaskList": [ { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 1, "oldTaskName": "子任务11", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245533, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239682", "sceneTaskId": 1971251, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务11", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 2, "oldTaskName": "子任务22", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245533, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239683", "sceneTaskId": 1971252, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务22", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 3, "oldTaskName": "子任务33", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245533, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239684", "sceneTaskId": 1971253, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务33", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" }, { "address": "", "administrativeDivision": null, "administrativeDivisionName": null, "allIssueList": [], "assignedUserId": "641094", "assignedUserName": "无牙仔", "beginTimestamp": null, "ccPerson": "", "ccPersonGroup": "", "ccPersonGroupName": "", "ccPersonName": "", "collectionReviewName": null, "description": "", "endTimestamp": null, "isAppraisal": 0, "isNA": 0, "issueId": null, "keyPoint": null, "latitude": "", "licenseSwitch": 0, "longitude": "", "modeOrder": 3, "oldTaskName": "子任务44", "operationGuideList": [], "owner": "", "ownerGroup": "", "ownerGroupName": "", "ownerName": "", "parentTaskId": 3245533, "priority": null, "procedureOrNot": 0, "regionName": null, "regionPath": null, "sceneModeCode": "239685", "sceneTaskId": 1971254, "signSiteCode": "", "signSiteId": "", "signSiteName": "", "skill": null, "status": 0, "taskExtend": [], "taskName": "子任务44", "taskObjectType": "", "taskType": 2, "templateCode": "", "templateName": "", "userGroup": "", "userGroupName": "", "version": "" } ], "isCustomerTaskIdDuplicate": "Y", "customerTaskId": 1667986035211, "taskMode": 4, "taskName": "openapi_批量创建zhang4个子任务_有一个无配置关系01", "taskObjectType": "", "taskRemark": null, "templateCode": null, "templateId": null, "templateName": null, "userGroup": "", "userGroupName": "", "version": null, "isEnabledScenePre": "Y", "preTaskList": [] } ] }
响应示例
{ "stateCode": "0", "errorMessage": null, "result": [ { "errorMessage": "", "stateCode": "0" }, { "errorMessage": "", "stateCode": "0" }, { "errorMessage": "", "stateCode": "0" } ] }
状态码
状态码请参见状态码。
错误码
错误码请参见错误码。