1. 部门考勤报表统计

部门考勤报表


1.1. 部门日考勤统计

基础信息

路径: /v1/api/attendance/org/statistic/day/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
orgUuidList array 部门UUID集合
  |─ string
startTime string 查询开始时间
endTime string 查询结束时间
pageNum integer 1 页码,从1开始
当前页码,不传默认1
pageSize integer 20 页面大小
分页大小,不传默认20

Body示例:

{
    "orgUuidList":["0","7f0acefe98844748ba035e4e019ba787"],
    "startTime":"2023-06-01",
    "endTime":"2023-06-21",
    "pageNum":1,
    "pageSize":2
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─requirePersonCount integer 应到人数
      |─requireCount integer 应到次数
      |─requireTime integer 应到时长,单位分钟
      |─workPersonCount integer 实到人数
      |─workCount integer 实到次数
      |─workTime integer 实到时长,单位分钟
      |─latePersonCount integer 迟到人数
      |─lateCount integer 迟到次数
      |─lateTime integer 迟到时长,单位分钟
      |─earlyPersonCount integer 早退人数
      |─earlyCount integer 早退次数
      |─earlyTime integer 早退时长,单位分钟
      |─overPersonCount integer 加班人数
      |─overCount integer 加班次数
      |─overTime integer 加班时长,单位分钟
      |─absentPersonCount integer 旷工人数
      |─absentCount integer 旷工次数
      |─absentTime integer 旷工时长,单位分钟
      |─toilPersonCount integer 调休人数
      |─toilCount integer 调休次数
      |─toilTime integer 调休时长,单位分钟
      |─beAwayBusinessPersonCount integer 出差人数
      |─beAwayBusinessCount integer 出差次数
      |─beAwayBusinessTime integer 出差时长,单位分钟
      |─askForLeavePersonCount integer 请假总人数
      |─askForLeaveCount integer 请假总次数
      |─askForLeaveTime integer 请假总时长,单位分钟
      |─askForLeaveDetails array 请假详情
        |─ object
          |─uuid string 请假类型UUID
          |─name string 该请假类型名称
          |─count integer 0 该请假类型次数
          |─time integer 0 该请假类型时长
      |─orgUuid string 部门UUID
      |─orgName string 部门名称
      |─period string 考勤日期
      |─personCount integer 总人数

响应示例:

{
    "code": 0,
    "data": {
        "list": [
            {
                "absentCount": 0,
                "absentPersonCount": 0,
                "absentTime": 0,
                "askForLeaveCount": 1,
                "askForLeaveDetails": [
                    {
                        "count": 0,
                        "name": "年假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b21483"
                    },
                    {
                        "count": 1,
                        "name": "病假",
                        "time": 1440,
                        "uuid": "dd56adffff404c069ca500fcf1b22483"
                    },
                    {
                        "count": 0,
                        "name": "事假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b23483"
                    },
                    {
                        "count": 0,
                        "name": "产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b24483"
                    },
                    {
                        "count": 0,
                        "name": "陪产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b25483"
                    },
                    {
                        "count": 0,
                        "name": "婚假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b26483"
                    },
                    {
                        "count": 0,
                        "name": "丧假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b27483"
                    },
                    {
                        "count": 0,
                        "name": "撸猫假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b28483"
                    },
                    {
                        "count": 0,
                        "name": "撸狗假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b29483"
                    },
                    {
                        "count": 0,
                        "name": "姨妈假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b30483"
                    },
                    {
                        "count": 0,
                        "name": "心情不好假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b31483"
                    },
                    {
                        "count": 0,
                        "name": "起不来假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b32483"
                    },
                    {
                        "count": 0,
                        "name": "突然不想上班假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b33483"
                    },
                    {
                        "count": 0,
                        "name": "想我妈了假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b34483"
                    },
                    {
                        "count": 0,
                        "name": "熬夜看球假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b35483"
                    }
                ],
                "askForLeavePersonCount": 4,
                "askForLeaveTime": 1440,
                "beAwayBusinessCount": 0,
                "beAwayBusinessPersonCount": 1,
                "beAwayBusinessTime": 0,
                "earlyCount": 0,
                "earlyPersonCount": 0,
                "earlyTime": 0,
                "lateCount": 0,
                "latePersonCount": 0,
                "lateTime": 0,
                "orgName": "默认部门",
                "orgUuid": "0",
                "overCount": 0,
                "overPersonCount": 0,
                "overTime": 0,
                "period": "2023-06-21",
                "personCount": 3,
                "requireCount": 0,
                "requirePersonCount": 0,
                "requireTime": 0,
                "toilCount": 0,
                "toilPersonCount": 1,
                "toilTime": 0,
                "workCount": 0,
                "workPersonCount": 0,
                "workTime": 0
            },
            {
                "absentCount": 0,
                "absentPersonCount": 1,
                "absentTime": 0,
                "askForLeaveCount": 1,
                "askForLeaveDetails": [
                    {
                        "count": 0,
                        "name": "年假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b21483"
                    },
                    {
                        "count": 1,
                        "name": "病假",
                        "time": 398,
                        "uuid": "dd56adffff404c069ca500fcf1b22483"
                    },
                    {
                        "count": 0,
                        "name": "事假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b23483"
                    },
                    {
                        "count": 0,
                        "name": "产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b24483"
                    },
                    {
                        "count": 0,
                        "name": "陪产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b25483"
                    },
                    {
                        "count": 0,
                        "name": "婚假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b26483"
                    },
                    {
                        "count": 0,
                        "name": "丧假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b27483"
                    },
                    {
                        "count": 0,
                        "name": "撸猫假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b28483"
                    },
                    {
                        "count": 0,
                        "name": "撸狗假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b29483"
                    },
                    {
                        "count": 0,
                        "name": "姨妈假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b30483"
                    },
                    {
                        "count": 0,
                        "name": "心情不好假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b31483"
                    },
                    {
                        "count": 0,
                        "name": "起不来假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b32483"
                    },
                    {
                        "count": 0,
                        "name": "突然不想上班假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b33483"
                    },
                    {
                        "count": 0,
                        "name": "想我妈了假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b34483"
                    },
                    {
                        "count": 0,
                        "name": "熬夜看球假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b35483"
                    }
                ],
                "askForLeavePersonCount": 0,
                "askForLeaveTime": 398,
                "beAwayBusinessCount": 0,
                "beAwayBusinessPersonCount": 0,
                "beAwayBusinessTime": 0,
                "earlyCount": 0,
                "earlyPersonCount": 0,
                "earlyTime": 0,
                "lateCount": 0,
                "latePersonCount": 0,
                "lateTime": 0,
                "orgName": "默认部门",
                "orgUuid": "0",
                "overCount": 0,
                "overPersonCount": 0,
                "overTime": 0,
                "period": "2023-06-20",
                "personCount": 3,
                "requireCount": 0,
                "requirePersonCount": 1,
                "requireTime": 0,
                "toilCount": 0,
                "toilPersonCount": 0,
                "toilTime": 0,
                "workCount": 0,
                "workPersonCount": 0,
                "workTime": 0
            }
        ],
        "pageNum": 1,
        "pageSize": 2,
        "total": 33
    },
    "msg": "成功"
}

1.2. 部门月考勤统计

基础信息

路径: /v1/api/attendance/org/statistic/month/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
type integer 查询时间类型:1、月份;2、自定义时间段
orgUuidList array 部门UUID集合
  |─ string
startTime string 查询开始时间
endTime string 查询结束时间
pageNum integer 1 页码,从1开始
当前页码,不传默认1
pageSize integer 20 页面大小
分页大小,不传默认20

Body示例:

{
    "orgUuidList":["0","7f0acefe98844748ba035e4e019ba787"],
    "type":2,
    "startTime":"2023-06-01",
    "endTime":"2023-06-21"
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─requirePersonCount integer 应到人数
      |─requireCount integer 应到次数
      |─requireTime integer 应到时长,单位分钟
      |─workPersonCount integer 实到人数
      |─workCount integer 实到次数
      |─workTime integer 实到时长,单位分钟
      |─latePersonCount integer 迟到人数
      |─lateCount integer 迟到次数
      |─lateTime integer 迟到时长,单位分钟
      |─earlyPersonCount integer 早退人数
      |─earlyCount integer 早退次数
      |─earlyTime integer 早退时长,单位分钟
      |─overPersonCount integer 加班人数
      |─overCount integer 加班次数
      |─overTime integer 加班时长,单位分钟
      |─absentPersonCount integer 旷工人数
      |─absentCount integer 旷工次数
      |─absentTime integer 旷工时长,单位分钟
      |─toilPersonCount integer 调休人数
      |─toilCount integer 调休次数
      |─toilTime integer 调休时长,单位分钟
      |─beAwayBusinessPersonCount integer 出差人数
      |─beAwayBusinessCount integer 出差次数
      |─beAwayBusinessTime integer 出差时长,单位分钟
      |─askForLeavePersonCount integer 请假总人数
      |─askForLeaveCount integer 请假总次数
      |─askForLeaveTime integer 请假总时长,单位分钟
      |─askForLeaveDetails array 请假详情
        |─ object
          |─uuid string 请假类型UUID
          |─name string 该请假类型名称
          |─count integer 0 该请假类型次数
          |─time integer 0 该请假类型时长
      |─orgUuid string 部门UUID
      |─orgName string 部门名称
      |─period string 考勤日期
      |─personCount integer 总人数

响应示例:

{
    "code": 0,
    "data": {
        "list": [
            {
                "absentCount": 0,
                "absentPersonCount": 19,
                "absentTime": 0,
                "askForLeaveCount": 11,
                "askForLeaveDetails": [
                    {
                        "count": 2,
                        "name": "年假",
                        "time": 976,
                        "uuid": "dd56adffff404c069ca500fcf1b21483"
                    },
                    {
                        "count": 6,
                        "name": "病假",
                        "time": 4332,
                        "uuid": "dd56adffff404c069ca500fcf1b22483"
                    },
                    {
                        "count": 0,
                        "name": "事假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b23483"
                    },
                    {
                        "count": 0,
                        "name": "产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b24483"
                    },
                    {
                        "count": 0,
                        "name": "陪产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b25483"
                    },
                    {
                        "count": 5,
                        "name": "婚假",
                        "time": 7198,
                        "uuid": "dd56adffff404c069ca500fcf1b26483"
                    },
                    {
                        "count": 0,
                        "name": "丧假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b27483"
                    },
                    {
                        "count": 0,
                        "name": "撸猫假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b28483"
                    },
                    {
                        "count": 0,
                        "name": "撸狗假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b29483"
                    },
                    {
                        "count": 0,
                        "name": "姨妈假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b30483"
                    },
                    {
                        "count": 0,
                        "name": "心情不好假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b31483"
                    },
                    {
                        "count": 0,
                        "name": "起不来假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b32483"
                    },
                    {
                        "count": 0,
                        "name": "突然不想上班假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b33483"
                    },
                    {
                        "count": 0,
                        "name": "想我妈了假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b34483"
                    },
                    {
                        "count": 0,
                        "name": "熬夜看球假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b35483"
                    }
                ],
                "askForLeavePersonCount": 4,
                "askForLeaveTime": 10506,
                "beAwayBusinessCount": 3,
                "beAwayBusinessPersonCount": 1,
                "beAwayBusinessTime": 2921,
                "earlyCount": 0,
                "earlyPersonCount": 0,
                "earlyTime": 0,
                "lateCount": 0,
                "latePersonCount": 0,
                "lateTime": 0,
                "orgName": "默认部门",
                "orgUuid": "0",
                "overCount": 0,
                "overPersonCount": 1,
                "overTime": 0,
                "period": "2023/06/01-2023/06/21",
                "personCount": 218,
                "requireCount": 0,
                "requirePersonCount": 19,
                "requireTime": 0,
                "toilCount": 28,
                "toilPersonCount": 1,
                "toilTime": 21968,
                "workCount": 0,
                "workPersonCount": 0,
                "workTime": 0
            },
            {
                "absentCount": 0,
                "absentPersonCount": 3,
                "absentTime": 0,
                "askForLeaveCount": 0,
                "askForLeaveDetails": [
                    {
                        "count": 0,
                        "name": "年假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b21483"
                    },
                    {
                        "count": 0,
                        "name": "病假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b22483"
                    },
                    {
                        "count": 0,
                        "name": "事假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b23483"
                    },
                    {
                        "count": 0,
                        "name": "产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b24483"
                    },
                    {
                        "count": 0,
                        "name": "陪产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b25483"
                    },
                    {
                        "count": 0,
                        "name": "婚假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b26483"
                    },
                    {
                        "count": 0,
                        "name": "丧假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b27483"
                    },
                    {
                        "count": 0,
                        "name": "撸猫假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b28483"
                    },
                    {
                        "count": 0,
                        "name": "撸狗假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b29483"
                    },
                    {
                        "count": 0,
                        "name": "姨妈假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b30483"
                    },
                    {
                        "count": 0,
                        "name": "心情不好假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b31483"
                    },
                    {
                        "count": 0,
                        "name": "起不来假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b32483"
                    },
                    {
                        "count": 0,
                        "name": "突然不想上班假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b33483"
                    },
                    {
                        "count": 0,
                        "name": "想我妈了假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b34483"
                    },
                    {
                        "count": 0,
                        "name": "熬夜看球假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b35483"
                    }
                ],
                "askForLeavePersonCount": 0,
                "askForLeaveTime": 0,
                "beAwayBusinessCount": 0,
                "beAwayBusinessPersonCount": 0,
                "beAwayBusinessTime": 0,
                "earlyCount": 0,
                "earlyPersonCount": 0,
                "earlyTime": 0,
                "lateCount": 0,
                "latePersonCount": 0,
                "lateTime": 0,
                "orgName": "test",
                "orgUuid": "7f0acefe98844748ba035e4e019ba787",
                "overCount": 0,
                "overPersonCount": 0,
                "overTime": 0,
                "period": "2023/06/01-2023/06/21",
                "personCount": 7,
                "requireCount": 0,
                "requirePersonCount": 3,
                "requireTime": 0,
                "toilCount": 0,
                "toilPersonCount": 0,
                "toilTime": 0,
                "workCount": 0,
                "workPersonCount": 0,
                "workTime": 0
            }
        ],
        "pageNum": 1,
        "pageSize": 20,
        "total": 2
    },
    "msg": "成功"
}

1.3. 部门出勤调整统计

基础信息

路径: /v1/api/attendance/org/statistic/adjust/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
type integer 查询时间类型:1、月份;2、自定义时间段
orgUuidList array 部门UUID集合
  |─ string
startTime string 查询开始时间
endTime string 查询结束时间
pageNum integer 1 页码,从1开始
当前页码,不传默认1
pageSize integer 20 页面大小
分页大小,不传默认20

Body示例:

{
    "orgUuidList":["7f0acefe98844748ba035e4e019ba787"],
    "type":2,
    "startTime":"2023-06-01",
    "endTime":"2023-06-21",
    "pageNum":1,
    "pageSize":2
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─toilPersonCount integer 调休人数
      |─toilCount integer 调休次数
      |─toilTime integer 调休时长,单位分钟
      |─beAwayBusinessPersonCount integer 出差人数
      |─beAwayBusinessCount integer 出差次数
      |─beAwayBusinessTime integer 出差时长,单位分钟
      |─askForLeavePersonCount integer 请假总人数
      |─askForLeaveCount integer 请假总次数
      |─askForLeaveTime integer 请假总时长,单位分钟
      |─askForLeaveDetails array 请假详情
        |─ object
          |─uuid string 请假类型UUID
          |─name string 该请假类型名称
          |─count integer 0 该请假类型次数
          |─time integer 0 该请假类型时长
      |─orgUuid string 部门UUID
      |─orgName string 部门名称
      |─period string 考勤日期
      |─personCount integer 总人数

响应示例:

{
    "code": 0,
    "data": {
        "list": [
            {
                "askForLeaveDetails": [
                    {
                        "count": 0,
                        "name": "年假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b21483"
                    },
                    {
                        "count": 0,
                        "name": "病假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b22483"
                    },
                    {
                        "count": 0,
                        "name": "事假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b23483"
                    },
                    {
                        "count": 0,
                        "name": "产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b24483"
                    },
                    {
                        "count": 0,
                        "name": "陪产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b25483"
                    },
                    {
                        "count": 0,
                        "name": "婚假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b26483"
                    },
                    {
                        "count": 0,
                        "name": "丧假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b27483"
                    },
                    {
                        "count": 0,
                        "name": "撸猫假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b28483"
                    },
                    {
                        "count": 0,
                        "name": "撸狗假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b29483"
                    },
                    {
                        "count": 0,
                        "name": "姨妈假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b30483"
                    },
                    {
                        "count": 0,
                        "name": "心情不好假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b31483"
                    },
                    {
                        "count": 0,
                        "name": "起不来假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b32483"
                    },
                    {
                        "count": 0,
                        "name": "突然不想上班假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b33483"
                    },
                    {
                        "count": 0,
                        "name": "想我妈了假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b34483"
                    },
                    {
                        "count": 0,
                        "name": "熬夜看球假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b35483"
                    }
                ],
                "askForLeavePersonCount": 0,
                "askForLeaveTime": 0,
                "beAwayBusinessCount": 0,
                "beAwayBusinessPersonCount": 0,
                "beAwayBusinessTime": 0,
                "orgName": "test",
                "orgUuid": "7f0acefe98844748ba035e4e019ba787",
                "period": "2023/06/01-2023/06/21",
                "personCount": 7,
                "toilCount": 0,
                "toilPersonCount": 0,
                "toilTime": 0
            }
        ],
        "pageNum": 1,
        "pageSize": 2,
        "total": 1
    },
    "msg": "成功"
}

1.4. 部门工作时长统计

基础信息

路径: /v1/api/attendance/org/statistic/work/time/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
type integer 查询时间类型:1、月份;2、自定义时间段
orgUuidList array 部门UUID集合
  |─ string
startTime string 查询开始时间
endTime string 查询结束时间
pageNum integer 1 页码,从1开始
当前页码,不传默认1
pageSize integer 20 页面大小
分页大小,不传默认20

Body示例:

{
    "orgUuidList":["0","7f0acefe98844748ba035e4e019ba787"],
    "type":2,
    "startTime":"2023-06-01",
    "endTime":"2023-06-21"
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─workTime integer 工作时长,单位分钟
      |─orgUuid string 部门UUID
      |─orgName string 部门名称
      |─period string 考勤日期
      |─personCount integer 总人数

响应示例:

{
    "code": 0,
    "data": {
        "list": [
            {
                "orgName": "默认部门",
                "orgUuid": "0",
                "period": "2023/06/01-2023/06/21",
                "personCount": 218,
                "workTime": 0
            },
            {
                "orgName": "test",
                "orgUuid": "7f0acefe98844748ba035e4e019ba787",
                "period": "2023/06/01-2023/06/21",
                "personCount": 7,
                "workTime": 0
            }
        ],
        "pageNum": 1,
        "pageSize": 20,
        "total": 2
    },
    "msg": "成功"
}

1.5. 部门加班时长统计

基础信息

路径: /v1/api/attendance/org/statistic/over/time/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
type integer 查询时间类型:1、月份;2、自定义时间段
orgUuidList array 部门UUID集合
  |─ string
startTime string 查询开始时间
endTime string 查询结束时间
pageNum integer 1 页码,从1开始
当前页码,不传默认1
pageSize integer 20 页面大小
分页大小,不传默认20

Body示例:

{
    "orgUuidList":["0","7f0acefe98844748ba035e4e019ba787"],
    "type":2,
    "startTime":"2023-06-01",
    "endTime":"2023-06-21"
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─overTime integer 工作日加班时长,单位分钟
      |─weekendOverTime integer 周末加班时长,单位分钟
      |─holidayOverTime integer 节假日加班时长,单位分钟
      |─orgUuid string 部门UUID
      |─orgName string 部门名称
      |─period string 考勤日期
      |─personCount integer 总人数

响应示例:

{
    "code": 0,
    "data": {
        "list": [
            {
                "holidayOverTime": 0,
                "orgName": "默认部门",
                "orgUuid": "0",
                "overTime": 0,
                "period": "2023/06/01-2023/06/21",
                "personCount": 218,
                "weekendOverTime": 0
            },
            {
                "holidayOverTime": 0,
                "orgName": "test",
                "orgUuid": "7f0acefe98844748ba035e4e019ba787",
                "overTime": 0,
                "period": "2023/06/01-2023/06/21",
                "personCount": 7,
                "weekendOverTime": 0
            }
        ],
        "pageNum": 1,
        "pageSize": 20,
        "total": 2
    },
    "msg": "成功"
}

1.6. 部门请假情况统计

基础信息

路径: /v1/api/attendance/org/statistic/leave/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
type integer 查询时间类型:1、月份;2、自定义时间段
orgUuidList array 部门UUID集合
  |─ string
startTime string 查询开始时间
endTime string 查询结束时间
pageNum integer 1 页码,从1开始
当前页码,不传默认1
pageSize integer 20 页面大小
分页大小,不传默认20

Body示例:

{
    "orgUuidList":["0","7f0acefe98844748ba035e4e019ba787"],
    "type":2,
    "startTime":"2023-06-01",
    "endTime":"2023-06-21"
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─askForLeavePersonCount integer 请假总人数
      |─askForLeaveCount integer 请假总次数
      |─askForLeaveTime integer 请假总时长,单位分钟
      |─askForLeaveDetails array 请假详情
        |─ object
          |─uuid string 请假类型UUID
          |─name string 该请假类型名称
          |─count integer 0 该请假类型次数
          |─time integer 0 该请假类型时长
      |─orgUuid string 部门UUID
      |─orgName string 部门名称
      |─period string 考勤日期
      |─personCount integer 总人数

响应示例:

{
    "code": 0,
    "data": {
        "list": [
            {
                "askForLeaveDetails": [
                    {
                        "count": 2,
                        "name": "年假",
                        "time": 976,
                        "uuid": "dd56adffff404c069ca500fcf1b21483"
                    },
                    {
                        "count": 6,
                        "name": "病假",
                        "time": 4332,
                        "uuid": "dd56adffff404c069ca500fcf1b22483"
                    },
                    {
                        "count": 0,
                        "name": "事假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b23483"
                    },
                    {
                        "count": 0,
                        "name": "产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b24483"
                    },
                    {
                        "count": 0,
                        "name": "陪产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b25483"
                    },
                    {
                        "count": 5,
                        "name": "婚假",
                        "time": 7198,
                        "uuid": "dd56adffff404c069ca500fcf1b26483"
                    },
                    {
                        "count": 0,
                        "name": "丧假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b27483"
                    },
                    {
                        "count": 0,
                        "name": "撸猫假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b28483"
                    },
                    {
                        "count": 0,
                        "name": "撸狗假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b29483"
                    },
                    {
                        "count": 0,
                        "name": "姨妈假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b30483"
                    },
                    {
                        "count": 0,
                        "name": "心情不好假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b31483"
                    },
                    {
                        "count": 0,
                        "name": "起不来假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b32483"
                    },
                    {
                        "count": 0,
                        "name": "突然不想上班假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b33483"
                    },
                    {
                        "count": 0,
                        "name": "想我妈了假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b34483"
                    },
                    {
                        "count": 0,
                        "name": "熬夜看球假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b35483"
                    }
                ],
                "askForLeavePersonCount": 4,
                "askForLeaveTime": 10506,
                "orgName": "默认部门",
                "orgUuid": "0",
                "period": "2023/06/01-2023/06/21",
                "personCount": 218
            },
            {
                "askForLeaveDetails": [
                    {
                        "count": 0,
                        "name": "年假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b21483"
                    },
                    {
                        "count": 0,
                        "name": "病假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b22483"
                    },
                    {
                        "count": 0,
                        "name": "事假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b23483"
                    },
                    {
                        "count": 0,
                        "name": "产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b24483"
                    },
                    {
                        "count": 0,
                        "name": "陪产假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b25483"
                    },
                    {
                        "count": 0,
                        "name": "婚假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b26483"
                    },
                    {
                        "count": 0,
                        "name": "丧假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b27483"
                    },
                    {
                        "count": 0,
                        "name": "撸猫假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b28483"
                    },
                    {
                        "count": 0,
                        "name": "撸狗假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b29483"
                    },
                    {
                        "count": 0,
                        "name": "姨妈假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b30483"
                    },
                    {
                        "count": 0,
                        "name": "心情不好假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b31483"
                    },
                    {
                        "count": 0,
                        "name": "起不来假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b32483"
                    },
                    {
                        "count": 0,
                        "name": "突然不想上班假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b33483"
                    },
                    {
                        "count": 0,
                        "name": "想我妈了假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b34483"
                    },
                    {
                        "count": 0,
                        "name": "熬夜看球假",
                        "time": 0,
                        "uuid": "dd56adffff404c069ca500fcf1b35483"
                    }
                ],
                "askForLeavePersonCount": 0,
                "askForLeaveTime": 0,
                "orgName": "test",
                "orgUuid": "7f0acefe98844748ba035e4e019ba787",
                "period": "2023/06/01-2023/06/21",
                "personCount": 7
            }
        ],
        "pageNum": 1,
        "pageSize": 20,
        "total": 2
    },
    "msg": "成功"
}

1.7. 部门异常考勤统计

基础信息

路径: /v1/api/attendance/org/statistic/error/list

请求方法: POST

请求参数

Headers:

名称 必须 备注
Content-Type application/json

Body:

名称 类型 必须 默认值 备注
type integer 查询时间类型:1、月份;2、自定义时间段
orgUuidList array 部门UUID集合
  |─ string
startTime string 查询开始时间
endTime string 查询结束时间
pageNum integer 1 页码,从1开始
当前页码,不传默认1
pageSize integer 20 页面大小
分页大小,不传默认20

Body示例:

{
    "orgUuidList":["0","7f0acefe98844748ba035e4e019ba787"],
    "type":2,
    "startTime":"2023-06-01",
    "endTime":"2023-06-21"
}

返回数据

Headers:

名称 必须 备注
content-type application/json;charset=UTF-8

Body:

名称 类型 必须 默认值 备注
code integer 返回值code
msg string 返回值消息
data object 具体的返回值
  |─pageNum integer 页码,从1开始
当前页码
  |─pageSize integer 页面大小
分页大小
  |─total integer 总记录数
总数
  |─list array
    |─ object
      |─latePersonCount integer 迟到人数
      |─lateCount integer 迟到次数
      |─lateTime integer 迟到时长,单位分钟
      |─earlyPersonCount integer 早退人数
      |─earlyCount integer 早退次数
      |─earlyTime integer 早退时长,单位分钟
      |─absentPersonCount integer 旷工人数
      |─absentCount integer 旷工次数
      |─absentTime integer 旷工时长,单位分钟
      |─orgUuid string 部门UUID
      |─orgName string 部门名称
      |─period string 考勤日期
      |─personCount integer 总人数

响应示例:

{
    "code": 0,
    "data": {
        "list": [
            {
                "absentCount": 0,
                "absentPersonCount": 19,
                "absentTime": 0,
                "earlyCount": 0,
                "earlyPersonCount": 0,
                "earlyTime": 0,
                "lateCount": 0,
                "latePersonCount": 0,
                "lateTime": 0,
                "orgName": "默认部门",
                "orgUuid": "0",
                "period": "2023/06/01-2023/06/21",
                "personCount": 218
            },
            {
                "absentCount": 0,
                "absentPersonCount": 3,
                "absentTime": 0,
                "earlyCount": 0,
                "earlyPersonCount": 0,
                "earlyTime": 0,
                "lateCount": 0,
                "latePersonCount": 0,
                "lateTime": 0,
                "orgName": "test",
                "orgUuid": "7f0acefe98844748ba035e4e019ba787",
                "period": "2023/06/01-2023/06/21",
                "personCount": 7
            }
        ],
        "pageNum": 1,
        "pageSize": 20,
        "total": 2
    },
    "msg": "成功"
}

results matching ""

    No results matching ""