文档首页> ISDP> API参考> API接口> 任务管理> 任务场景管理> 查询指定场景的历史版本(API名称:openTaskScene/querySceneHisList)
更新时间:2024-02-19 GMT+08:00
分享

查询指定场景的历史版本(API名称:openTaskScene/querySceneHisList)

功能介绍

查询指定场景的历史版本

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/openTaskScene/querySceneHisList

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

是否必填

描述

page

Object

分页参数

dataSource

String

数据来源 (只支持 appcube 入参)

sceneId

Long

一级工艺Id

page入参

参数

类型

是否必填

描述

start

Integer

开始行 默认0

count

Integer

总行数 默认15

响应参数

参数

类型

描述

stateCode

String

响应状态码。

0:成功

其他:失败

errorMessage

String

响应描述。

result

Object

响应结果内容data、

result出参

参数

类型

描述

pos

Integer

当前页码,从0开始

total_count

Integer

查询结果总条数

data

List<Object>

场景列表

data出参

参数

类型

描述

sceneId

Long

任务场景管理主键

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已删除

请求示例

{
    "sceneId": 100126,
    "dataSource ": "appcube"
}

响应示例

{
    "stateCode": "0",
    "errorMessage": null,
    "result": {
        "data": [
            {
                "sceneId": 100107,
                "reviewProcessId": null,
                "reviewProcessName": "",
                "sceneName": "0512",
                "sceneCode": "TS20210512193008020",
                "sceneStatus": 1,
                "sourceSceneId": 100078,
                "sceneRemark": "",
                "sceneMode": 4,
                "sceneType": 0,
                "sceneLicense": 1,
                "version": "1.2",
                "isNewVersion": 1,
                "createdBy": 38946,
                "createName": "测试007",
                "signInConfig": null,
                "creationDate": 1620819008000,
                "lastUpdatedBy": 38946,
                "lastUpdateName": "测试007",
                "lastUpdateDate": 1622004572000,
                "creationTimestamp": 1620819008021,
                "lastUpdateTimestamp": 1622004571983,
                "adminOrganizationCode": "1543",
                "adminOrganizationName": "修改组织单元",
                "isApplyApprove": 0,
                "parentCategory": null,
                "category": null,
                "coverId": null,
                "deleteFlag": 0
            },
            {
                "sceneId": 100108,
                "reviewProcessId": null,
                "reviewProcessName": "",
                "sceneName": "0512",
                "sceneCode": "TS20210512193008020",
                "sceneStatus": 1,
                "sourceSceneId": 100078,
                "sceneRemark": "",
                "sceneMode": 4,
                "sceneType": 0,
                "sceneLicense": 1,
                "version": "1.3",
                "isNewVersion": 1,
                "createdBy": 38946,
                "createName": "测试007",
                "signInConfig": null,
                "creationDate": 1620819008000,
                "lastUpdatedBy": 38946,
                "lastUpdateName": "测试007",
                "lastUpdateDate": 1622004928000,
                "creationTimestamp": 1620819008021,
                "lastUpdateTimestamp": 1622004928604,
                "adminOrganizationCode": "1543",
                "adminOrganizationName": "修改组织单元",
                "isApplyApprove": 0,
                "parentCategory": null,
                "category": null,
                "coverId": null,
                "deleteFlag": 0
            }
        ],
        "pos": 0,
        "total_count": 7,
        "entityName": null,
        "totalCount": 7
    }
}
分享:

    相关文档

    相关产品