查询服务组排班详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

POST /services/group/scheduling/detail HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
Object Body

A short description of struct

serviceGroupId Long Body 9999

服务组ID

clientToken String Body C4BE3837-1A13-413B-A225-2C88188E8A43

幂等号

返回数据

名称 类型 示例值 描述
requestId String xxxxxxxxxxxx

Id of the request

data Object

排班详情

schedulingWay String FINE

排班方式 FAST 快速排班 FINE 精细排班

serviceGroupId Long 99999

服务组ID

fastScheduling Object

快速排班

singleDuration Integer 12

每人排班时长

dutyPlan String FAST_CHOICE

值班方案 dutyPlan FAST_CHOICE 快速选择 CUSTOM 自定义

singleDurationUnit String DAY

每人排班时长单位 HOUR 小时 DAY 天

schedulingUsers Array of 快速轮班用户

快速轮班用户

schedulingUserId Long 66666

轮班用户ID

schedulingOrder Integer 1

排班顺序

schedulingUserName String 张杰

轮班用户名字

id Long 2222

快速排班ID

fineScheduling Object

精细排班

period Integer 循环周期

1

id Long 精细排班ID

1

periodUnit String DAY

循环周期单位 HOUR 小时 DAY 天

shiftType String MORNING_NIGHT

班次类型 MORNING_NIGHT 早晚班 MORNING_NOON_NIGHT 早中晚班 CUSTOM 自定义

schedulingFineShifts Array of 精细排班班次人员信息

精细排班班次人员信息

schedulingStartTime String 2020-08-13

排班开始时间

schedulingEndTime String 2020-10-13

排班结束时间

schedulingOrder Integer 1

排班顺序

shiftName String 早班

班次名称

cycleOrder Long 1

循环次序

schedulingUserId Long 1111

排班用户ID

skipOneDay Boolean false

是否跨天

schedulingUserName String 刘德华

排班用户名字

schedulingTemplateFineShifts Array of 精细排班模版

精细排班模版

schedulingStartTime String 2021-09-01 00:00:00

排班开始时间

schedulingEndTime String 2021-10-01 00:00:00

排班结束时间

schedulingOrder Long 1

排班顺序

schedulingUserId String 1

用户ID

skipOneDay Boolean true

是否跨天

schedulingUserName String 刘德华

排班用户名字

shiftName String 早班

班次名称

users Array of 已经排班

已经排班

userId Long 用户ID

用户ID

userName String 用户名字

用户名字

示例

请求示例

POST /services/group/scheduling/detail HTTP/1.1
Host:gemp.aliyuncs.com
Content-Type:application/json

{
  "serviceGroupId" : 9999,
  "clientToken" : "C4BE3837-1A13-413B-A225-2C88188E8A43"
}

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetServiceGroupSchedulingResponse>
    <requestId>xxxxxxxxxxxx</requestId>
    <data>
        <schedulingWay>FINE</schedulingWay>
        <serviceGroupId>99999</serviceGroupId>
        <fastScheduling>
            <singleDuration>12</singleDuration>
            <dutyPlan>FAST_CHOICE</dutyPlan>
            <singleDurationUnit>DAY</singleDurationUnit>
            <schedulingUsers>
                <schedulingUserId>66666</schedulingUserId>
                <schedulingOrder>1</schedulingOrder>
                <schedulingUserName>张杰</schedulingUserName>
            </schedulingUsers>
            <id>2222</id>
        </fastScheduling>
        <fineScheduling>
            <periodUnit>DAY</periodUnit>
            <shiftType>MORNING_NIGHT</shiftType>
            <schedulingFineShifts>
                <schedulingStartTime>2020-08-13</schedulingStartTime>
                <schedulingEndTime>2020-10-13</schedulingEndTime>
                <schedulingOrder>1</schedulingOrder>
                <shiftName>早班</shiftName>
                <cycleOrder>1</cycleOrder>
                <schedulingUserId>1111</schedulingUserId>
                <skipOneDay>false</skipOneDay>
                <schedulingUserName>刘德华</schedulingUserName>
            </schedulingFineShifts>
            <schedulingTemplateFineShifts>
                <schedulingStartTime>2021-09-01 00:00:00</schedulingStartTime>
                <schedulingEndTime>2021-10-01 00:00:00</schedulingEndTime>
                <schedulingOrder>1</schedulingOrder>
                <schedulingUserId>1</schedulingUserId>
                <skipOneDay>true</skipOneDay>
                <schedulingUserName>刘德华</schedulingUserName>
                <shiftName>早班</shiftName>
            </schedulingTemplateFineShifts>
        </fineScheduling>
        <users>
            <userName>用户名字</userName>
        </users>
    </data>
</GetServiceGroupSchedulingResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "requestId" : "xxxxxxxxxxxx",
  "data" : {
    "schedulingWay" : "FINE",
    "serviceGroupId" : 99999,
    "fastScheduling" : {
      "singleDuration" : 12,
      "dutyPlan" : "FAST_CHOICE",
      "singleDurationUnit" : "DAY",
      "schedulingUsers" : [ {
        "schedulingUserId" : 66666,
        "schedulingOrder" : 1,
        "schedulingUserName" : "张杰"
      } ],
      "id" : 2222
    },
    "fineScheduling" : {
      "periodUnit" : "DAY",
      "shiftType" : "MORNING_NIGHT",
      "schedulingFineShifts" : [ {
        "schedulingStartTime" : "2020-08-13",
        "schedulingEndTime" : "2020-10-13",
        "schedulingOrder" : 1,
        "shiftName" : "早班",
        "cycleOrder" : 1,
        "schedulingUserId" : 1111,
        "skipOneDay" : false,
        "schedulingUserName" : "刘德华"
      } ],
      "schedulingTemplateFineShifts" : [ {
        "schedulingStartTime" : "2021-09-01 00:00:00",
        "schedulingEndTime" : "2021-10-01 00:00:00",
        "schedulingOrder" : 1,
        "schedulingUserId" : "1",
        "skipOneDay" : true,
        "schedulingUserName" : "刘德华",
        "shiftName" : "早班"
      } ]
    },
    "users" : [ {
      "userName" : "用户名字"
    } ]
  }
}

错误码

HttpCode 错误码 错误信息 描述
404 ResourceNotFound The specified Resource is not found. 资源不存在

访问错误中心查看更多错误码。

访问错误中心查看更多错误码。