文档首页/ ISDP/ API参考/ API接口/ 许可(工作票)管理/ 查询许可场景明细(API名称:getTicketSceneConfigInfo)
更新时间:2024-01-18 GMT+08:00
分享

查询许可场景明细(API名称:getTicketSceneConfigInfo)

功能介绍

该接口提供给用户查询许可单场景明细。

相关接口

接口名称

调用说明

获取Token

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

查询许可单场景列表

可用查询许可单场景列表接口查出sceneId,然后用查询许可单场景明细接口查看许可单场景明细

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/openSceneTask/getTicketSceneConfigInfo

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

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

请求参数

参数

类型

是否必填

描述

sceneId

Long

场景id

响应参数

参数

类型

描述

stateCode

int

返回状态,0-正常;其他-异常

errorMessage

String

错误消息描述

result

Object

列表详细数据

result出参:

参数

类型

描述

adminOrganizationCode

String

组织单元编码

adminOrganizationName

String

组织单元名称

createdBy

Long

创建人id

createName

String

创建人名字

creationTimestamp

Long

创建时间戳

isNewVersion

Int

是否是最新版本(0-最新版本;1-历史版本)

reviewProcessId

Long

审批流id

reviewProcessName

String

审批流名称

sceneCode

String

场景编码

sceneId

Long

场景id

sceneLicense

Int

配置许可(0-否,1-是)

sceneMode

Int

任务场景模式(1-简单任务,2-关联作业检查清单,3-任务启用工序,4-父子任务)

sceneName

String

场景名称

sceneRemark

String

场景备注

sceneStatus

Int

任务场景状态(0-草稿, 1-可用, 2-停用)

isApplyApprove

Int

是否需要申请审批(否:0,是:1)

sceneType

Int

场景创建类型(0-任务场景 1-手动创建虚拟场景 2-许可场景)

signInConfig

Int

是否启用打卡配置(1-启用;0-不启用;null-该场景没有引入打卡配置)

sourceSceneId

Long

任务场景源头SCENE_ID(同一个父SCENE_ID)

version

String

版本

sceneBaseFieldList

List

基础信息列表

sceneExtendFieldList

List

拓展字段列表

scenePhaseList

List

阶段列表

sceneBaseFieldList出参:

参数

类型

描述

fieldCode

String

字段编码

fieldDefaultValue

String

字段默认值

fieldIsNecessary

Int

是否必填(1-必填;2-不必填)

fieldName

String

字段名称

fieldOrder

Int

字段排序

fieldStatus

Int

字段状态(1-可用, 2-停用)

sceneBaseFieldId

Long

任务场景基础字段主键ID

sceneId

Long

场景id

scenePhaseList出参:

参数

类型

描述

scenePhaseId

Long

阶段id

fieldDefaultValue

String

字段默认值

fieldIsNecessary

Int

是否必填(1-必填;2-不必填)

fieldName

String

字段名称

fieldOrder

Int

字段排序

fieldStatus

Int

字段状态(1-可用, 2-停用)

sceneBaseFieldId

Long

任务场景基础字段主键ID

sceneId

Long

场景id

fieldType

Int

字段类型(1-文本;2-枚举;3-多枚举;4-日期;5-时间)

fieldValue

String

字段枚举值(单枚举值)

isNewWay

Int

是否通过引入全局扩展属性创建的场景扩展属性(1-是;0-否)

parentExtendFieldId

Long

扩展字段父ID(默认0父属性)

sceneExtendFieldId

Long

任务场景扩展字段主键ID

sceneExtendEnumFieldList

List

枚举值列表,字段和sceneExtendFieldLis一致

请求示例

{
    "sceneId": 11420
}

响应示例

