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-16
 * @version： V1.0
 */
@Data
@TableName("attendance_record")
@ApiModel(value = "AttendanceRecord实体类", description = "AttendanceRecord")
public class AttendanceRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Integer 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 = 15)
    @ApiModelProperty(value = "当天在岗工人")
    private Integer inServiceWorker;
    /**
     * 当天出勤工人
     */
    @Excel(name = "当天出勤工人", width = 15)
    @ApiModelProperty(value = "当天出勤工人")
    private Integer attendWorker;
    /**
     * 当天在岗管理人员
     */
    @Excel(name = "当天在岗管理人员", width = 15)
    @ApiModelProperty(value = "当天在岗管理人员")
    private Integer inServiceManager;
    /**
     * 当天出勤管理人员
     */
    @Excel(name = "当天出勤管理人员", width = 15)
    @ApiModelProperty(value = "当天出勤管理人员")
    private Integer attendManager;
}
