文档首页/ ISDP/ 智能排班/ 智能排班模型BO接口/ API/ 排班/ 查询排班结果信息(API名称:querySchedulingResult)
更新时间:2023-04-23 GMT+08:00
分享

查询排班结果信息(API名称:querySchedulingResult)

功能介绍

该接口用于查询排班结果信息。

URL

请求方式

HTTPS地址

消息体类型

POST

https://AppCube域名/service/ISDP__IntelligentSchedulingModel/1.0.1/querySchedulingResult

application/json

请求头

参数

类型

是否必填

描述

Content-Type

String

请求体内容类型

填写为:application/json

access-token

String

调用API要用到的访问令牌获取access_token中获取的access_token的值

请求参数

参数

类型

是否必填

描述

pageStart

Number

查询起始页,从0开始

pageSize

Number

查询条数,取值范围:1~5000

orderBy

String

排序规则,如果不传不排序,传则排序

order

String

升降序,默认降序

  • desc:降序
  • asc:升序

startDate

String

查询时间段的开始日期,格式:yyyy-MM-dd

endDate

String

查询时间段的结束日期,格式:yyyy-MM-dd

scheduleType

String

排班类型搜索条件

personName

String

人员名称搜索条件,模糊查询

shiftName

String

班次名称搜索条件,模糊查询

personCode

String

人员账号搜索条件

deleteFlag

Number

删除标识

  • 0:未删除
  • 1:已删除
说明:

不传时查询全部。

响应参数

参数

类型

描述

resCode

String

响应状态码

  • 0:成功
  • 其他:失败,其他错误码说明请参考错误码

resMsg

String

响应描述,如果成功状态,通常会返回“成功”,其他情况返回具体的错误信息

result

Object

响应结果内容

result参数说明

参数

类型

描述

records

Object

返回的查询记录

total

Number

总条数

请求示例

{
    "pageStart":0,
    "pageSize":500,
    "startDate":"2023-03-07",
    "endDate":"2023-03-07",
    "scheduleType":"1",
    "personName":"张三"
}

响应示例

{
    "resCode": "0",
    "resMsg": "成功",
    "result": {
        "records": [
            {
                "ISDP2__schedulingDate__CST": "2023-03-07",
                "ISDP__deleteFlag__CST": 1,
                "ISDP__personCode__CST": "123456",
                "ISDP__personName__CST": "张三",
                "ISDP__scheduleType__CST": "1",
                "ISDP__shiftId__CST": "c03P0000011GOUwzmM5W",
                "ISDP__shiftName__CST": "白班",
                "accruedLeaveInfo": {
                    "ISDP__accruedLeaveDuration__CST": 5,
                    "ISDP__deleteFlag__CST": 0,
                    "ISDP__personCode__CST": "123456",
                    "ISDP__personName__CST": "张三",
                    "accruedLeaveInfoExtend": [
                        {
                            "ISDP__accruedLeaveId__CST": "c1Sy0000011Gh8Qh2IO8",
                            "ISDP__accruedLeaveId__CST.__objectType": "ISDP__accruedLeaveInfo__CST",
                            "ISDP__accruedLeaveId__CST.name": "",
                            "ISDP__deleteFlag__CST": 0,
                            "id": "cFBY0000011Gh8QoPrlo",
                            "name": null
                        }
                    ],
                    "createdBy": "10gd00000119PKp32YgC",
                    "createdBy.__objectType": "User",
                    "createdBy.name": "XXX",
                    "createdDate": "2023-02-28 18:32:54",
                    "currencyIsoCode": "USD",
                    "id": "c1Sy0000011Gh8Qh2IO8",
                    "installedPackage": null,
                    "lastModifiedBy": "10gd00000119PKp32YgC",
                    "lastModifiedBy.__objectType": "User",
                    "lastModifiedBy.name": "XXX",
                    "lastModifiedDate": "2023-02-28 18:32:54",
                    "name": null,
                    "owner": "10gd00000119PKp32YgC",
                    "owner.__objectType": "User",
                    "owner.name": "XXX"
                },
                "createdBy": "10gd00000118KLOwrvKC",
                "createdBy.__objectType": "User",
                "createdBy.name": "XXX",
                "createdDate": "2023-03-06 11:04:31",
                "currencyIsoCode": "USD",
                "id": "cnyi0000011Q8W6IZpOS",
                "installedPackage": null,
                "lastModifiedBy": "10gd00000118KLOwrvKC",
                "lastModifiedBy.__objectType": "User",
                "lastModifiedBy.name": "XXX",
                "lastModifiedDate": "2023-03-06 14:07:09",
                "name": null,
                "owner": "10gd00000118KLOwrvKC",
                "owner.__objectType": "User",
                "owner.name": "XXX",
                "personInfo": null,
                "shiftInfo": null
            }
        ],
        "total": 1
    }
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

相关文档