package com.njcn.pojo.user;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.njcn.pojo.configuration.GDInformation;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 部门权限表，目前部门只考虑跟供电公司级别的绑定。
 * */
@JsonIgnoreProperties(value = {"handler"})
@Table(name="PQS_DEPTSGD")
public class DeptsGd {
	@Id
	@Column(name="Depts_Index")
	private String deptsIndex;
	
	@Column(name="GD_Index")
	private Long GDIndex;
	
	
	@Transient
	public GDInformation gd;
	public GDInformation getGd() {
		return gd;
	}

	public void setGd(GDInformation gd) {
		this.gd = gd;
	}

	@Transient
	public List<GDInformation> gdi;
	public List<GDInformation> getGdi() {
		return gdi;
	}

	public void setGdi(List<GDInformation> gdi) {
		this.gdi = gdi;
	}

	public String getDeptsIndex() {
		return deptsIndex;
	}

	public void setDeptsIndex(String deptsIndex) {
		this.deptsIndex = deptsIndex;
	}

	public Long getGDIndex() {
		return GDIndex;
	}

	public void setGDIndex(Long gDIndex) {
		GDIndex = gDIndex;
	}

	@Override
	public String toString() {
		return "DeptsGd [deptsIndex=" + deptsIndex + ", GDIndex=" + GDIndex + "]";
	}

	
}
