package com.ssm.manage.entity;


//import com.dc.common.core.BaseEntity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

/**
 * 缺勤记录
 */
@TableName("absenteeism_record")
@Data
@ToString
@NoArgsConstructor
@ApiModel(value = "缺勤记录")
@JsonIgnoreProperties(ignoreUnknown = true)
public class AbsenteeismRecord {
    private static final long serialVersionUID = -77586503722655970L;

    @Id
    @Column(name = "id")
    private Long id;
    /**
     * 员工id
     */
    @Column(name = "staff_temp_id")
    @ApiModelProperty(name = "staffId", value = "员工id")
    private Long staffTempId;
    /**
     * 员工名字
     */
    @Column(name = "staff_name")
    @ApiModelProperty(name = "staffName", value = "员工名字")
    private String staffName;
    /**
     * 0男/1女
     */
    @Column(name = "sex")
    @ApiModelProperty(name = "sex", value = "0男/1女")
    private Integer sex;
    /**
     * 手机号
     */
    @Column(name = "mobile_phone")
    @ApiModelProperty(name = "mobilePhone", value = "手机号")
    private String mobilePhone;
    /**
     * 身份证
     */
    @Column(name = "identity_card")
    @ApiModelProperty(name = "identityCard", value = "身份证")
    private String identityCard;
    /**
     * 考勤时间
     */
    @Column(name = "attendance_time")
    @ApiModelProperty(name = "checkTime", value = "开始时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date attendanceTime;

    /**
     * 区域id
     */
    @Column(name = "region_id")
    @ApiModelProperty(name = "regionId", value = "区域id")
    private Integer regionId;
    /**
     * 企业id
     */
    @Column(name = "store_id")
    @ApiModelProperty(name = "storeId", value = "企业id")
    private Long storeId;

    /**
     * 员工编码
     */
    @Column(name = "staff_num")
    @ApiModelProperty(name = "staffNum", value = "员工编码")
    private String staffNum;

}
