package com.zjty.tynotes.attendance.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Author gwj
 * @create 2020/3/24 14:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "个人考勤信息", description = "个人考勤信息")
@Document(collection = "ding_attendance")
public class AttendanceDetails {
    @Id
    @ApiModelProperty(value = "id",example = "1")
    String id;

    @ApiModelProperty(value = "用户id",example = "eqweqw12312e")
    String userId;

//    @ApiModelProperty(value = "平均工时",example = "176")
//    Integer averageWorkHours;
//
//    @ApiModelProperty(value = "应出勤天数",example = "22")
//    Integer attendanceDay;
//
//    @ApiModelProperty(value = "实际出勤天数",example = "22")
//    Integer realAttendanceDay;

    @ApiModelProperty(value = "是否出勤0为出勤/1为未出勤",example = "22")
    Integer isRealAttendanceDay;

    @ApiModelProperty(value = "是否迟到0为迟到/1为未迟到",example = "1")
    Integer isLateDay;

    @ApiModelProperty(value = "是否早退0为早退/1为未早退",example = "1")
    Integer isLeaveEarlyDay;

    @ApiModelProperty(value = "缺卡次数",example = "2")
    Integer lessCard;

    @ApiModelProperty(value = "是否旷工0为旷工/1为未旷工",example = "2")
    Integer isAbsenteeismDay;

    @ApiModelProperty(value = "是否加班0为加班/1为未加班",example = "10")
    Integer isWorkOverHours;

    @ApiModelProperty(value = "是否调休0为调休/1为未调休",example = "1")
    Float isPaidLeaveDay;

    @ApiModelProperty(value = "是否病假0为病假/1为未病假",example = "1")
    Float isSickLeaveDay;

    @ApiModelProperty(value = "是否公出0为公出/1为未公出",example = "1")
    Float isOutSideBusinessDay;

    @ApiModelProperty(value = "时间",example = "2020-03-22")
    Date date;
}
