package com.palmnest.model.bill;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 账单服务分类信息实体类
 *
 * @author 金牙
 */
@Entity
@Table(name = "tb_generalbill_service")
public class GeneralbillService implements java.io.Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 8927441564672418290L;

	private Integer                 id;//主键ID
	private Integer                 billId;//账单ID
	private String                  serviceName;//服务名称
	private String                  serviceCode;//服务编码
	private BigDecimal              totalFee;//总额
	private BigDecimal              freeFee;//优惠金额
	private BigDecimal              payFee;//应缴金额
	private String                  creator;//创建者
	private Date                    createTime;//创建时间
	private String                  modifier;//修改者
	private Date                    modifyTime;//修改时间
	private List<GeneralBillOrders> list;

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

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

	@Column(name = "billId")
	public Integer getBillId() {
		return billId;
	}

	public void setBillId(Integer billId) {
		this.billId = billId;
	}

	@Column(name = "serviceName")
	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	@Column(name = "serviceCode")
	public String getServiceCode() {
		return serviceCode;
	}

	public void setServiceCode(String serviceCode) {
		this.serviceCode = serviceCode;
	}

	@Column(name = "totalFee")
	public BigDecimal getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(BigDecimal totalFee) {
		this.totalFee = totalFee;
	}

	@Column(name = "freeFee")
	public BigDecimal getFreeFee() {
		return freeFee;
	}

	public void setFreeFee(BigDecimal freeFee) {
		this.freeFee = freeFee;
	}

	@Column(name = "payFee")
	public BigDecimal getPayFee() {
		return payFee;
	}

	public void setPayFee(BigDecimal payFee) {
		this.payFee = payFee;
	}

	@Column(name = "creator")
	public String getCreator() {
		return creator;
	}

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

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

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

	@Column(name = "modifier")
	public String getModifier() {
		return modifier;
	}

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

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

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

	@Transient
	public List<GeneralBillOrders> getList() {
		return list;
	}

	public void setList(List<GeneralBillOrders> list) {
		this.list = list;
	}

}
