whyclxw
3 天以前 cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7
src/main/java/com/whyc/pojo/MaterialProductApproving.java
@@ -5,23 +5,29 @@
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
@TableName(schema = "db_doc",value = "tb_material_product_approving")
@TableName(value = "tb_material_product_approving")
@Alias("MaterialProductApproving")
public class MaterialProductApproving {
    private Integer id;
    @ApiModelProperty("物料id")
    @ApiModelProperty("临时替代物料id")
    private Integer materialId;
    @ApiModelProperty("产品id")
    private String productId;
    @ApiModelProperty("子件编码")
    private String subCode;
    //@ApiModelProperty("产品id")
    //private Integer productId;
    @ApiModelProperty("母料编码")
    private String parentCode;
    @ApiModelProperty("定制表单号")
    private String customCode;
    @ApiModelProperty("子件物料id")
    private int subMaterialId;
    @ApiModelProperty("子件数量")
    private Integer quantity;
    @ApiModelProperty("关联类型:-1(移除),1(关联)")
    private Integer linkType;
    @ApiModelProperty("主表id")
    private Integer mainId;
    @ApiModelProperty("版本号")
    private Integer version;
    @TableField(exist = false)
    private Material material;
@@ -42,20 +48,28 @@
        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 getSubCode() {
        return subCode;
    public String getCustomCode() {
        return customCode;
    }
    public void setSubCode(String subCode) {
        this.subCode = subCode;
    public void setCustomCode(String customCode) {
        this.customCode = customCode;
    }
    public int getSubMaterialId() {
        return subMaterialId;
    }
    public void setSubMaterialId(int subMaterialId) {
        this.subMaterialId = subMaterialId;
    }
    public Integer getMainId() {
@@ -89,4 +103,12 @@
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
    public Integer getVersion() {
        return version;
    }
    public void setVersion(Integer version) {
        this.version = version;
    }
}