123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- package cn.nosum.wx.cp.entity.oa;
- import com.google.gson.annotations.SerializedName;
- import lombok.Data;
- import java.io.Serializable;
- import java.util.List;
- /**
- * 企业微信打卡日报数据
- *
- * @author Young
- */
- @Data
- public class WxCpCheckinDayData implements Serializable {
- private static final long serialVersionUID = 5950483201268226746L;
- /**
- * base_info 基础信息
- */
- @SerializedName("base_info")
- private BaseInfo baseInfo;
- @Data
- public class BaseInfo implements Serializable {
- private static final long serialVersionUID = 3679745559788648438L;
- /**
- * date 日报日期 时间戳
- */
- @SerializedName("date")
- private Integer date;
- /**
- * record_type 记录类型:1-固定上下班;2-外出(此报表中不会出现外出打卡数据);3-按班次上下班;4-自由签到;5-加班;7-无规则
- */
- @SerializedName("record_type")
- private Integer recordType;
- /**
- * name 打卡人员姓名
- */
- @SerializedName("name")
- private String name;
- /**
- * name_ex 打卡人员姓名
- */
- @SerializedName("name_ex")
- private String nameEx;
- /**
- * departs_name 打卡人员所在部门,会显示所有所在部门
- */
- @SerializedName("departs_name")
- private String departsName;
- /**
- * acctid 打卡人员帐号,即userid
- */
- @SerializedName("acctid")
- private String acctId;
- /**
- * rule_info 打卡人员所属规则信息
- */
- @SerializedName("rule_info")
- private RuleInfo ruleInfo;
- @Data
- public class RuleInfo implements Serializable {
- private static final long serialVersionUID = -5512479811648914189L;
- /**
- * groupid 所属规则的id
- */
- @SerializedName("groupid")
- private Integer groupId;
- /**
- * groupname 打卡规则名
- */
- @SerializedName("groupname")
- private String groupName;
- /**
- * scheduleid 当日所属班次id,仅按班次上下班才有值,显示在打卡日报-班次列
- */
- @SerializedName("scheduleid")
- private Integer scheduleId;
- /**
- * schedulename 当日所属班次名称,仅按班次上下班才有值,显示在打卡日报-班次列
- */
- @SerializedName("schedulename")
- private String scheduleName;
- /**
- * checkintime 当日打卡时间,仅固定上下班规则有值,显示在打卡日报-班次列
- */
- @SerializedName("checkintime")
- private List<CheckinTime> checkinTime;
- @Data
- public class CheckinTime implements Serializable {
- private static final long serialVersionUID = 1582835435812966332L;
- /**
- * work_sec 上班时间,为距离0点的时间差
- */
- @SerializedName("work_sec")
- private Integer workSec;
- /**
- * off_work_sec 下班时间,为距离0点的时间差
- */
- @SerializedName("off_work_sec")
- private Integer offWorkSec;
- }
- }
- /**
- * day_type 日报类型:0-工作日日报;1-休息日日报
- */
- @SerializedName("day_type")
- private Integer dayType;
- }
- /**
- * summary_info 汇总信息
- */
- @SerializedName("summary_info")
- private SummaryInfo summaryInfo;
- @Data
- public class SummaryInfo implements Serializable {
- private static final long serialVersionUID = 3428576099259666595L;
- /**
- * checkin_count 当日打卡次数
- */
- @SerializedName("checkin_count")
- private Integer checkinCount;
- /**
- * regular_work_sec 当日实际工作时长,单位:秒
- */
- @SerializedName("regular_work_sec")
- private Integer regularWorkSec;
- /**
- * standard_work_sec 当日标准工作时长,单位:秒
- */
- @SerializedName("standard_work_sec")
- private Integer standardWorkSec;
- /**
- * earliest_time 当日最早打卡时间
- */
- @SerializedName("earliest_time")
- private Integer earliestTime;
- /**
- * lastest_time 当日最晚打卡时间
- */
- @SerializedName("lastest_time")
- private Integer lastestTime;
- }
- /**
- * holiday_infos 假勤相关信息
- */
- @SerializedName("holiday_infos")
- private List<HolidayInfos> holidayInfos;
- @Data
- public class HolidayInfos implements Serializable {
- private static final long serialVersionUID = -6671577072585561527L;
- /**
- * sp_number 假勤相关信息
- */
- @SerializedName("sp_number")
- private String spNumber;
- /**
- * sp_title 假勤信息摘要-标题信息
- */
- @SerializedName("sp_title")
- private SpTitle spTitle;
- @Data
- public class SpTitle implements Serializable {
- private static final long serialVersionUID = 2148815417115384998L;
- /**
- * data 多种语言描述,目前只有中文一种
- */
- @SerializedName("data")
- private List<Data> data;
- @lombok.Data
- public class Data implements Serializable {
- private static final long serialVersionUID = -1672692024530543180L;
- /**
- * text 假勤信息摘要-标题文本
- */
- @SerializedName("text")
- private String text;
- /**
- * lang 语言类型:”zh_CN”
- */
- @SerializedName("lang")
- private String lang;
- }
- }
- /**
- * sp_description 假勤信息摘要-描述信息
- */
- @SerializedName("sp_description")
- private SpDescription spDescription;
- @Data
- public class SpDescription implements Serializable {
- private static final long serialVersionUID = 77680581771933449L;
- /**
- * data 多种语言描述,目前只有中文一种
- */
- @SerializedName("data")
- private List<Data> data;
- @lombok.Data
- public class Data implements Serializable {
- private static final long serialVersionUID = 3555479101375365805L;
- /**
- * text 假勤信息摘要-标题文本
- */
- @SerializedName("text")
- private String text;
- /**
- * lang 语言类型:”zh_CN”
- */
- @SerializedName("lang")
- private String lang;
- }
- }
- }
- /**
- * exception_infos 校准状态信息
- */
- @SerializedName("exception_infos")
- private List<ExceptionInfos> exceptionInfos;
- @Data
- public class ExceptionInfos implements Serializable {
- private static final long serialVersionUID = -5987438373762518299L;
- /**
- * exception 校准状态类型:1-迟到;2-早退;3-缺卡;4-旷工;5-地点异常;6-设备异常
- */
- @SerializedName("exception")
- private Integer exception;
- /**
- * count 当日此异常的次数
- */
- @SerializedName("count")
- private Integer count;
- /**
- * duration 当日此异常的时长(迟到/早退/旷工才有值)
- */
- @SerializedName("duration")
- private Integer duration;
- }
- /**
- * ot_info 加班信息
- */
- @SerializedName("ot_info")
- private OtInfo otInfo;
- @Data
- public class OtInfo implements Serializable {
- private static final long serialVersionUID = -6557759801572150175L;
- /**
- * ot_status 状态:0-无加班;1-正常;2-缺时长
- */
- @SerializedName("ot_status")
- private Integer otStatus;
- /**
- * ot_duration 加班时长
- */
- @SerializedName("ot_duration")
- private Integer otDuration;
- /**
- * exception_duration ot_status为2下,加班不足的时长
- */
- @SerializedName("exception_duration")
- private List<Integer> exceptionDuration;
- }
- /**
- * sp_items 假勤统计信息
- */
- @SerializedName("sp_items")
- private List<SpItem> spItems;
- @Data
- public class SpItem implements Serializable {
- private static final long serialVersionUID = 2423158264958352024L;
- /**
- * type 类型:1-请假;2-补卡;3-出差;4-外出;100-外勤
- */
- @SerializedName("type")
- private Integer type;
- /**
- * vacation_id 具体请假类型,当type为1请假时,具体的请假类型id,可通过审批相关接口获取假期详情
- */
- @SerializedName("vacation_id")
- private Integer vacationId;
- /**
- * count 当日假勤次数
- */
- @SerializedName("count")
- private Integer count;
- /**
- * duration 当日假勤时长秒数,时长单位为天直接除以86400即为天数,单位为小时直接除以3600即为小时数
- */
- @SerializedName("duration")
- private Integer duration;
- /**
- * time_type 时长单位:0-按天 1-按小时
- */
- @SerializedName("time_type")
- private Integer timeType;
- /**
- * name 统计项名称
- */
- @SerializedName("name")
- private String name;
- }
- }
|