From 72eaa4ad5daf6184a5fa989df09caeb607eac80e Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期六, 02 十一月 2024 12:47:29 +0800 Subject: [PATCH] 禁止一键排版 --- modules/mainPart/src/main/java/com/zt/life/modules/mainPart/basicInfo/model/XhProductModel.java | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 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 2f9e5d9..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,14 +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