package com.bonus.system.att.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 考勤数据来源实体类
 * @author zys
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AttSourceDataBean {

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 用户身份证
     */
    private String idNumber;

    /**
     * 组织编号
     */
    private String orgId;

    /**
     * 组织名称
     */
    private String orgName;

    /**
     * 考勤日期
     */
    private String attCurrentDay;

    /**
     * 考勤时间
     */
    private String attCurrentTime;

    /**
     * 考勤类型1上班2下班
     */
    private String attType;

    /**
     * 打卡地址
     */
    private String attAddress;
    /**
     * 打卡省份
     */
    private String province;

    /**
     * 打卡经度
     */
    private Double attLon;

    /**
     * 打卡维度
     */
    private Double attLat;

    /**
     * 数据来源1黔2考勤机
     */
    private String dataSource;

    /**
     * 用户编号
     */
    private Long userId;

    /**
     * 考勤组编号
     */
    private long groupId;

    /**
     * 是否计算出入异常
     */
    private Integer isCountAbnormal;

    /**
     * 异常打卡时间
     */
    private String abnormalAttTime;

    /**
     * 异常打卡地址
     */
    private String abnormalAttAddress;

    /**
     * 考勤状态
     */
    private Integer attStatus;

    /**
     * 异常备注
     */
    private String errorRemake;

    /**
     * 考勤组类型
     */
    private String groupType;

    /**
     * 0 默认 1 外勤 2 正常
     */
    private String isOutsideAtt;

    private String remark;

    private Integer proId;

    public AttSourceDataBean(Long userId, String orgId, String attCurrentDay, String attType) {
        this.userId = userId;
        this.orgId = orgId;
        this.attCurrentDay = attCurrentDay;
        this.attType = attType;
    }

    public AttSourceDataBean(String orgId, String attCurrentDay, String attCurrentTime,
                             String attType, Long userId, String groupType, long groupId) {
        this.orgId = orgId;
        this.attCurrentDay = attCurrentDay;
        this.attCurrentTime = attCurrentTime;
        this.attType = attType;
        this.userId = userId;
        this.groupType = groupType;
        this.groupId = groupId;
    }
}
