复制场景模板(API名称:copySceneBase)
功能介绍
复制场景模板。
相关API
|
接口名称 |
调用说明 |
|---|---|
|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
|
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
|---|---|---|---|
|
POST |
https://isdp+域名/openapi/v1/openTaskScene/copySceneBase |
OpenAPI |
application/json |
请求头
|
KEY |
VALUE |
是否必填 |
描述 |
|---|---|---|---|
|
Content-Type |
application/json |
是 |
无 |
|
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
|
参数 |
类型 |
是否必填 |
描述 |
|---|---|---|---|
|
sceneId |
Long |
是 |
场景模板ID |
|
dataSource |
String |
是 |
数据来源 (只支持 appcube 入参) |
响应参数
|
参数 |
类型 |
描述 |
|---|---|---|
|
stateCode |
String |
响应状态码。 |
|
0:成功 |
||
|
其他:失败 |
||
|
errorMessage |
String |
响应描述。 |
|
result |
Object |
响应结果内容data、 |
result出参
|
参数 |
类型 |
描述 |
|---|---|---|
|
sceneId |
Long |
任务场景管理主键 |
|
skill |
String |
要求技能 |
|
jobDuration |
String |
标准作业时长 |
|
jobDurationUnit |
String |
标准作业时长单位 |
|
projectDurationUnit |
String |
工期单位 |
|
reviewProcessId |
Long |
任务场景配置审批流主键ID |
|
reviewProcessName |
String |
任务场景配置审批流名字 |
|
sceneName |
String |
任务场景名称 |
|
sceneCode |
String |
任务场景编码 |
|
sceneStatus |
Integer |
任务场景状态(0-草稿, 1-可用, 2-停用) |
|
sourceSceneId |
Long |
任务场景源头SCENE_ID(同一个父SCENE_ID) |
|
sceneRemark |
String |
任务场景描述 |
|
sceneMode |
Integer |
任务场景模式(1-简单任务,2-关联作业检查清单,3-任务启用工序,4-父子任务) |
|
sceneType |
Integer |
场景创建类型(0-按场景创建 1-手动创建虚拟场景) |
|
sceneLicense |
Integer |
配置许可(0-否,1-是) |
|
version |
String |
版本号(默认1.0) |
|
isNewVersion |
Integer |
是否是最新版本(0-最新版本;1-历史版本) |
|
signInConfig |
Integer |
设置打卡配置 |
|
createdBy |
Long |
创建人ID |
|
creationTimestamp |
Long |
创建时间戳 |
|
lastUpdatedBy |
Long |
最后修改人ID |
|
lastUpdateTimestamp |
Long |
最后修改时间戳 |
|
adminOrganizationCode |
String |
行政组织 |
|
adminOrganizationName |
String |
行政组织名字 |
|
isApplyApprove |
Integer |
是否需要申请审批:否:0,是:1 |
|
parentCategory |
String |
任务类别 领域 |
|
category |
String |
任务类别 |
|
coverId |
Long |
设置场景封面图片ID |
|
deleteFlag |
Integer |
是否删除 0未删除 1已删除 |
请求示例
{
"dataSource": "appcube",
"sceneId": 10085
}
响应示例
{
"stateCode": "0",
"errorMessage": null,
"result": {
"data": [
{
"sceneId": -17046,
"reviewProcessId": null,
"reviewProcessName": "",
"sceneName": "更换减速机检修作业-PDD-JX-001",
"sceneCode": "TS20220901120117662",
"sceneStatus": 1,
"sourceSceneId": -17036,
"sceneRemark": "更换减速机",
"sceneMode": 2,
"sceneType": 0,
"sceneLicense": null,
"version": "1.1",
"isNewVersion": 0,
"createdBy": -151168,
"createName": "张三",
"signInConfig": null,
"creationDate": 1662014686000,
"lastUpdatedBy": -151169,
"lastUpdateName": "李四",
"lastUpdateDate": 1664345792000,
"creationTimestamp": 1662004877662,
"lastUpdateTimestamp": 1664345792431,
"adminOrganizationCode": "-977556",
"adminOrganizationName": "皮带运输队",
"isApplyApprove": null,
"parentCategory": null,
"category": null,
"coverId": null,
"deleteFlag": 0
},
{
"sceneId": -17047,
"reviewProcessId": null,
"reviewProcessName": "",
"sceneName": "更换电机检修作业-PDD-JX-002",
"sceneCode": "TS20220901141801858",
"sceneStatus": 1,
"sourceSceneId": -17038,
"sceneRemark": "更换电机",
"sceneMode": 2,
"sceneType": 0,
"sceneLicense": null,
"version": "1.1",
"isNewVersion": 0,
"createdBy": -151168,
"createName": "张三",
"signInConfig": null,
"creationDate": 1662014746000,
"lastUpdatedBy": -151169,
"lastUpdateName": "李四",
"lastUpdateDate": 1664345769000,
"creationTimestamp": 1662013081858,
"lastUpdateTimestamp": 1664345769506,
"adminOrganizationCode": "-977556",
"adminOrganizationName": "皮带运输队",
"isApplyApprove": null,
"parentCategory": null,
"category": null,
"coverId": null,
"deleteFlag": 0,
"UDF1": null,
"UDF2": null,
"UDF3": null,
"UDF4": "车型型号A",
"UDF5": null,
"UDF6": null,
"UDF7": null,
"UDF8": null,
"UDF9": null,
"UDF10": null,
"UDF11": null,
"UDF12": null,
"UDF13": null,
"UDF14": null,
"UDF15": null,
"UDF16": null,
"UDF17": null,
"UDF18": null,
"UDF19": null,
"UDF20": null,
"UDF21": null,
"UDF22": null,
"UDF23": null,
"UDF24": null,
"UDF25": null,
"UDF26": null,
"UDF27": null,
"UDF28": null,
"UDF29": null,
"UDF31": null,
"UDF32": null,
"UDF33": null,
"UDF34": null,
"UDF35": null,
"UDF36": null,
"UDF37": null,
"UDF38": null,
"UDF39": null,
"UDF40": null
},
{
"sceneId": -17048,
"reviewProcessId": null,
"reviewProcessName": "",
"sceneName": "更换滚筒检修作业-PDD-JX-003",
"sceneCode": "TS20220901142416480",
"sceneStatus": 1,
"sourceSceneId": -17039,
"sceneRemark": "更换滚筒",
"sceneMode": 2,
"sceneType": 0,
"sceneLicense": null,
"version": "1.1",
"isNewVersion": 0,
"createdBy": -151168,
"createName": "张三",
"signInConfig": null,
"creationDate": 1662014760000,
"lastUpdatedBy": -151169,
"lastUpdateName": "李四",
"lastUpdateDate": 1664345749000,
"creationTimestamp": 1662013456480,
"lastUpdateTimestamp": 1664345749300,
"adminOrganizationCode": "-977556",
"adminOrganizationName": "皮带运输队",
"isApplyApprove": null,
"parentCategory": null,
"category": null,
"coverId": null,
"deleteFlag": 0,
"UDF1": null,
"UDF2": null,
"UDF3": null,
"UDF4": "车型型号A",
"UDF5": null,
"UDF6": null,
"UDF7": null,
"UDF8": null,
"UDF9": null,
"UDF10": null,
"UDF11": null,
"UDF12": null,
"UDF13": null,
"UDF14": null,
"UDF15": null,
"UDF16": null,
"UDF17": null,
"UDF18": null,
"UDF19": null,
"UDF20": null,
"UDF21": null,
"UDF22": null,
"UDF23": null,
"UDF24": null,
"UDF25": null,
"UDF26": null,
"UDF27": null,
"UDF28": null,
"UDF29": null,
"UDF31": null,
"UDF32": null,
"UDF33": null,
"UDF34": null,
"UDF35": null,
"UDF36": null,
"UDF37": null,
"UDF38": null,
"UDF39": null,
"UDF40": null
}
],
"pos": 0,
"total_count": 3,
"entityName": null,
"totalCount": 3
}
}