package com.ssm.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 异常打卡记录
 */
@Table(name = "abnormal_clock_in_record")
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class AbnormalClockInRecord {
    /**
     * 主键ID
     * <p>
     *     与 {@link StaffTemporary#getId()} 是同个ID
     * </p>
     */
    @Id
    private Long id;

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

    /**
     * 员工名字
     */
    @Column(name = "staff_name")
    @ApiModelProperty(name = "staffName", value = "员工名字")
    private String staffName;

//    /**
//     * 入职时间
//     */
//    @Column(name = "enter_time")
//    @ApiModelProperty(name = "enterTime", value = "入职时间")
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date enterTime;

//    /**
//     * 离职时间
//     */
//    @Column(name = "leave_time")
//    @ApiModelProperty(name = "leaveTime", value = "离职时间")
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private Date leaveTime;

    /**
     * 身份证
     */
    @Column(name = "identity_card")
    @ApiModelProperty(name = "identityCard", value = "身份证")
    private String identityCard;

//    /**
//     * 服务类型 0日结/1月结
//     */
//    @Column(name = "type")
//    @ApiModelProperty(name = "type", value = "服务类型 0日结/1月结")
//    private Integer type;

//    /**
//     * 中控 0入职/1已离职
//     */
//    @Column(name = "zhongkong_dimission")
//    @ApiModelProperty(name = "zhongkongDimission", value = "中控 0入职/1已离职")
//    private Integer zhongkongDimission;

//    /**
//     * 异常打卡次数
//     */
//    @Column(name = "abnormal_count")
//    @ApiModelProperty(name = "abnormalCount", value = "异常打卡次数")
//    private Integer abnormalCount;
//
//    /**
//     * 总打卡次数
//     */
//    @Column(name = "total_clock_in_count")
//    @ApiModelProperty(name = "totalClockInCount", value = "总打卡次数")
//    private Integer totalClockInCount;
// 首打卡
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkTime;
//  缺卡
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkEndTime;

//考勤时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date attendanceTime;

// 考勤状态
    private String recordType;
//    日结/月结
    private Integer type;
}
