多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
>[info] 获取班次详情 调用本接口,根据班次ID查询班次的详细信息。 **官方文档地址:** [链接](https://open.dingtalk.com/document/orgapp-server/shift-query) ***** * 代码: ~~~ $op_user_id = 'manager3451'; $shift_id = 1052730170; $res = Shift::query($op_user_id, $shift_id); echo $res; ~~~ * 返回: ``` { "errcode": 0, "result": { "corp_id": "dingc5f4301f00bdafc3acaaa37764f94726", "id": 1052730170, "name": "测试排班名称", "owner": "SYSTEM_NULL_VALUE", "sections": [ { "id": 694505311, "punches": [ { "absenteeism_late_minutes": "-1", "across": 0, "check_time": "2022-04-25 09:00:00", "check_type": "OnDuty", "id": 735845659, "permit_minutes": -1, "serious_late_minutes": "-1" }, { "across": 0, "check_time": "2022-04-25 12:00:00", "check_type": "OffDuty", "id": 735845660 } ], "rests": [] }, { "id": 694505312, "punches": [ { "absenteeism_late_minutes": "-1", "across": 0, "check_time": "2022-04-25 14:00:00", "check_type": "OnDuty", "id": 735845661, "permit_minutes": -1, "serious_late_minutes": "-1" }, { "across": 0, "check_time": "2022-04-25 18:00:00", "check_type": "OffDuty", "id": 735845662 } ], "rests": [] } ], "shift_setting": { "attend_days": "1.0", "corp_id": "dingc5f4301f00bdafc3acaaa37764f94726", "gmt_create": "2023-01-09 00:38:27", "gmt_modified": "2023-01-09 00:38:27", "id": 967115283, "is_deleted": "N", "is_flexible": false, "shift_id": 1052730170, "work_time_minutes": 420 } }, "success": true, "request_id": "16khuogz2ha8o" } ```