package jnpf.entity.attendance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.base.entity.SuperBaseEntity;
import jnpf.enums.attendance.ApplyTypeEnum;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;

/**
 * 考勤组-打卡记录表 
 * @author yanwenfu 
 * @create 2023-11-22 
 */

@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName ( value ="ftb_attendance_clock_in" )
public class FtbAttendanceClockIn extends SuperBaseEntity.SuperCUDBaseEntity<String> implements Serializable {

	private static final long serialVersionUID =  8654200286159016717L;

	/**
	 * 日期
	 */
   	@TableField(value = "F_Day")
	private Date day;

	/**
	 * 用户id
	 */
   	@TableField(value = "F_UserId")
	private String userId;

	/**
	 * 打卡时间
	 */
   	@TableField(value = "F_ClockInTime")
	private Date clockInTime;

	/**
	 * 审批编码
	 */
   	@TableField(value = "F_ApprovalCode")
	private String approvalCode;

	/**
	 * 审批类型
	 */
   	@TableField(exist = false)
	private ApplyTypeEnum applyType;

	/**
	 * 审批状态(0: 通过, 1: 审批中, 2: 拒绝)
	 */
   	@TableField(value = "F_ApprovalStatus")
	private Integer approvalStatus;

	/**
	 * 关联id(审批通过后删除关联记录)
	 */
   	@TableField(value = "F_RelationId")
	private String relationId;

	/**
	 * 地址
	 */
   	@TableField(value = "F_Address")
	private String address;

	/**
	 * 经度
	 */
   	@TableField(value = "F_Lng")
	private String lng;

	/**
	 * 维度
	 */
   	@TableField(value = "F_Lat")
	private String lat;

	/**
	 * 打卡种类(1: 普通打卡, 2: 外勤打卡)
	 */
   	@TableField(value = "F_ClockInKind")
	private Integer clockInKind;

	/**
	 * 设备类型(1: 地点打卡, 2: 考勤机, 3: wifi)
	 */
   	@TableField(value = "F_DeviceType")
	private Integer deviceType;

	/**
	 * 设备id(考勤机id/WiFi id)
	 */
   	@TableField(value = "F_DeviceId")
	private String deviceId;

	/**
	 * 设备名称
	 */
   	@TableField(value = "F_DeviceName")
	private String deviceName;

	/** 备注 */
	@TableField(value = "F_Remark")
	private String remark;
}
