From bc263d8bed5d1405f275bb8638a9bec9eaf06585 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期一, 31 三月 2025 09:42:00 +0800 Subject: [PATCH] 添加审签逻辑,移动flow通用代码,添加根据角色查询用户,新增时间工具类,修改指派设备bug --- lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/entity/ProductMix.java | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 43 insertions(+), 8 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 d205a13..81e49a1 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,46 +2,81 @@ 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; import lombok.Getter; import lombok.NoArgsConstructor; +import java.io.Serializable; import java.util.ArrayList; +import java.util.Date; import java.util.List; @Getter @Data @NoArgsConstructor @TableName(value = "nc_product_mix") -public class ProductMix { +public class ProductMix implements Serializable { + private static final long serialVersionUID = 1529244980533421687L; // id - private long id; + @JsonSerialize(using = ToStringSerializer.class) + private Long id; // 鐖剁骇 id + @JsonSerialize(using = ToStringSerializer.class) @TableField(value = "parent_id") - private long parentId; + private Long parentId; // 鍚嶇О - @TableField(value = "name") + @TableField(value = "tree_name") private String name; // code - @TableField(value = "code") + @TableField(value = "tree_code") private String code; // 绫诲瀷 - @TableField(value = "type") - private String type; + @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; + private transient List<ProductMix> children = new ArrayList<>(); - public ProductMix(long id, long parentId, String name, String code, String type) { + public ProductMix(Long id, Long parentId, String name, String code, Integer type, Date createTime) { this.id = id; this.parentId = parentId; this.name = name; this.code = code; 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