package com.palmnest.model.airconditioner;

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


/**
 * 空调加时
 *
 * @author qzy
 */

@Entity
@Table(name = "tb_airRule")
public class AirRule implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 5189120887987261980L;


	private Long       id;
	private Long       organizationId;//项目ID
	private String     ruleName;//'规则名称',
	private Integer    priceType;//单价类型(1-平米每小时、2-层（半层）每小时)
	private BigDecimal priceHouse;//单价(户
	private BigDecimal priceHour;//单价(小时
	
	
	private BigDecimal floorPriceHour;//每层多少钱/每小时
	private BigDecimal halfFloorPriceHour;//每半层多少钱/每小时
	
	private String     priceDisplay;//单价显示
	private Integer    dataType;///日期类型(0工作日1休息日2节假日
	private Date       startTime;        //开始时间
	private Date       endTime;        //结束时间
	private String     chargeTimeDisplay;//收费时段
	//private Integer applicationType;//应用模块(1预定会议室\2空调加时
	private Integer    applicationMeeting;//应用模块(预定会议室 0 1
	private Integer    applicationAirAddTime;//应用模块(空调加时 0 1
	private Integer    isEnabled;//状态(1启用\0禁用
	private String     remark;//备注
	private String     creator;            //创建者
	private Date       createTime;        //创建日期
	private String     modifier;        //修改者
	private Date       modifyTime;        //修改日期


	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

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

	public Long getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Long organizationId) {
		this.organizationId = organizationId;
	}

	public String getRuleName() {
		return ruleName;
	}

	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}

	@Column(name = "priceType")
	public Integer getPriceType() {
		return priceType;
	}

	public void setPriceType(Integer priceType) {
		this.priceType = priceType;
	}

	public String getPriceDisplay() {
		return priceDisplay;
	}

	public void setPriceDisplay(String priceDisplay) {
		this.priceDisplay = priceDisplay;
	}

	@Column(name = "dataType")
	public Integer getDataType() {
		return dataType;
	}

	public void setDataType(Integer dataType) {
		this.dataType = dataType;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	/*public Integer getApplicationType() {
		return applicationType;
	}
	public void setApplicationType(Integer applicationType) {
		this.applicationType = applicationType;
	}*/
	public Integer getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	@Column(name = "modify_time")
	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}


	@Column(name = "priceHouse")
	public BigDecimal getPriceHouse() {
		return priceHouse;
	}

	public void setPriceHouse(BigDecimal priceHouse) {
		this.priceHouse = priceHouse;
	}

	@Column(name = "priceHour")
	public BigDecimal getPriceHour() {
		return priceHour;
	}

	public void setPriceHour(BigDecimal priceHour) {
		this.priceHour = priceHour;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getChargeTimeDisplay() {
		return chargeTimeDisplay;
	}

	public void setChargeTimeDisplay(String chargeTimeDisplay) {
		this.chargeTimeDisplay = chargeTimeDisplay;
	}

	public Integer getApplicationMeeting() {
		return applicationMeeting;
	}

	public void setApplicationMeeting(Integer applicationMeeting) {
		this.applicationMeeting = applicationMeeting;
	}

	public Integer getApplicationAirAddTime() {
		return applicationAirAddTime;
	}

	public void setApplicationAirAddTime(Integer applicationAirAddTime) {
		this.applicationAirAddTime = applicationAirAddTime;
	}

	public BigDecimal getFloorPriceHour() {
		return floorPriceHour;
	}

	public void setFloorPriceHour(BigDecimal floorPriceHour) {
		this.floorPriceHour = floorPriceHour;
	}

	public BigDecimal getHalfFloorPriceHour() {
		return halfFloorPriceHour;
	}

	public void setHalfFloorPriceHour(BigDecimal halfFloorPriceHour) {
		this.halfFloorPriceHour = halfFloorPriceHour;
	}
}
