/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.attence.record.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-04-12
 */
@Data
@TableName("attence_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Record对象", description = "Record对象")
public class Record extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 所有者id
	 */
	@ApiModelProperty(value = "所有者id")
	private Long ownerId;
	/**
	 * 打卡人id
	 */
	@ApiModelProperty(value = "打卡人id")
	private Long personId;
	/**
	 * 打卡人类型 ： 0-企业员工
	 */
	@ApiModelProperty(value = "打卡人类型 ： 0-企业员工")
	private Integer personType;

	/**
	 * 打卡人员名称
	 */
	private String personName;
	/**
	 * 打卡设备id
	 */
	@ApiModelProperty(value = "打卡设备id")
	private String deviceId;
	/**
	 * 打卡的MAC地址/bssid
	 */
	@ApiModelProperty(value = "	打卡的MAC地址/bssid")
	private String wifiMac;
	/**
	 * 经度
	 */
	@ApiModelProperty(value = "经度")
	private String longitude;
	/**
	 * 纬度
	 */
	@ApiModelProperty(value = "纬度")
	private String latitude;
	/**
	 * 打卡地点名称
	 */
	@ApiModelProperty(value = "打卡地点名称")
	private String locationName;
	/**
	 * 打卡时间
	 */
	@ApiModelProperty(value = "打卡时间")
	private LocalDateTime checkinTime;
	/**
	 * 打卡时间
	 */
	@ApiModelProperty(value = "打卡时间")
	private LocalDate checkinDate;
	/**
	 * 打卡wifi名称
	 */
	@ApiModelProperty(value = "打卡wifi名称")
	private String wifeName;
	/**
	 * 打卡类型。目前有：0-上班打卡，1--下班打卡，2-外出打卡
	 */
	@ApiModelProperty(value = "打卡类型。目前有：0-上班打卡，1--下班打卡，2-外出打卡")
	private Integer checkinType;
	/**
	 * 打卡备注
	 */
	@ApiModelProperty(value = "打卡备注")
	private String note;
	/**
	 * 人脸照片
	 */
	@ApiModelProperty(value = "人脸照片")
	private String faceImg;
	/**
	 * 标准打卡时间，指此次打卡时间对应的标准上班时间或标准下班时间
	 */
	@ApiModelProperty(value = "标准打卡时间，指此次打卡时间对应的标准上班时间或标准下班时间")
	@JsonFormat(pattern = "HH:mm")
	private LocalTime schCheckinTime;
	/**
	 * 常类型，字符串，包括：时间异常，地点异常，未打卡，wifi异常，非常用设备。如果有多个异常，以分号间隔
	 */
	@ApiModelProperty(value = "异常类型，字符串，包括：时间异常，地点异常，未打卡，wifi异常，非常用设备。如果有多个异常，以分号间隔")
	private String exceptionMessage;
	/**
	 * 打卡规则id
	 */
	@ApiModelProperty(value = "打卡规则id")
	private Long ruleId;
	/**
	 * 打卡时间id
	 */
	@ApiModelProperty(value = "打卡时间id")
	private Long ruleTimeId;
	/**
	 * 打卡时间id
	 */
	@ApiModelProperty(value = "打卡时间规则类型")
	private Integer ruleTimeType;


}
