package com.hnshituo.core.auth.vo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hnshituo.basic.vo.BaseVO;
import com.hnshituo.core.auth.mapper.UserLoginMapper;
import com.hnshituo.orm.annotation.Column;
import com.hnshituo.orm.annotation.Id;
import com.hnshituo.orm.annotation.Table;

@Table(name="CORE_AUTH_USER_LOGIN", namespace=UserLoginMapper.class)
public class UserLogin extends BaseVO implements Serializable {
	/**
	 * 用户登录时间表
	 */
	private static final long serialVersionUID = 5866647375020618956L;

	@Id
	//主键
	private String seq;
	
	@Column
	//账号
	private String login_name;
	
	@Column
	//用户名
	private String username;
	
	@Column
	//部门编号
	private String dept_id;
	
	@Column
	//部门名称
	private String dept_name;
	
	@Column
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	//登陆时间
	private Date login_time;
	
	//检验时间
	private String check_time;
	
	//每天的登录次数
	private int day_count;
	
	//异常次数2天未登录
	private int count;
	
	//时间段内未登录天数
	private int seven_count;
	
	//最长未登录时长(天)
	private int long_count;
	
	//是否登录过系统
	private boolean login_in=true;
	
	public int getSeven_count() {
		return seven_count;
	}

	public void setSeven_count(int sevenCount) {
		seven_count = sevenCount;
	}

	public int getLong_count() {
		return long_count;
	}

	public void setLong_count(int longCount) {
		long_count = longCount;
	}

	public String getSeq() {
		return seq;
	}

	public void setSeq(String seq) {
		this.seq = seq;
	}

	public String getLogin_name() {
		return login_name;
	}

	public void setLogin_name(String loginName) {
		login_name = loginName;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getDept_id() {
		return dept_id;
	}

	public void setDept_id(String deptId) {
		dept_id = deptId;
	}

	public String getDept_name() {
		return dept_name;
	}

	public void setDept_name(String deptName) {
		dept_name = deptName;
	}

	public Date getLogin_time() {
		return login_time;
	}

	public void setLogin_time(Date loginTime) {
		login_time = loginTime;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getCount() {
		return count;
	}

	public void setCheck_time(String check_time) {
		this.check_time = check_time;
	}

	public String getCheck_time() {
		return check_time;
	}

	public void setDay_count(int day_count) {
		this.day_count = day_count;
	}

	public int getDay_count() {
		return day_count;
	}

	public void setLogin_in(boolean login_in) {
		this.login_in = login_in;
	}

	public boolean isLogin_in() {
		return login_in;
	}
	
}
