From cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期三, 25 六月 2025 11:18:22 +0800 Subject: [PATCH] 验收报告修改 --- src/main/java/com/whyc/pojo/ProductBom.java | 243 +++++++++++++++++++++++++++++++++++++----------- 1 files changed, 187 insertions(+), 56 deletions(-) diff --git a/src/main/java/com/whyc/pojo/ProductBom.java b/src/main/java/com/whyc/pojo/ProductBom.java index eb523f4..344fcc9 100644 --- a/src/main/java/com/whyc/pojo/ProductBom.java +++ b/src/main/java/com/whyc/pojo/ProductBom.java @@ -1,54 +1,118 @@ 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.io.Serializable; import java.util.Date; +import java.util.List; /** * 浜у搧bom琛� */ -@TableName(schema = "db_doc",value = "tb_product_bom") +@TableName(value = "tb_product_bom") @Alias("ProductBom") -public class ProductBom { +public class ProductBom implements Serializable { + private static final long serialVersionUID = 1L; 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 subVersion; + @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 Date updateDate; - /**鐗堟湰*/ + + @ApiModelProperty("浜у搧鐗堟湰") + @TableField(exist = false) 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) + private Integer dwgExist; + + //鏇夸唬鏂欑殑鏂欏彿鎷兼帴,鏍煎紡涓� + // 0341000294, + //0341000294,0341000294, + @TableField(exist = false) + private String relatedMaterialCodes; + + @TableField(exist = false) + @ApiModelProperty(value = "鍏宠仈鐨勭墿鏂欓泦鍚�") + private List<Material> materials; + + @TableField(exist = false) + @ApiModelProperty(value = "姣嶆枡缂栧彿") + private String parentCode; + + @TableField(exist = false) + @ApiModelProperty(value = "瀹氬埗鍗曞彿") + private String customCode; + + @TableField(exist = false) + @ApiModelProperty(value = "鏄惁鏄痓om鐨勭鐞嗭紝excel瀵煎嚭鏈夌敤锛�0锛氬師浠讹紝1锛氬叧鑱斾欢") + private Integer connFlag; public Integer getId() { return id; @@ -58,28 +122,20 @@ this.id = id; } - public String getParentCode() { - return parentCode; + public Integer getProductId() { + return productId; } - public void setParentCode(String parentCode) { - this.parentCode = parentCode; + public void setProductId(Integer productId) { + this.productId = productId; } - public String getParentName() { - return parentName; + public String getType() { + return type; } - 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() { @@ -186,13 +242,6 @@ this.fileUrl = fileUrl; } - public String getUpUser() { - return upUser; - } - - public void setUpUser(String upUser) { - this.upUser = upUser; - } public Date getCreateDate() { return createDate; @@ -202,14 +251,6 @@ this.createDate = createDate; } - public Date getUpdateDate() { - return updateDate; - } - - public void setUpdateDate(Date updateDate) { - this.updateDate = updateDate; - } - public Integer getVersion() { return version; } @@ -217,4 +258,94 @@ public void setVersion(Integer version) { this.version = version; } + + public String getDwgUrl() { + return dwgUrl; + } + + public void setDwgUrl(String dwgUrl) { + this.dwgUrl = dwgUrl; + } + + + public List<Material> getMaterials() { + return materials; + } + + public void setMaterials(List<Material> materials) { + this.materials = materials; + } + + 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 getDwgExist() { + return dwgExist; + } + + public void setDwgExist(Integer dwgExist) { + this.dwgExist = dwgExist; + } + + public void setMaterialId(Integer materialId) { + this.materialId = materialId; + } + + public Integer getSubVersion() { + return subVersion; + } + + public void setSubVersion(Integer subVersion) { + this.subVersion = subVersion; + } + + public Integer getMaterialId() { + return materialId; + } + + public Integer getConnFlag() { + return connFlag; + } + + public void setConnFlag(Integer connFlag) { + this.connFlag = connFlag; + } + + public Material getMaterialObj() { + return materialObj; + } + + public void setMaterialObj(Material materialObj) { + this.materialObj = materialObj; + } + + public String getProducerSpecification() { + return producerSpecification; + } + + public void setProducerSpecification(String producerSpecification) { + this.producerSpecification = producerSpecification; + } + + public String getRelatedMaterialCodes() { + return relatedMaterialCodes; + } + + public void setRelatedMaterialCodes(String relatedMaterialCodes) { + this.relatedMaterialCodes = relatedMaterialCodes; + } + } -- Gitblit v1.9.1