whyclxw
2 天以前 cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7
src/main/java/com/whyc/pojo/ProductBomHistory.java
@@ -1,56 +1,115 @@
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;
import java.util.List;
/**
 * 产品bom表历史记录
 */
@TableName(schema = "db_doc",value = "tb_product_bom_history")
@TableName(value = "tb_product_bom_history")
@Alias("ProductBomHistory")
public class ProductBomHistory {
    private Integer   id;
    /**母料编号*/
    private String     parentCode;
    /**母料名称*/
    private String     parentName;
    /**母料型号*/
    private String     parentModel;
    /**    类别*/
    @ApiModelProperty("产品id")
    private Integer productId;
    @ApiModelProperty("物料id")
    private Integer materialId;
    @ApiModelProperty("bom起始版本")
    private Integer subSVersion;
    @ApiModelProperty("bom终止版本")
    private Integer subEVersion;
    @ApiModelProperty("物料实体类")
    @TableField(exist = false)
    private Material materialObj;
    @ApiModelProperty("结构件类型")
    @TableField(exist = false)
    private String type;
    @ApiModelProperty("类别")
    private String     category;
    /**子件编码*/
    @ApiModelProperty("子件编码")
    @TableField(exist = false)
    private String     subCode;
    /**子件名称*/
    @ApiModelProperty("子件名称")
    @TableField(exist = false)
    private String     subName;
    /**子件型号*/
    @ApiModelProperty("子件型号")
    @TableField(exist = false)
    private String     subModel;
    /**单位*/
    @ApiModelProperty("单位")
    @TableField(exist = false)
    private String     unit;
    /**子件数量*/
    @ApiModelProperty("子件数量")
    private Integer   quantity;
    /**生产商*/
    @ApiModelProperty("生产商")
    private String     producer;
    /**封装类型/材质*/
    @ApiModelProperty("厂家规格")
    private String producerSpecification;
    @ApiModelProperty("封装类型/材质")
    private String     material;
    /**元件编号/料厚*/
    @ApiModelProperty("元件编号/料厚")
    private String     thickness;
    /**表面处理/物料详情*/
    @ApiModelProperty("表面处理/物料详情")
    private String     surfaceDetail;
    /**    备注*/
    @ApiModelProperty("备注")
    private String     notes;
    private String     pictureUrl;
    private String     fileUrl;
    /**上传人*/
    private String     upUser;
    @TableField(exist = false)
    private Date    createDate;
    private Integer updateType;
    /**起始版本号*/
    private Integer   sVersion;
    /**终止版本号*/
    private Integer   eVersion;
    @TableField(exist = false)
    @ApiModelProperty("版本号")
    private Integer   version;
    @ApiModelProperty("工程图纸url")
    @TableField(exist = false)
    private String dwgUrl;
    @TableField(exist = false)
    private String     pictureUrl;
    @TableField(exist = false)
    private String     fileUrl;
    @TableField(exist = false)
    @ApiModelProperty(value = "关联的物料集合")
    private List<Material> materials;
    @TableField(exist = false)
    @ApiModelProperty(value = "关联的物料集合")
    private List<Software> softwares;
    @TableField(exist = false)
    @ApiModelProperty(value = "母料编号")
    private String parentCode;
    @TableField(exist = false)
    @ApiModelProperty(value = "定制单号")
    private String customCode;
    @TableField(exist = false)
    @ApiModelProperty(value = "是否是bom的管理,excel导出有用,0:原件,1:关联件")
    private Integer connFlag;
    public Integer getId() {
        return id;
@@ -60,28 +119,12 @@
        this.id = id;
    }
    public String getParentCode() {
        return parentCode;
    public String getType() {
        return type;
    }
    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }
    public String getParentName() {
        return parentName;
    }
    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
    public String getParentModel() {
        return parentModel;
    }
    public void setParentModel(String parentModel) {
        this.parentModel = parentModel;
    public void setType(String type) {
        this.type = type;
    }
    public String getCategory() {
@@ -188,14 +231,6 @@
        this.fileUrl = fileUrl;
    }
    public String getUpUser() {
        return upUser;
    }
    public void setUpUser(String upUser) {
        this.upUser = upUser;
    }
    public Date getCreateDate() {
        return createDate;
    }
@@ -204,27 +239,107 @@
        this.createDate = createDate;
    }
    public Integer getUpdateType() {
        return updateType;
    public String getDwgUrl() {
        return dwgUrl;
    }
    public void setUpdateType(Integer updateType) {
        this.updateType = updateType;
    public void setDwgUrl(String dwgUrl) {
        this.dwgUrl = dwgUrl;
    }
    public Integer getsVersion() {
        return sVersion;
    public Integer getProductId() {
        return productId;
    }
    public void setsVersion(Integer sVersion) {
        this.sVersion = sVersion;
    public void setProductId(Integer productId) {
        this.productId = productId;
    }
    public Integer geteVersion() {
        return eVersion;
    public Integer getVersion() {
        return version;
    }
    public void seteVersion(Integer eVersion) {
        this.eVersion = eVersion;
    public void setVersion(Integer version) {
        this.version = version;
    }
    public List<Material> getMaterials() {
        return materials;
    }
    public void setMaterials(List<Material> materials) {
        this.materials = materials;
    }
    public List<Software> getSoftwares() {
        return softwares;
    }
    public void setSoftwares(List<Software> softwares) {
        this.softwares = softwares;
    }
    public String getParentCode() {
        return parentCode;
    }
    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }
    public String getCustomCode() {
        return customCode;
    }
    public void setCustomCode(String customCode) {
        this.customCode = customCode;
    }
    public Integer getMaterialId() {
        return materialId;
    }
    public void setMaterialId(Integer materialId) {
        this.materialId = materialId;
    }
    public Integer getSubSVersion() {
        return subSVersion;
    }
    public void setSubSVersion(Integer subSVersion) {
        this.subSVersion = subSVersion;
    }
    public Integer getSubEVersion() {
        return subEVersion;
    }
    public void setSubEVersion(Integer subEVersion) {
        this.subEVersion = subEVersion;
    }
    public Material getMaterialObj() {
        return materialObj;
    }
    public void setMaterialObj(Material materialObj) {
        this.materialObj = materialObj;
    }
    public Integer getConnFlag() {
        return connFlag;
    }
    public void setConnFlag(Integer connFlag) {
        this.connFlag = connFlag;
    }
    public String getProducerSpecification() {
        return producerSpecification;
    }
    public void setProducerSpecification(String producerSpecification) {
        this.producerSpecification = producerSpecification;
    }
}