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 = "旷工天数",example = "2")
    Float absenteeismDay;

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

    @ApiModelProperty(value = "加班时长",example = "4")
    Integer workOverHours;

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

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

    @ApiModelProperty(value = "请假时长",example = "1")
    Float sickLeaveDay;

    @ApiModelProperty(value = "是否公出",example = "1")
    Integer isOutSideBusinessDay;

    @ApiModelProperty(value = "公出天数",example = "1")
    Float outSideBusinessDay;

    @ApiModelProperty(value = "出差",example = "1")
    Integer isOutWorkDay;

    @ApiModelProperty(value = "出差时长",example = "1")
    Float outWorkDay;

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