whyclxw
2 天以前 cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7
src/main/java/com/whyc/pojo/MaterialProductHistory.java
@@ -1,28 +1,43 @@
package com.whyc.pojo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
import java.util.Date;
@TableName(schema = "db_doc",value = "tb_material_product_history")
@TableName(value = "tb_material_product_history")
@Alias("MaterialProductHistory")
public class MaterialProductHistory {
    private Integer id;
    @ApiModelProperty("物料id")
    @ApiModelProperty("子件物料id")
    private Integer subMaterialId;
    @ApiModelProperty("临时替代物料id")
    private Integer materialId;
    @ApiModelProperty("产品id")
    private String productId;
    //@ApiModelProperty("产品id")
    //private String productId;
    @ApiModelProperty("母料编码")
    private String parentCode;
    @ApiModelProperty("定制表单号")
    private String customCode;
    @ApiModelProperty("子件编码")
    private String subCode;
    @ApiModelProperty("子件数量")
    private Integer quantity;
    private Date createTime;
    @ApiModelProperty("关联类型:1(关联)")
    private Integer linkType;
    private Integer version;
    @ApiModelProperty("起始版本号")
    private Integer sVersion;
    @ApiModelProperty("终止版本号")
    private Integer eVersion;
    @ApiModelProperty("子件物料实体类")
    @TableField(exist = false)
    private Material subMaterial;
    @ApiModelProperty("子件物料实体类")
    @TableField(exist = false)
    private Material relatedSubMaterial;
    public Integer getId() {
        return id;
@@ -40,12 +55,20 @@
        this.materialId = materialId;
    }
    public String getProductId() {
        return productId;
    public String getParentCode() {
        return parentCode;
    }
    public void setProductId(String productId) {
        this.productId = productId;
    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }
    public String getCustomCode() {
        return customCode;
    }
    public void setCustomCode(String customCode) {
        this.customCode = customCode;
    }
    public String getSubCode() {
@@ -56,12 +79,20 @@
        this.subCode = subCode;
    }
    public Integer getVersion() {
        return version;
    public Integer getSVersion() {
        return sVersion;
    }
    public void setVersion(Integer version) {
        this.version = version;
    public void setSVersion(Integer sVersion) {
        this.sVersion = sVersion;
    }
    public Integer getEVersion() {
        return eVersion;
    }
    public void setEVersion(Integer eVersion) {
        this.eVersion = eVersion;
    }
    public Date getCreateTime() {
@@ -72,14 +103,6 @@
        this.createTime = createTime;
    }
    public Integer getLinkType() {
        return linkType;
    }
    public void setLinkType(Integer linkType) {
        this.linkType = linkType;
    }
    public Integer getQuantity() {
        return quantity;
    }
@@ -87,4 +110,28 @@
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
    public Integer getSubMaterialId() {
        return subMaterialId;
    }
    public void setSubMaterialId(Integer subMaterialId) {
        this.subMaterialId = subMaterialId;
    }
    public Material getSubMaterial() {
        return subMaterial;
    }
    public void setSubMaterial(Material subMaterial) {
        this.subMaterial = subMaterial;
    }
    public Material getRelatedSubMaterial() {
        return relatedSubMaterial;
    }
    public void setRelatedSubMaterial(Material relatedSubMaterial) {
        this.relatedSubMaterial = relatedSubMaterial;
    }
}