文档
测试

month by date

GET
Report/company/month/(:date)

接口描述

获取特定时间公司月报表

响应参数

参数名
类型
描述
必填
date
object
起始时间
必填
start
string
示例:2021-06-10
必填
end
string
示例:2021-06-16
必填
days
object
迟到早退数据
必填
early
int
示例:0
必填
late
int
示例:0
必填
timespan
object
打卡时间区段统计
必填
checkin
array
数据列表
必填
start
string
示例:07:30:00
必填
end
string
示例:08:00:00
必填
count
int
示例:0
必填
checkout
array
数据列表
必填
start
string
示例:17:30:00
必填
end
string
示例:18:00:00
必填
count
int
示例:0
必填
reasons
object
外出原因统计
必填
洗手间
int
示例:0
必填
用餐
int
示例:0
必填
放松
int
示例:0
必填
公务
int
示例:0
必填
私事
int
示例:0
必填
其他
array
数据列表
必填
workStatus
array
工作时间统计
必填
THours
int
示例:126
必填
AHours
int
示例:11
必填
id
string
示例:1
必填
star
array
卷王ID
必填

说明 / 示例

**日期参数有需求** 1. 月份及天数需要补零 2. 日期需要为上一个月末的日期 ```json { "date": { "start": "2021-06-10", "end": "2021-06-16" }, "days": { "early": 0, "late": 0 }, "timespan": { "checkin": [ { "start": "07:30:00", "end": "08:00:00", "count": 0 }, { "start": "08:00:00", "end": "08:30:00", "count": 1 }, { "start": "08:30:00", "end": "09:00:00", "count": 0 }, { "start": "09:00:00", "end": "09:30:00", "count": 0 }, { "time": "other", "count": 0 } ], "checkout": [ { "start": "17:30:00", "end": "18:00:00", "count": 0 }, { "start": "18:00:00", "end": "18:30:00", "count": 0 }, { "start": "18:30:00", "end": "19:00:00", "count": 0 }, { "start": "19:00:00", "end": "19:30:00", "count": 1 }, { "time": "other", "count": 0 } ] }, "reasons": { "洗手间": 0, "用餐": 0, "放松": 0, "公务": 0, "私事": 0, "其他": [] }, "workStatus": [ { "THours": 126, "AHours": 11, "id": "1" }, { "THours": 1316, "AHours": 0, "id": "2" }, { "THours": 1316, "AHours": 0, "id": "3" }, { "THours": 1316, "AHours": 0, "id": "4" }, { "THours": 1316, "AHours": 0, "id": "5" } ], "star": [ "1" ] } ```