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;
|
|
/**
|
* 打卡地点
|
*/
|
private String location;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
/**
|
* 数据来源:1-打卡,2-导入
|
*/
|
private Integer dataSource;
|
|
}
|