liu
10 天以前 82155dd6f2b16fbfb718e636a54e2c9dae31246b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package cn.iocoder.yudao.module.hrm.dal.dataobject.attendance;
 
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
 
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
 
/**
 * 考勤打卡记录 DO
 *
 * @author 超级管理员
 */
@TableName("hrm_attendance_record")
@KeySequence("hrm_attendance_record_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class HrmAttendanceRecordDO extends BaseDO {
 
    /**
     * 记录ID
     */
    @TableId
    private Long id;
 
    /**
     * 员工ID
     *
     * 关联 HrmEmployeeDO#getId()
     */
    private Long userId;
 
    /**
     * 部门ID
     */
    private Long deptId;
 
    /**
     * 考勤日期
     */
    private LocalDate date;
 
    /**
     * 上班打卡时间
     */
    private LocalDateTime clockInTime;
 
    /**
     * 下班打卡时间
     */
    private LocalDateTime clockOutTime;
 
    /**
     * 上班打卡类型:1-正常,2-迟到,3-缺卡
     */
    private Integer clockInType;
 
    /**
     * 下班打卡类型:1-正常,2-早退,3-缺卡
     */
    private Integer clockOutType;
 
    /**
     * 工作时长(小时)
     */
    private BigDecimal workHours;
 
    /**
     * 加班时长(小时)
     */
    private BigDecimal overtimeHours;
 
    /**
     * 当天是否请假
     *
     * 当天存在「审批通过」的请假单且与工作时段有重叠时为 true。
     * 请假当天仍允许打卡,但不算迟到/早退,也不算缺卡。
     */
    private Boolean leaveFlag;
 
    /**
     * 当天请假工时(小时)
     *
     * 按请假单起止时间与考勤规则工作时段求交集计算,精确到 0.01 小时。
     */
    private BigDecimal leaveHours;
 
    /**
     * 当天请假类型,逗号分隔
     *
     * 对应 HrmLeaveTypeEnum 的 type,如 "1,2" 表示当天既请了事假又请了病假。
     */
    private String leaveTypes;
 
    /**
     * 打卡地点
     */
    private String location;
 
    private BigDecimal clockInLongitude;
    private BigDecimal clockInLatitude;
    private BigDecimal clockInAccuracy;
    private BigDecimal clockInDistance;
    private String clockInAddress;
    private BigDecimal clockOutLongitude;
    private BigDecimal clockOutLatitude;
    private BigDecimal clockOutAccuracy;
    private BigDecimal clockOutDistance;
    private String clockOutAddress;
 
    /**
     * 备注
     */
    private String remark;
 
    /**
     * 数据来源:1-打卡,2-导入
     */
    private Integer dataSource;
 
}