From ed839069a1df066d9559263129e999de7e9c2ccc Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期三, 19 三月 2025 13:40:58 +0800
Subject: [PATCH] 修改产品结构树,修改指派程序至设备

---
 lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/entity/ProductMix.java |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/entity/ProductMix.java b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/entity/ProductMix.java
index d49a1f1..5cd7a3d 100644
--- a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/entity/ProductMix.java
+++ b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/entity/ProductMix.java
@@ -2,6 +2,7 @@
 
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
 import lombok.Data;
@@ -10,6 +11,7 @@
 
 import java.io.Serializable;
 import java.util.ArrayList;
+import java.util.Date;
 import java.util.List;
 
 @Getter
@@ -34,6 +36,9 @@
     // 绫诲瀷
     @TableField(value = "tree_type")
     private Integer type;
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @TableField(value = "create_time")
+    private Date createTime;
 
     //灞曠ず鍚嶇О
     private transient String label;
@@ -41,7 +46,7 @@
 
     private transient List<ProductMix> children = new ArrayList<>();
 
-    public ProductMix(Long id, Long parentId, String name, String code, Integer type) {
+    public ProductMix(Long id, Long parentId, String name, String code, Integer type, Date createTime) {
         this.id = id;
         this.parentId = parentId;
         this.name = name;
@@ -49,10 +54,29 @@
         this.type = type;
         this.children = new ArrayList<>();
         this.label="["+code+"]"+name;
+        this.createTime = createTime;
     }
 
     public void addChild(ProductMix child) {
         this.children.add(child);
     }
 
+
+    public ProductMix(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    @Override
+    public String toString() {
+        return "ProductMix{createTime=" + createTime + '}';
+    }
+
 }

--
Gitblit v1.9.3