From 9fdb8bef649c8bba6ea97330d0e509fade235417 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期三, 23 十月 2024 10:39:24 +0800 Subject: [PATCH] 关于修改可靠性产品重复 --- modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/model/XhProductModel.java | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/model/XhProductModel.java b/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/model/XhProductModel.java index bd48c30..c97b23e 100644 --- a/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/model/XhProductModel.java +++ b/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/model/XhProductModel.java @@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.TableName; import com.zt.common.entity.BusiEntity; import com.zt.common.entity.TreeNode; +import com.zt.common.utils.UUIDUtil; +import com.zt.life.core.model.ZtProduct; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -22,7 +24,7 @@ @Data @EqualsAndHashCode(callSuper=false) @TableName("product_model") -public class XhProductModel extends BusiEntity implements TreeNode<XhProductModel> { +public class XhProductModel extends BusiEntity implements TreeNode<XhProductModel>,Cloneable { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "涓婄骇ID") @@ -43,16 +45,45 @@ @ApiModelProperty(value = "杩愯鍥剧墖") private Long operatImg; + @ApiModelProperty(value = "鍚岀被璁惧鍚�") + private String sameSbName; + @TableField(exist = false) @ApiModelProperty(value = "鍥剧墖鍚嶇О") private String operatImgName; private String equipType; + private String namePath; + @ApiModelProperty(value = "鎺掑簭") private Integer sort; + + @ApiModelProperty(value = "鍚岀被璁惧鏁伴噺") + @TableField(exist = false) + private Integer sameSbNum; + + + @ApiModelProperty(value = "鍚岀被璁惧搴忓彿") + @TableField(exist = false) + private Integer deviceNo; + + @ApiModelProperty(value = "鍚岀被璁惧搴忓彿") + @TableField(exist = false) + private String dataId; @ApiModelProperty(value = "瀛愯妭鐐�") @TableField(exist = false) private List<XhProductModel> children = new ArrayList<>(); + + @TableField(exist = false) + private Long paramId; + + @Override + public XhProductModel clone() throws CloneNotSupportedException { + XhProductModel product = (XhProductModel) super.clone(); + product.children = new ArrayList<>(); + product.setId(UUIDUtil.generateId()); + return product; + } } -- Gitblit v1.9.1