华为云用户手册

  • 响应参数 参数 类型 描述 errorMessage String 错误信息:接口错误时有值,正常调用时为空 stateCode String 响应状态:“0”成功 其他值失败 result Object 响应消息体 result出参: 参数 类型 描述 chapterDuration Int 章节时长 chapterId Int 课程大纲章节表主键ID chapterName String 章节名称 chapterOrder int 章节的顺序 1-开始 chapterRemark String 章节描述 chapterType int 章节类型 1-视频 2-pdf courseId Long 课程ID deleteFlag Int 删除标识:0-正常,1-删除 foolproofDuration int 防呆插入时间 单位:分钟 foolproofRemark String 防呆提示描述 foolproofSwitch int 防呆设置 1-开启 2-关闭 tenantId Long 租户ID createdBy Long 创建人Id createName String 创建人名称 creationTimestamp Long 创建时间戳 creationDate String 创建时间 lastUpdatedBy Long 最后更新人Id lastUpdateName String 最后更新人名称 lastUpdateDate String 最后更新时间 lastUpdateTimestamp Long 最后更新时间戳 entityName String 实体 appName String 服务
  • 响应示例 { "stateCode": "0", "errorMessage": "success", "result": { "pos": 0, "totalCount": 7, "data": [ { "index": 0, "startDate": "2022-06-06", "endDate": "2022-06-11", "issueNum": 10 }, { "index": 1, "startDate": "2022-05-30", "endDate": "2022-06-05", "issueNum": 20 } ] } }
  • 请求示例 { "date": "2022-06-11", "dateType": "week", "period": 7, "orgIdList": ["123", "124"], "queryType": 1, "pageStart": 0, "pageSize": 15 }
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": [{ "sceneTaskId": 5010379, "taskId": 5064810, "taskName": "子任务1_20230204_164453", "status": 1, "createdBy": 1823, "createName": "张三", "currentProcedureId": null, "currentProcedureName": null, "pocedureOrNot": 0, "checkOrderId": null, "checkOrderName": null, "checkOrderType": null, "description": "", "actualEndTime": null, "actualBeginTime": null, "beginTimestamp": null, "endTimestamp": null, "processFeedback": null, "isNa": 0, "signSiteId": null, "signSiteCode": "", "signSiteName": "", "regionId": null, "regionPath": null, "regionName": null, "isExecute": 1, "priority": "", "jobDuration": null, "projectDuration": null, "administrativeDivision": "", "administrativeDivisionName": "", "skill": "", "address": "", "requiredStartTime": null, "requiredEndTime": null, "taskExtend": [{ "extendName": "子任务单枚2", "stage": 1, "fieldOrder": 3, "extendValue": "123", "udfName": "UDF7", "extendType": 2, "isNecessary": 2 }, { "extendName": "子任务多枚2", "stage": 1, "fieldOrder": 4, "extendValue": "多1;多2", "udfName": "UDF8", "extendType": 3, "isNecessary": 2 }, { "extendName": "短文本1", "stage": 1, "fieldOrder": 6, "extendValue": "默认值", "udfName": "UDF1", "extendType": 20, "isNecessary": 2 }], "procedureList": [{ "isAppraisal": null, "collectionReviewName": null, "licenseSwitch": 0, "operationGuideList": [], "description": "", "templateCode": null, "templateId": null, "version": null, "templateName": null, "licenseTag": 0, "taskName": "简单工序", "collectionReviewId": null, "procedureOrder": 1 }, { "isAppraisal": 1, "collectionReviewName": "测试审批流123", "licenseSwitch": 0, "operationGuideList": [], "description": "", "templateCode": "QC2022XXXXXXXXXXXXX", "templateId": 268612896, "version": "1.0", "templateName": "测试openApi导入模板1", "licenseTag": 0, "taskName": "工序带采集审批", "collectionReviewId": 100417, "procedureOrder": 2 }] }] }
  • 请求参数 参数 类型 是否必填 描述 signSiteCode varchar(100) 是 作业对象编码 signSiteName varchar(100) 是 作业对象名称 itemCode varchar(100) 是 条目编码 itemName varchar(100) 是 条目名称 designValue varchar(10) 是 设计值 unit varchar(10) 是 单位 dataSource int(1) 否 数据来源
  • 请求示例 { "signSiteDesigns" : [{ "signSiteCode" : "作业对象001", "signSiteName" : "作业对象001", "itemCode" : "XX品牌_招标2019_WXJZTX-010_天线", "itemName" : "XX品牌_招标2019_WXJZTX-010_天线", "designValue" : "3", "unit" : "副", "dataSource" : 0 }, { "signSiteCode" : "作业对象002", "signSiteName" : "作业对象002", "itemCode" : "XX品牌__招标2019_WXJZMH-019_美化外罩", "itemName" : "XX品牌__招标2019_WXJZMH-019_美化外罩", "designValue" : null, "unit" : "米", "dataSource" : 0 } ] }
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": [{ "id" : 1001, "signSiteCode" : "作业对象001", "signSiteName" : "作业对象001", "itemCode" : "XX品牌_招标2019_WXJZTX-010_天线", "itemName" : "XX品牌_招标2019_WXJZTX-010_天线", "designValue" : "3", "unit" : "副", "dataSource" : 0 … }, { "id" : 1002, "signSiteCode" : "作业对象002", "signSiteName" : "作业对象002", "itemCode" : "XX品牌__招标2019_WXJZMH-019_美化外罩", "itemName" : "XX品牌__招标2019_WXJZMH-019_美化外罩", "designValue" : null, "unit" : "米", "dataSource" : 0 … } ] }
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": [ { "errorMessage": "", "stateCode": "0" }, { "errorMessage": "", "stateCode": "0" }, { "errorMessage": "", "stateCode": "0" } ] }
  • 请求示例 { "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": [] } ] }
  • 请求参数 参数 类型 是否必填 描述 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 是 无现成子任务关系,则初始值赋 X=50 Y=50 后置子任务,则在当前子任务基础上赋值:X不变,Y增加250 兄弟子任务,则在当前子任务基础上赋值:X增加150,Y不变 y int 是 taskPreLocation参数说明: 参数 类型 是否必填 描述 x int 是 无现成子任务关系,则初始值赋 X=50 Y=50 后置子任务,则在当前子任务基础上赋值:X不变,Y增加250 兄弟子任务,则在当前子任务基础上赋值:X增加150,Y不变 y int 是
  • 相关接口 接口名称 调用说明 获取Token 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 查询父任务 调用该接口获取到父任务ID。 查询简单任务采集的文件列表时,如果查询父任务采集的文件列表,需要输入父任务ID。 查询子任务 调用该接口获取到子任务ID。 查询简单任务采集的文件列表时,如果查询子任务采集的文件列表表,需要输入子任务ID。 查询工序 调用该接口获取到工序ID。 查询简单任务采集的文件列表时,如果查询工序采集的文件列表,需要输入工序ID。
  • 响应示例 { "stateCode": "0", "errorMessage": null, "result": { "data": [ { "sceneTaskId": 40087, "taskType": 3, "fileId": "1169921", "fileName": "2021-05-24-17-39-29-939.jpg", "fileType": "1", "createdBy": 327744, "createName": "f20529" }, { "sceneTaskId": 40087, "taskType": 3, "fileId": "1169926", "fileName": "2021-05-24-17-39-36-584.jpg", "fileType": "1", "createdBy": 327744, "createName": "f20529" }, { "sceneTaskId": 40088, "taskType": 3, "fileId": "1170259", "fileName": "2021-05-24-17-45-47-867.jpg", "fileType": "1", "createdBy": 327744, "createName": "f20529" } ], "pos": 0, "total_count": 3, "entityName": null } }
  • 响应示例 { "stateCode": "0", "errorMessage": "成功", "result": { "pos": 0, "totalCount": 2, "data": [ { "issueLevel": "一般", "issueNum": 1, "code": "Issue20220830176503", "rate": "25.0%" }, { "issueLevel": "重要", "issueNum": 3, "code": "Issue20220830161025,Issue20220907109883,Issue20220920101025", "rate": "75.0%" } ], "header": null } }
  • 响应示例 { "stateCode": "0", "errorMessage": "成功", "result": { "pos": 0, "totalCount": 0, "data": [ { "reviewResult ": "", "resultNum ": 0, "rate ":"", "taskId ": "" } ], "header": null } }
  • 响应示例 { "access_token": "*****************", "token_type": "bearer", "expires_in": 359, "scope": "all", "plat_user": { "userId": 107027, "userNo": "XXXXXXXXXXX", "userName": "test", "userType": "API", "phone": null, "tenantId": 50222, "status": "0", "deleteFlag": 0, "pwdUpdateDate": "2022-03-17T02:35:04.000+00:00", "userExtendMap": { "clientId": "isdp-xxxx-openapi" }, "password": null, "salt": null, "currentLoginType": "password" } }
  • 响应示例 { "stateCode": "0", "errorMessage": "query success", "result": { "data": [ { "projectNo": "20200723", "customerTaskId": null, "taskId": 140039, "taskName": "北京-XXXX-20200723S-质检位置-01", "signSiteId": 407944, "signSiteCode": "质检作业对象-01", "signSiteName": "质检作业对象-01", "templateId": 1791, "templateCode": "EHS20200724191720768", "templateName": "测试模板", "version": "1.2", "updateDate": "2020-09-16T12:44:18.000+00:00", "createDate": "2020-07-27T11:31:55.000+00:00", "planStartTime": "2020-07-26T16:00:00.000+00:00", "planEndTime": "2020-07-26T16:00:00.000+00:00", "partner": null, "status": 2, "completeDate": null, "statusCollection": null, "statusApprove": null, "assignedUserName": "霍XX", "firstCommitter": null, "firstSupplierName": null, "firstSubmitDate": null, "lastcommitter": null, "lastSubmitDate": null, "reviewEndDate": null, "reviewBeginDate": null } ], "pos": 0, "total_count": 1 } }
  • 请求示例 { "customerTaskId": [123456,23456], "taskId":[123456,23456], "projectNo ": "123-my project", "signSiteCode": "my-signSiteCode", "collectBeginDate": "2020-09-01", "collectEndDate": "2020-09-09", "reviewBeginDate": "2020-09-01", "reviewEndDate": "2020-09-09", "taskCloseBeginDate": "2020-09-01", "taskCloseEndDate": "2020-09-09", "pageStart": 1, "pageSize": 50 }
  • 请求参数 参数 类型 是否必填 描述 msgId String 是 消息ID deviceId String 是 设备编号 获取设备编号API请参见:摄像头列表查询(好望云平台)(API名称:getDeviceList) deviceName String 否 设备名称 channelType String 否 通道类型 channelId String 否 通道编号 channelName String 否 通道名称 msgType String 是 消息类型: device_status:设备状态通知 device_alarm:智能告警通知 data Json 是 消息数据 当msgType为device_alarm时,data格式如下: 参数 类型 是否必填 描述 alarmType String 是 isdp唯一设备ID 获取isdp唯一设备ID API请参见:摄像头列表查询(好望云平台)(API名称:getDeviceList) extendData List 是 扩展字段 projectCode String 否 项目编码 category String 否 类别 itemID String 否 审核项ID timeStamp String 否 时间戳 vedioProjectFlag String 否 视频工程标志 optionType String 否 类别 result String 否 结果 resultByObjectList String 否 审核项结果集 objectID String 否 对象ID result String 否 审核结果 remarkCn String 否 描述中文 remarkEn String 否 描述英文 remarkNo String 否 描述编号 num String 否 数量 当msgType为device_ status时,data格式如下: 参数 类型 是否必填 描述 method String 是 设备状态变更方法: 渠道变更:channel_state_notice 退出:logout 接入:login
  • 请求示例 { "msgId": "device_1225_ai_check--1_1609204598469", "msgType": "device_alarm", "data": [ { "alarmType": "PPE", "extendData": { "projectCode": "", "category": "EHS", "itemID": "", "timeStamp": 1609204598975, "vedioProjectFlag": "N", "optionType": "0", "result": "N", "resultByObjectList": [ { "objectID": "helmet", "result": "N", "remarkCn": "有人未穿戴 helmet", "remarkEn": "Someone didn't dress helmet", "remarkNo": "2003", "num": 0 }, { "objectID": "high_visible_vest", "result": "N", "remarkCn": "有人未穿戴 high_visible_vest", "remarkEn": "Someone didn't dress high_visible_vest", "remarkNo": "2003", "num": 1 } ], "detailList": [ { "photo": "R1S911D00020413320201229091638842125135", "markedPhoto": "R1S219D00021005220201229091641005124841", "objectList": [ { "objectID": "helmet", "result": "N", "remarkCn": "有人未穿戴 helmet", "remarkEn": "Someone didn't dress helmet", "remarkNo": "2003", "num": 0 }, { "objectID": "high_visible_vest", "result": "N", "remarkCn": "有人未穿戴 high_visible_vest", "remarkEn": "Someone didn't dress high_visible_vest", "remarkNo": "2003", "num": 1 } ], "picType": "P", "result": "N" } ] } } ], "deviceId": "device_1225_ai_check--1" }
  • 请求参数 参数 类型 是否必填 描述 message_id Int 是 消息ID message_type String 是 消息类型 device_id String 是 设备编号 device_name String 是 设备名称 channel_type String 否 通道类型 channel_id String 否 通道ID channel_name String 否 通道名称 alarm_type String 否 告警类型 alarm_status String 否 告警状态 alarm_time String 否 告警时间 alarm_uuid String 否 告警唯一标识 expire_time_utc String 否 超时时间 classification String 否 告警种类 alarm_type_name String 否 告警类型名称 users String 否 用户ID
  • 请求示例 { "message_id": 1602817486772985497, "message_type": "device_alarm", "data": { "device_id": "2198061243WLL4002533", "device_name": "Huawei HoloSens NVR800", "channel_type": "video_input", "channel_id": 2, "channel_name": "HoloSens SDC", "alarm_type": "people_count_line_alarm", "alarm_status": "start", "alarm_time": "2020-10-16T11:04:47+08:00", "alarm_uuid": "2198061243WLL4002533_1_people_count_line_alarm_20201016110447_11", "expire_time_utc": "2020-10-23 03:04:46", "classification": "crowd_line", "alarm_type_name": "", "users": null } }
  • 相关API 接口名称 调用说明 获取Token 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 获取设备列表 调用该接口获取到isdp唯一设备ID。 保存设备模板时,需要输入isdp唯一设备ID。 添加设备 调用该接口添加设备。 修改设备 调用该接口修改设备。 删除设备 调用该接口删除设备。 获取设备信息 调用该接口获取设备信息。
  • 请求参数 参数 类型 是否必填 描述 isdpDeviceIds String 是 isdp唯一设备ID集,List形式 获取isdp唯一设备ID API请参见:摄像头列表查询(好望云平台)(API名称:getDeviceList) templateId Long 是 模板编号 templateCode String 是 模板代码 templateName String 是 模板名称 templateParams String 是 模板参数集,List形式 objectId String 是 审核项编号 objectCode String 是 审核项代码 objectName String 是 审核项名称
  • 请求示例 { "isdpDeviceIds": ["21024125389SL7002176--1","21024125389SL7002178--1"], "templateId": 88888888, "templateCode":"bestDC", "templateName":"bestDC识别对象模板", "templateParams":[ { "objectId":"30", "objectCode":"helmet", "objectName":"安全帽" }, { "objectId":"31", "objectCode":"high_visible_vest", "objectName":"荧光衣" }, { "objectId":"32", "objectCode":"fire", "objectName":"火" }, { "objectId":"33", "objectCode":"smoke", "objectName":"烟" }, { "objectId":"34", "objectCode":"face", "objectName":"人脸" } ] }
  • 请求参数 参数 类型 是否必填 描述 channelId String 是 通道ID 获取通道ID API请参见:摄像头列表查询(好望云平台)(API名称:getDeviceList) deviceId String 是 设备编号 获取设备编号API请参见:摄像头列表查询(好望云平台)(API名称:getDeviceList) endTime String 是 结束时间,格式如:yyyy-MM-dd HH:mm:ss,北京时间 recorType String 否 录像类型,全量录像:NORMAL_RECORD 动检录像:MOTION_RECORD 不传,则默认两种类型 startTime String 是 开始时间,格式如:yyyy-MM-dd HH:mm:ss,北京时间
  • 响应参数 字段名 数据类型 字段名称 proxy String 代理 appId String app唯一标识 expirationTime int 超时时间 tokenBegin String 令牌有效开始时间 tokenEnd String 令牌有效结束时间 token String 令牌 publishUrl String 推流地址 transcodingFramerate String 转码帧率 transcodingWidth String 转码宽度 currentPushSum String 当前推流路数 pushEnable String 推流是否可用 pushLimit String 推流限制 transcodingHeight String 转码高度 transcodingBitrate String 码率 networkQuality String 网络质量 playQuality String 播放质量 playQualityCondition String 播放质量各参数值 proxyList String 代理列表 metering String 计费信息 safetyHelmetInfo String 安全帽信息
  • 响应示例 { "status": 1, "message": "SUC CES S", "error": null, "data": { "proxy": "video.isdp.test.huawei.com", "appId": "b78e8a89d5034d27b522c3f1f12ed1c5", "expirationTime": 120, "tokenBegin": "2021-03-03T11:27:45", "tokenEnd": "2021-03-03T11:29:45", "token": "006b78e8a89d5034d27b522c3f1f12ed1c5IABCvPqGghrZIofeFJmzo+VTfzYAPhLSLyjsrLQ/mZEkAtnHeF8AAAAAIgA77pRcsFNAYAQAAQCoAj9gAgCoAj9gAwCoAj9gBACoAj9g", "publishUrl": "rtmp://pushdev.gupiaoai.com/live/2253_10882", "publishInfo": { "transcodingFramerate": 0, "transcodingWidth": 0, "currentPushSum": 2, "pushEnable": true, "pushLimit": 100, "transcodingHeight": 0, "transcodingBitrate": 0 }, "networkQuality": { "normal": "16-30", "strong": "0-15", "bad": "51-100", "weak": "31-50" }, "playQuality": { "frameRate": 15, "bitRate": 320, "resolutionHeight": 360, "resolutionWidth": 480 }, "playQualityCondition": { "t4G": 31, "t5G": 31, "t2G": 0, "CPU": 80, "t3G": 0, "WIFI": 31 }, "proxyList": [ "172-19-99-245.video.isdp.test.huawei.com", "172-19-99-228.video.isdp.test.huawei.com" ], "metering": { "message": "5003", "status": 0 }, "safetyHelmetInfo": { "resolutionRatio": null } }, "timestamp": "2021-03-03T11:27:46.921+0800" }
  • 请求示例 { "sceneName": "掘锚机日常电气检修标准作业流程", "adminOrganization": "1001", "sceneMode": 3, "taskSceneExtendFieldList": [ { "fieldName": "流程编号", "fieldDefaultValue": "SHPM-12-A02020201-0001", "stage": 1 }, { "fieldName": "配件", "fieldDefaultValue": "", "stage": 1 }, { "fieldName": "材料", "fieldDefaultValue": "棉纱(0.2Kg)、防锈油(1桶)、清洗剂(1瓶)。", "stage": 1 }, { "fieldName": "相关事故案例", "fieldDefaultValue": "", "stage": 1 }, { "fieldName": "工具", "fieldDefaultValue": "万用表(1块)、兆欧表(1块)、一字改锥6X200mm(1把)、十字改锥6X200mm(1把),克丝钳(1把)、便携式甲烷检测报警仪(1部)、8寸活动扳手(1把)、公制内六角扳手(1套)、验电器(1部)、放电绳(1根)、接地线(1根)等。", "stage": 1 }, { "fieldName": "重要危险源", "fieldDefaultValue": "1)顶、帮支护不完好,片帮,造成人员伤害。2)未检查瓦斯浓度或瓦斯浓度超限禁止送电。3)未检查瓦斯浓度或瓦斯浓度超限禁止送电。", "stage": 1 }, { "fieldName": "使用频率", "fieldDefaultValue": "高", "stage": 1 } ], "taskSceneModeList": [ { "sceneModeName": "停机、停电", "description": "1)掘锚机停止运行;2)掘锚机控制开关手把打到零位。", "templateName": "测试openApi导入模板" } ], "templateInfoList": [ { "templateName": "测试openApi导入模板", "kcpList": [ { "children": [ { "name": "启动掘锚机", "operationGuide": "【危险源及风险】1)启动前未预警,造成人员伤害;2)启动掘锚机前,未确认周围无人员作业,造成人员伤害。\n【风险值】12\n【风险等级】中等\n【管控措施】设备启动前需发出预警信号,确保设备周边无人时方可启动。", "qualityStandard": "运行正常。", "issueType": "掘锚工艺#工器具不完好或有缺陷,造成事故", "severity": 1, "outputList": [ { "outputType": "文本", "outputName": "备注" }, { "outputType": "图片", "outputName": "图片" } ] } ] } ] } ] }
  • URL 请求方式 HTTPS地址 服务架构 消息体类型 POST https://isdp+域名/openapi/v1/openTaskScene/createTaskScene OpenAPI application/json 调用流程: 因为任务场景的前置依赖数据较多,成功调用此API需要提前预配置如下信息: 1、 任务管理列表,扩展属性配置中,提前配置好“租户的全局扩展属性”。“任务场景”中写入的“扩展属性”,必须是已配置好的全局扩展属性。 2、 ISDP租户管理员设置,扩展属性配置中,预配置:通用检查作业下,配置“业务类型=作业”; 3、 问题类别配置中,提前预配置好“问题类别”,如创建“问题大类=掘锚工艺”下的问题子类;便于采集模板中,每个条目对应预置的问题类别(调“问题类别创建”API,建好问题类别) 4、 入参中的“组织单元”需要传“组织单元编码”。
  • 请求参数 参数 类型 是否必填 描述 sceneName String 是 场景名称 adminOrganization String 是 组织单元编码 sceneMode Int 否 只支持任务启用工序模式,传3 taskSceneExtendFieldList入参 参数 类型 是否必填 描述 fieldName String 否 场景扩展字段名称 fieldDefaultValue String 否 扩展字段的默认值,入参有值,则赋值为扩展字段默认值,没有,则取全局扩展属性配置的默认值 stage Integer 否 扩展属性阶段:1创建阶段 2执行阶段,不填写默认为创建阶段 taskSceneModeList入参 参数 类型 是否必填 描述 sceneModeName String 否 工序名称 description String 否 工序描述,如果该工序配置了模板,工序描述也是kcp的名称 templateName String 否 工序关联的模板名称。若工序需要关联模板,则名称要在templateInfoList集合中存在。无需关联则置空(命名规则:“任务场景名称-工序名称”作为检查模板名称) templateInfoList入参 参数 类型 是否必填 描述 templateName String 否 模板名称 kcpList入参 参数 类型 是否必填 描述 name String 否 条目名称 operationGuide String 否 条目操作指导(500字以内) qualityStandard String 否 条目质量标准(500字以内) issueType String 否 条目采集问题类别,系统中存在。大类和小类用#分割,不同大类用英文分号分割。详见样例请求 severity Int 否 问题严重程度。仅支持数字。0-一般;1-重要;2-严重 outputList入参 参数 类型 是否必填 描述 outputType Int 否 输出项类型,枚举值:文本,图片 outputName String 否 输出项名称
共100000条