125 lines
2.5 KiB
Java
125 lines
2.5 KiB
Java
package com.evo.attendance.domain;
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import com.evo.common.annotation.Excel;
|
|
import com.evo.common.core.domain.BaseEntity;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* 考勤记录对象 rz_attendance
|
|
*
|
|
* @author chenyj
|
|
* @date 2024-09-05
|
|
*/
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = true)
|
|
@TableName("rz_attendance")
|
|
public class RzAttendance extends BaseEntity {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/**
|
|
* 主键
|
|
*/
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
private Long id;
|
|
|
|
/**
|
|
* 统计id
|
|
*/
|
|
private Long staffId;
|
|
|
|
/**
|
|
* 员工姓名
|
|
*/
|
|
@Excel(name = "员工姓名")
|
|
private String name;
|
|
|
|
/**
|
|
* 所属部门
|
|
*/
|
|
@Excel(name = "所属部门")
|
|
@TableField(exist = false)
|
|
private String deptName;
|
|
|
|
private Long deptId;
|
|
|
|
/**
|
|
* 考勤日期
|
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@Excel(name = "考勤日期", width = 30, dateFormat = "yyyy-MM-dd")
|
|
private Date attendanceDate;
|
|
|
|
/**
|
|
* 考勤规则
|
|
*/
|
|
@Excel(name = "考勤规则")
|
|
private String rules;
|
|
|
|
private String ycsFlag;
|
|
|
|
private String ycxFlag;
|
|
|
|
/**
|
|
* 上班时间
|
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
@Excel(name = "上班时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
private Date workStartTime;
|
|
|
|
/**
|
|
* 下班时间
|
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
@Excel(name = "下班时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
private Date workEndTime;
|
|
|
|
/**
|
|
* 工作时长
|
|
*/
|
|
@Excel(name = "工作时长")
|
|
private BigDecimal workSum;
|
|
@Excel(name = "考勤时长")
|
|
private BigDecimal workHours;
|
|
/**
|
|
* 夜班次数
|
|
*/
|
|
private int nightNumber;
|
|
|
|
/**
|
|
* 中班次数
|
|
*/
|
|
private int middleShiftNumber;
|
|
|
|
|
|
/**
|
|
* 备注
|
|
*/
|
|
@Excel(name = "备注")
|
|
private String remarks;
|
|
|
|
/**
|
|
* 删除标识
|
|
*/
|
|
@TableField(fill = FieldFill.INSERT)
|
|
private String delFlag;
|
|
/***
|
|
* 请假类型
|
|
*/
|
|
private Long holidayType;
|
|
|
|
|
|
@TableField(exist = false)
|
|
private Date startTime;
|
|
@TableField(exist = false)
|
|
private Date endTime;
|
|
|
|
}
|