Преглед на файлове

PCB规格书上传申请model

wangyc преди 7 години
родител
ревизия
555e7d9d22
променени са 1 файла, в които са добавени 328 реда и са изтрити 0 реда
  1. 328 0
      src/main/java/com/uas/platform/b2c/prod/commodity/model/ProductAttachSubmit.java

+ 328 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/model/ProductAttachSubmit.java

@@ -0,0 +1,328 @@
+package com.uas.platform.b2c.prod.commodity.model;
+
+import com.uas.platform.b2c.b2b.model.EnterpriseBaseInfo;
+import com.uas.platform.b2c.common.account.model.UserBaseInfo;
+import com.uas.platform.b2c.core.constant.Status;
+import java.io.Serializable;
+import java.util.Date;
+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;
+
+/**
+ * 物料规格书申请
+ * Created by wangyc on 2018/6/26.
+ *
+ * @version 2018/6/26 17:19 wangyc
+ */
+@Entity
+@Table(name = "product$attach_submit")
+public class ProductAttachSubmit implements Serializable{
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.AUTO)
+    @Column(name = "as_id")
+    private Long id;
+
+    /**
+     * 物料id
+     */
+    @Column(name = "as_productid")
+    private Long productId;
+
+    /**
+     * 上传的规格书
+     */
+    @Column(name = "as_uploadattach", nullable = false)
+    private String uploadAttach = "";
+
+    /**
+     * 物料
+     */
+    @Transient
+    private Product product;
+
+    /**
+     * 创建时间
+     */
+    @Column(name = "as_createtime")
+    private Date createTime;
+
+    /**
+     * 提交人uu
+     */
+    @Column(name = "as_submituu")
+    private Long submitUu;
+
+    /**
+     * 提交人企业
+     */
+    @Column(name = "as_submitenuu")
+    private Long submitEnuu;
+
+    /**
+     * 提交人信息
+     */
+    @Transient
+    private UserBaseInfo submiter;
+
+    /**
+     * 提交企业
+     */
+    @Transient
+    private EnterpriseBaseInfo submitEn;
+
+    /**
+     * 匹配标准器件的uuid
+     */
+    @Column(name = "as_uuid", nullable = false)
+    private String uuid = "";
+
+    /**
+     * 审核状态
+     * 待审核 UNAUDIT 311
+     * 审核通过 AUDITED 102
+     * 未通过 NOTALLOW 103
+     */
+    @Column(name = "as_status", nullable = false)
+    private Integer status = Status.UNAUDIT.value();
+
+    /**
+     * 审核时间
+     */
+    @Column(name = "as_audittime")
+    private Date auditTime;
+
+    /**
+     * 审核人uu
+     */
+    @Column(name = "as_audituu")
+    private Long auditUu;
+
+    /**
+     * 审核人企业uu
+     */
+    @Column(name = "as_auditenuu")
+    private Long auditEnuu;
+
+    @Transient
+    private UserBaseInfo auditer;
+
+    @Transient
+    private EnterpriseBaseInfo auditEn;
+
+    /**
+     * 商城类目id
+     */
+    @Column(name = "as_kindId")
+    private Long kindId;
+
+    /**
+     * 商城品牌id
+     */
+    @Column(name = "as_brandId")
+    private Long brandId;
+
+    /**
+     * 商城规格
+     */
+    @Column(name = "as_spec", length = 4000)
+    private String spec;
+
+    /**
+     * 已匹配标准型号的规格书
+     */
+    @Column(name = "as_mallattach")
+    private String mallAttach;
+
+    /**
+     * 原因
+     */
+    @Column(name = "as_reason")
+    private String reason;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getProductId() {
+        return productId;
+    }
+
+    public void setProductId(Long productId) {
+        this.productId = productId;
+    }
+
+    public String getUploadAttach() {
+        return uploadAttach;
+    }
+
+    public void setUploadAttach(String uploadAttach) {
+        this.uploadAttach = uploadAttach;
+    }
+
+    public Product getProduct() {
+        return product;
+    }
+
+    public void setProduct(Product product) {
+        this.product = product;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Long getSubmitUu() {
+        return submitUu;
+    }
+
+    public void setSubmitUu(Long submitUu) {
+        this.submitUu = submitUu;
+    }
+
+    public Long getSubmitEnuu() {
+        return submitEnuu;
+    }
+
+    public void setSubmitEnuu(Long submitEnuu) {
+        this.submitEnuu = submitEnuu;
+    }
+
+    public UserBaseInfo getSubmiter() {
+        return submiter;
+    }
+
+    public void setSubmiter(UserBaseInfo submiter) {
+        this.submiter = submiter;
+    }
+
+    public EnterpriseBaseInfo getSubmitEn() {
+        return submitEn;
+    }
+
+    public void setSubmitEn(EnterpriseBaseInfo submitEn) {
+        this.submitEn = submitEn;
+    }
+
+    public String getUuid() {
+        return uuid;
+    }
+
+    public void setUuid(String uuid) {
+        this.uuid = uuid;
+    }
+
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    public Date getAuditTime() {
+        return auditTime;
+    }
+
+    public void setAuditTime(Date auditTime) {
+        this.auditTime = auditTime;
+    }
+
+    public Long getAuditUu() {
+        return auditUu;
+    }
+
+    public void setAuditUu(Long auditUu) {
+        this.auditUu = auditUu;
+    }
+
+    public Long getAuditEnuu() {
+        return auditEnuu;
+    }
+
+    public void setAuditEnuu(Long auditEnuu) {
+        this.auditEnuu = auditEnuu;
+    }
+
+    public UserBaseInfo getAuditer() {
+        return auditer;
+    }
+
+    public void setAuditer(UserBaseInfo auditer) {
+        this.auditer = auditer;
+    }
+
+    public EnterpriseBaseInfo getAuditEn() {
+        return auditEn;
+    }
+
+    public void setAuditEn(EnterpriseBaseInfo auditEn) {
+        this.auditEn = auditEn;
+    }
+
+    public Long getKindId() {
+        return kindId;
+    }
+
+    public void setKindId(Long kindId) {
+        this.kindId = kindId;
+    }
+
+    public Long getBrandId() {
+        return brandId;
+    }
+
+    public void setBrandId(Long brandId) {
+        this.brandId = brandId;
+    }
+
+    public String getSpec() {
+        return spec;
+    }
+
+    public void setSpec(String spec) {
+        this.spec = spec;
+    }
+
+    public String getMallAttach() {
+        return mallAttach;
+    }
+
+    public void setMallAttach(String mallAttach) {
+        this.mallAttach = mallAttach;
+    }
+
+    public String getReason() {
+        return reason;
+    }
+
+    public void setReason(String reason) {
+        this.reason = reason;
+    }
+
+    @Override
+    public String toString() {
+        return "ProductAttachSubmit{" + "id=" + id + ", productId=" + productId
+            + ", uploadAttach='" + uploadAttach + '\'' + ", product=" + product + ", createTime=" + createTime +
+            ", submitUu=" + submitUu + ", submitEnuu=" + submitEnuu + ", submiter=" + submiter
+            + ", submitEn=" + submitEn + ", uuid='" + uuid + '\'' + ", status=" + status + ", auditTime=" + auditTime +
+            ", auditUu=" + auditUu + ", auditEnuu=" + auditEnuu + ", auditer=" + auditer + ", auditEn=" + auditEn +
+            ", kindId=" + kindId + ", brandId=" + brandId + ", spec='" + spec + '\'' +
+            ", mallAttach='" + mallAttach + '\'' + ", reason='" + reason + '\'' + '}';
+    }
+}