package cn.com.countrygarden.bi.main.model.investment;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;


import java.util.Date;


/**
 * 区域总资金
 *
 * @author 汤婷
 * @email www.justintoforest@gamail.com
 * @url 
 * @date 2018-08-15
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "invest_region_total")
public class InvestRegionTotal implements Serializable{
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    /**
     * 投资名称
     */
 	@Column(name="investment_name")
    private String investmentName;
    /**
     * 区域名称
     */
 	@Column(name="region_name")
    private String regionName;
 	 /**
     * 区域id
     */
 	@Column(name="region_id")
    private String regionId;
    /**
     * 区域总募集金额
     */
 	@Column(name="region_amount_raised")
    private BigDecimal regionAmountRaised;
    /**
     * 独资金总募资金额
     */
 	@Column(name="single_amount_raised")
    private BigDecimal singleAmountRaised;
 	/**
 	 * 创建人姓名
 	 */
 	@Column(name="user_name")
 	private String userName;
 	
    /**
     * 创建人
     */
 	@Column(name="create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm",timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改人
     */
 	@Column(name="update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy/MM/dd HH:mm",timezone = "GMT+8")
    private Date updateTime;
    /**
     * 可用
     */
 	@Column(name="flag")
    private Integer flag;
 	

	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public InvestRegionTotal() {
          super();
    }
    public void setId(Integer id) {
          this.id = id;
    }
	
    public Integer getId() {
          return id;
    }
    public void setInvestmentName(String investmentName) {
          this.investmentName = investmentName;
    }
	
    public String getInvestmentName() {
          return investmentName;
    }
    public void setRegionId(String regionId) {
          this.regionId = regionId;
    }
	
    public String getRegionId() {
          return regionId;
    }
    
    

	public String getRegionName() {
		return regionName;
	}
	public void setRegionName(String regionName) {
		this.regionName = regionName;
	}
	public void setRegionAmountRaised(BigDecimal regionAmountRaised) {
          this.regionAmountRaised = regionAmountRaised;
    }
	
    public BigDecimal getRegionAmountRaised() {
    	if(regionAmountRaised==null) {
    		return regionAmountRaised=new BigDecimal(0);
    	}
          return regionAmountRaised;
    }
    public void setSingleAmountRaised(BigDecimal singleAmountRaised) {
          this.singleAmountRaised = singleAmountRaised;
    }
	
    public BigDecimal getSingleAmountRaised() {
    	if(singleAmountRaised==null) {
    		return singleAmountRaised=new BigDecimal(0);
    	}
          return singleAmountRaised;
    }
    public void setCreateBy(String createBy) {
          this.createBy = createBy;
    }
	
    public String getCreateBy() {
          return createBy;
    }
    public void setCreateTime(Date createTime) {
          this.createTime = createTime;
    }
	
    public Date getCreateTime() {
          return createTime;
    }
    public void setUpdateBy(String updateBy) {
          this.updateBy = updateBy;
    }
	
    public String getUpdateBy() {
          return updateBy;
    }
    public void setUpdateTime(Date updateTime) {
          this.updateTime = updateTime;
    }
	
    public Date getUpdateTime() {
          return updateTime;
    }
    public void setFlag(Integer flag) {
          this.flag = flag;
    }
	
    public Integer getFlag() {
          return flag;
    }
    
}
