package com.uas.platform.b2b.mobile.model;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 打卡记录
 * 
 * @author hejq
 * @time 创建时间：2017年3月7日
 */
@Entity
@Table(name = "mobile$signcard")
public class SignCard implements Serializable, Comparable<SignCard> {

	/**
	 * 序号
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "sig_id")
	private Long id;
	
	/**
	 * 员工编号
	 */
	@Column(name = "sig_emcode")
	private Long emcode;
	
	/**
	 * 姓名
	 */
	@Column(name = "sig_emname")
	private String cl_emname;

	/**
	 * 打卡地址
	 */
	@Column(name = "sig_address")
	private String cl_address;

	/**
	 * 电话
	 */
	@Column(name = "sig_phone")
	private String cl_phone;

	/**
	 * 考勤地点
	 */
	@Column(name = "sig_location")
	private String cl_location;
	
	/**
	 * 距离
	 */
	@Column(name = "sig_distance")
	private Double cl_distance;
	
	/**
	 * 打卡时间
	 */
	@Column(name = "sig_date")
	private Date cl_date;

	/**
	 * 企业uu
	 */
	@Column(name = "sig_enuu")
	private Long enuu;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getEmcode() {
		return emcode;
	}

	public void setEmcode(Long emcode) {
		this.emcode = emcode;
	}

	public String getCl_emname() {
		return cl_emname;
	}

	public void setCl_emname(String cl_emname) {
		this.cl_emname = cl_emname;
	}

	public String getCl_address() {
		return cl_address;
	}

	public void setCl_address(String cl_address) {
		this.cl_address = cl_address;
	}

	public String getCl_phone() {
		return cl_phone;
	}

	public void setCl_phone(String cl_phone) {
		this.cl_phone = cl_phone;
	}

	public String getCl_location() {
		return cl_location;
	}

	public void setCl_location(String cl_location) {
		this.cl_location = cl_location;
	}

	public Double getCl_distance() {
		return cl_distance;
	}

	public void setCl_distance(Double cl_distance) {
		this.cl_distance = cl_distance;
	}

	public Date getCl_date() {
		return cl_date;
	}

	public void setCl_date(Date cl_date) {
		this.cl_date = cl_date;
	}

	public Long getEnuu() {
		return enuu;
	}

	public void setEnuu(Long enuu) {
		this.enuu = enuu;
	}

	@Override
	public int compareTo(SignCard o) {
		return this.id.compareTo(o.id);
	}

}
