package com.sifang.modules.customer.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "crm_customer_entry_component")
public class CustomerEntryComponent {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    private String id;

    /**
     * 用户信息登记id
     */
    private String entryId;

    /**
     * 组件类型：1.逆变器 2.并网箱 3.组件
     */
    private String itemType;

    /**
     * 组件id
     */
    private String itemId;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 状态：0.正常 1.删除
     */
    private String status;

    /**
     * 物料规格
     */
    private String specs;

    /**
     * 状物料型号
     */
    private String materialModel;

    /**
     * 类型为组件有效，组件玻型:1.单玻 2.双玻
     */
    private String componentShape;

    /**
     * 类型为组件有效，电池参数: 1.N型 2.P型
     */
    private String batteryParam;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人userID
     */
    private String createBy;

    private String projectId;

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getId() {
        return id;
    }

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

    public String getEntryId() {
        return entryId;
    }

    public void setEntryId(String entryId) {
        this.entryId = entryId;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

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

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getMaterialModel() {
        return materialModel;
    }

    public void setMaterialModel(String materialModel) {
        this.materialModel = materialModel;
    }

    public String getComponentShape() {
        return componentShape;
    }

    public void setComponentShape(String componentShape) {
        this.componentShape = componentShape;
    }

    public String getBatteryParam() {
        return batteryParam;
    }

    public void setBatteryParam(String batteryParam) {
        this.batteryParam = batteryParam;
    }
}
