package com.zhgd.xmgl.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 考勤统计
 * @author： pengj
 * @date： 2023-03-17
 * @version： V1.0
 */
@Data
@TableName("attendance_statistics")
@ApiModel(value = "AttendanceStatistics实体类", description = "AttendanceStatistics")
public class AttendanceStatistics implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private Long id;
    /**
     * 统计日期
     */
    @Excel(name = "统计日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "统计日期")
    private Date dayDate;
    /**
     * 上班打卡时间
     */
    @Excel(name = "上班打卡时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上班打卡时间")
    private Date entryTime;
    /**
     * 上班打卡状态(1:正常;2:迟到)
     */
    @Excel(name = "上班打卡状态(1:正常;2:迟到)", width = 15)
    @ApiModelProperty(value = "上班打卡状态(1:正常;2:迟到)")
    private Integer entryState;
    /**
     * 下班打卡时间
     */
    @Excel(name = "下班打卡时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下班打卡时间")
    private Date exitTime;
    /**
     * 下班打卡状态(1:正常;2:早退;3:加班)
     */
    @Excel(name = "下班打卡状态(1:正常;2:早退;3:加班)", width = 15)
    @ApiModelProperty(value = "下班打卡状态(1:正常;2:早退;3:加班)")
    private Integer exitState;
    /**
     * 工时统计
     */
    @Excel(name = "工时统计", width = 15)
    @ApiModelProperty(value = "工时统计")
    private Integer workHour;
    /**
     * 工人sn
     */
    @Excel(name = "工人sn", width = 15)
    @ApiModelProperty(value = "工人sn")
    private String workerId;
}
