package com.hnshituo.core.auth.vo;

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

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

@Table(name="CORE_AUTH_USERS_GROUP", namespace=UsersGroupMapper.class)
public class UsersGroup extends BaseVO implements Serializable {

	private static final long serialVersionUID = 22673269970780796L;
	
	/**
	 * 组成员信息表
	 */
	@Id
	private String id;
	
	@Column("GROUP_ID")
	private String groupId;
	
	@Column("GROUP_NAME")
	private String groupName;
	
	@Column("USER_ID")
	private String userId;
	
	@Column("USER_NAEM")
	private String userName;
	
	@Column("CREATE_MAN")
	private String creatMan;
	
	@Column("CREATE_TIME")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date creatTime;
	
	@Column("UPDATE_MAN")
	private String updateMan;
	
	@Column("UPDATE_TIME")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	private List<UsersGroup> userGroups;
	public String getId() {
		return id;
	}

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

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCreatMan() {
		return creatMan;
	}

	public void setCreatMan(String creatMan) {
		this.creatMan = creatMan;
	}

	public Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	public String getUpdateMan() {
		return updateMan;
	}

	public void setUpdateMan(String updateMan) {
		this.updateMan = updateMan;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public String toString(){
		return "UsersGroup [id=" + id + ", groupId=" + groupId + ", groupName="
				+ groupName + ", userId=" + userId + ", userName=" + userName + ", creatMan="
				+ creatMan + ", creatTime=" + creatTime + "]";
		
	}

	public void setUserGroups(List<UsersGroup> userGroups) {
		this.userGroups = userGroups;
	}

	public List<UsersGroup> getUserGroups() {
		return userGroups;
	}
	
	//成员所属部门ID
	private String deptId;
	//成员所属部门名称
	private String deptName;
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

}