{
    "stateCode": "0",
    "errorMessage": null,
    "result": {
        "adminOrganizationCode": "52479",
        "adminOrganizationName": "☺新版本测试租户♪",
        "appName": "isdp-task-server",
        "createdBy": 62131,
        "createName": "刘XX_@@",
        "creationDate": "2022-05-23T12:56:55.000+00:00",
        "creationTimestamp": 1653310615556,
        "deleteFlag": 0,
        "entityName": "taskScene",
        "isNewVersion": 0,
        "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
        "lastUpdatedBy": 62131,
        "lastUpdateName": "刘XX_@@",
        "lastUpdateTimestamp": 1653310851204,
        "reviewProcessName": null,
        "sceneCode": "PS20220523205655556",
        "sceneId": 11420,
        "sceneName": "刘XX测试",
        "sceneRemark": "",
        "sceneStatus": 1,
        "sceneType": 2,
        "sourceSceneId": 11420,
        "tenantId": 50222,
        "version": "1.0",
        "sceneBaseFieldList": [
            {
                "appName": "isdp-task-server",
                "createdBy": 62131,
                "createName": "刘XX_@@",
                "creationDate": "2022-05-23T12:56:55.000+00:00",
                "creationTimestamp": 1653310615614,
                "deleteFlag": 0,
                "entityName": "taskSceneBaseField",
                "fieldCode": "taskDescription",
                "fieldDefaultValue": null,
                "fieldIsNecessary": 2,
                "fieldName": "任务描述",
                "fieldOrder": 2,
                "fieldStatus": 1,
                "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
                "lastUpdatedBy": 62131,
                "lastUpdateName": "刘XX_@@",
                "lastUpdateTimestamp": 1653310851233,
                "sceneBaseFieldId": 141692,
                "sceneId": 11420,
                "tenantId": 50222
            },
            {
                "appName": "isdp-task-server",
                "createdBy": 62131,
                "createName": "刘XX_@@",
                "creationDate": "2022-05-23T12:56:55.000+00:00",
                "creationTimestamp": 1653310615614,
                "deleteFlag": 0,
                "entityName": "taskSceneBaseField",
                "fieldCode": "planBeginDate",
                "fieldDefaultValue": null,
                "fieldIsNecessary": 2,
                "fieldName": "计划开始时间",
                "fieldOrder": 3,
                "fieldStatus": 1,
                "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
                "lastUpdatedBy": 62131,
                "lastUpdateName": "刘XX_@@",
                "lastUpdateTimestamp": 1653310851233,
                "sceneBaseFieldId": 141693,
                "sceneId": 11420,
                "tenantId": 50222
            },
            {
                "appName": "isdp-task-server",
                "createdBy": 62131,
                "createName": "刘XX_@@",
                "creationDate": "2022-05-23T12:56:55.000+00:00",
                "creationTimestamp": 1653310615614,
                "deleteFlag": 0,
                "entityName": "taskSceneBaseField",
                "fieldCode": "planEndDate",
                "fieldDefaultValue": null,
                "fieldIsNecessary": 2,
                "fieldName": "计划完成时间",
                "fieldOrder": 4,
                "fieldStatus": 1,
                "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
                "lastUpdatedBy": 62131,
                "lastUpdateName": "刘XX_@@",
                "lastUpdateTimestamp": 1653310851233,
                "sceneBaseFieldId": 141694,
                "sceneId": 11420,
                "tenantId": 50222
            }
        ],
        "sceneExtendFieldList": [
            {
                "appName": "isdp-task-server",
                "createdBy": 62131,
                "createName": "刘XX_@@",
                "creationDate": "2022-05-23T13:00:51.000+00:00",
                "creationTimestamp": 1653310851297,
                "deleteFlag": 0,
                "entityName": "taskSceneExtendField",
                "fieldCode": "UDF1",
                "fieldDefaultValue": "",
                "fieldIsNecessary": 1,
                "fieldName": "扩展测试1",
                "fieldOrder": 1,
                "fieldStatus": 1,
                "fieldType": 1,
                "fieldValue": null,
                "isNewWay": 1,
                "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
                "lastUpdatedBy": 62131,
                "lastUpdateName": "刘XX_@@",
                "lastUpdateTimestamp": 1653310851297,
                "parentExtendFieldId": 0,
                "sceneExtendFieldId": 26601,
                "sceneId": 11420,
                "tenantId": 50222
            }
        ],
        "scenePhaseList": [
            {
                "scenePhaseId": 3703,
                "sceneId": 11420,
                "scenePhaseName": "1阶段",
                "initialStatus": 1001,
                "initialStatusMame": "草稿",
                "initialSystemStatusCode": "1",
                "initialSystemStatusName": "未许可",
                "initialSystemStatusOrder": 1,
                "submitStatus": 1003,
                "submitStatusMame": "待许可",
                "submitSystemStatusCode": "1",
                "submitSystemStatusName": "未许可",
                "submitSystemStatusOrder": 1,
                "reviewStatus": 1002,
                "reviewStatusMame": "待签发",
                "reviewSystemStatusCode": "1",
                "reviewSystemStatusName": "未许可",
                "reviewSystemStatusOrder": 1,
                "templateId": "39513",
                "templateCode": "QC2022XXXXXXXXXXXXX",
                "isReview": 1,
                "reviewProcessId": "22000",
                "phaseOrder": 1,
                "creationDate": "2022-05-23T13:00:51.000+00:00",
                "creationTimestamp": 1653310851326,
                "lastUpdatedBy": 62131,
                "lastUpdateName": "刘XX_@@",
                "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
                "lastUpdateTimestamp": 1653310851326,
                "deleteFlag": 0,
                "templateExistFlag": "Y",
                "templateName": "工作票模板",
                "templateVersion": "1.0",
                "templateType": "1",
                "reviewProcessExistFlag": "Y",
                "reviewProcessName": "1020",
                "processType": 0
            },
            {
                "scenePhaseId": 3704,
                "sceneId": 11420,
                "scenePhaseName": "2阶段",
                "initialStatus": 1002,
                "initialStatusMame": "待签发",
                "initialSystemStatusCode": "1",
                "initialSystemStatusName": "未许可",
                "initialSystemStatusOrder": 1,
                "submitStatus": 1148,
                "submitStatusMame": "0627",
                "submitSystemStatusCode": "1",
                "submitSystemStatusName": "未许可",
                "submitSystemStatusOrder": 1,
                "reviewStatus": 1149,
                "reviewStatusMame": "草稿0816",
                "reviewSystemStatusCode": "1",
                "reviewSystemStatusName": "未许可",
                "reviewSystemStatusOrder": 1,
                "templateId": "39513",
                "templateCode": "QC2022XXXXXXXXXXXXX",
                "isReview": 1,
                "reviewProcessId": "22000",
                "phaseOrder": 2,
                "creationDate": "2022-05-23T13:00:51.000+00:00",
                "creationTimestamp": 1653310851326,
                "lastUpdatedBy": 62131,
                "lastUpdateName": "刘XX_@@",
                "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
                "lastUpdateTimestamp": 1653310851326,
                "deleteFlag": 0,
                "templateExistFlag": "Y",
                "templateName": "工作票模板",
                "templateVersion": "1.0",
                "templateType": "1",
                "reviewProcessExistFlag": "Y",
                "reviewProcessName": "1020",
                "processType": 0
            },
            {
                "scenePhaseId": 3705,
                "sceneId": 11420,
                "scenePhaseName": "3阶段",
                "initialStatus": 1149,
                "initialStatusMame": "草稿0816",
                "initialSystemStatusCode": "1",
                "initialSystemStatusName": "未许可",
                "initialSystemStatusOrder": 1,
                "submitStatus": 1060,
                "submitStatusMame": "已许可",
                "submitSystemStatusCode": "2",
                "submitSystemStatusName": "已许可",
                "submitSystemStatusOrder": 2,
                "reviewStatus": 1014,
                "reviewStatusMame": "已完成",
                "reviewSystemStatusCode": "3",
                "reviewSystemStatusName": "已终结",
                "reviewSystemStatusOrder": 3,
                "templateId": "39513",
                "templateCode": "QC2022XXXXXXXXXXXXX",
                "isReview": 1,
                "reviewProcessId": "22000",
                "phaseOrder": 3,
                "creationDate": "2022-05-23T13:00:51.000+00:00",
                "creationTimestamp": 1653310851326,
                "lastUpdatedBy": 62131,
                "lastUpdateName": "刘XX_@@",
                "lastUpdateDate": "2022-05-23T13:00:51.000+00:00",
                "lastUpdateTimestamp": 1653310851326,
                "deleteFlag": 0,
                "templateExistFlag": "Y",
                "templateName": "工作票模板",
                "templateVersion": "1.0",
                "templateType": "1",
                "reviewProcessExistFlag": "Y",
                "reviewProcessName": "1020",
                "processType": 0
            }
        ],
        "firstPhaseReviewInfo": {
            "reviewRuleList": [
                {
                    "appName": "isdp-qc-server",
                    "createdBy": 62131,
                    "createName": "刘XX_New",
                    "creationDate": "2021-10-20T03:57:41.000+00:00",
                    "deleteFlag": 0,
                    "entityName": "taskReviewProcessLevel",
                    "id": 32448,
                    "isEleSign": 0,
                    "isOnlineReview": 0,
                    "lastUpdateDate": "2021-10-20T03:57:41.000+00:00",
                    "lastUpdatedBy": 62131,
                    "lastUpdateName": "刘XX_New",
                    "remark": "",
                    "revieweMode": 0,
                    "reviewerId": 62131,
                    "reviewerName": "刘XX_New",
                    "reviewerType": "Customer",
                    "reviewLevel": 1,
                    "reviewProcessId": 22000,
                    "tenantId": 50222
                }
            ],
            "reviewProcessId": 22000,
            "reviewRuleName": "1020"
        }
    }
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

相关文档