From 4788f8d86807296a3dce75b5dd428c0a8d5828db Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期五, 25 七月 2025 17:12:39 +0800
Subject: [PATCH] 分类字典设置上级是否存在子节点修改

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamMaintenanceStandard.java |  159 +++++++++++++++++++++++++++++++++-------------------
 1 files changed, 101 insertions(+), 58 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamMaintenanceStandard.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamMaintenanceStandard.java
index 61ba6ad..5dabd18 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamMaintenanceStandard.java
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamMaintenanceStandard.java
@@ -1,6 +1,7 @@
 package org.jeecg.modules.eam.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.fasterxml.jackson.annotation.JsonFormat;
@@ -10,89 +11,131 @@
 import lombok.EqualsAndHashCode;
 import lombok.experimental.Accessors;
 import org.jeecg.common.aspect.annotation.Dict;
-import org.jeecgframework.poi.excel.annotation.Excel;
 import org.springframework.format.annotation.DateTimeFormat;
 
 import java.io.Serializable;
 import java.util.Date;
+
 /**
  * @Description: 淇濆吇鏍囧噯
  * @Author: jeecg-boot
- * @Date:   2025-03-26
+ * @Date: 2025-03-26
  * @Version: V1.0
  */
 @Data
 @TableName("eam_maintenance_standard")
 @EqualsAndHashCode(callSuper = false)
 @Accessors(chain = true)
-@ApiModel(value="eam_maintenance_standard瀵硅薄", description="淇濆吇鏍囧噯")
+@ApiModel(value = "eam_maintenance_standard瀵硅薄", description = "淇濆吇鏍囧噯")
 public class EamMaintenanceStandard implements Serializable {
-    
-	/**涓婚敭*/
-	@TableId(type = IdType.ASSIGN_ID)
+
+    /**
+     * 涓婚敭
+     */
+    @TableId(type = IdType.ASSIGN_ID)
     @ApiModelProperty(value = "涓婚敭")
-	private String id;
-	/**鍒涘缓浜�*/
-	@Excel(name = "鍒涘缓浜�", width = 15)
+    private String id;
+    /**
+     * 鍒涘缓浜�
+     */
     @ApiModelProperty(value = "鍒涘缓浜�")
-	private String createBy;
-	/**鍒涘缓鏃堕棿*/
+    private String createBy;
+    /**
+     * 鍒涘缓鏃堕棿
+     */
     @ApiModelProperty(value = "鍒涘缓鏃堕棿")
-	private Date createTime;
-	/**鏇存柊浜�*/
-	@Excel(name = "鏇存柊浜�", width = 15)
+    private Date createTime;
+    /**
+     * 鏇存柊浜�
+     */
     @ApiModelProperty(value = "鏇存柊浜�")
-	private String updateBy;
-	/**鏇存柊鏃堕棿*/
+    private String updateBy;
+    /**
+     * 鏇存柊鏃堕棿
+     */
     @ApiModelProperty(value = "鏇存柊鏃堕棿")
-	private Date updateTime;
-	/**鍒犻櫎鏍囪*/
-	@Excel(name = "鍒犻櫎鏍囪", width = 15)
+    private Date updateTime;
+    /**
+     * 鍒犻櫎鏍囪
+     */
     @ApiModelProperty(value = "鍒犻櫎鏍囪")
-	private Integer delFlag;
-	/**鏍囧噯缂栫爜*/
-	@Excel(name = "鏍囧噯缂栫爜", width = 15)
+    private Integer delFlag;
+    /**
+     * 鏍囧噯缂栫爜
+     */
     @ApiModelProperty(value = "鏍囧噯缂栫爜")
-	private String standardCode;
-	/**鏍囧噯鍚嶇О*/
-	@Excel(name = "鏍囧噯鍚嶇О", width = 15)
+    private String standardCode;
+    /**
+     * 鏍囧噯鍚嶇О
+     */
     @ApiModelProperty(value = "鏍囧噯鍚嶇О")
-	private String standardName;
-	/**淇濆吇鍛ㄦ湡;鍗曚綅:澶�*/
-	@Excel(name = "淇濆吇鍛ㄦ湡;鍗曚綅:澶�", width = 15)
+    private String standardName;
+    /**
+     * 淇濆吇鍛ㄦ湡;鍗曚綅:澶�
+     */
     @ApiModelProperty(value = "淇濆吇鍛ㄦ湡;鍗曚綅:澶�")
-	private Integer maintenancePeriod;
-	/**鍒濆鏃ユ湡 浠庡摢涓�澶╁紑濮嬭绠椾笅娆′繚鍏绘棩鏈�*/
-	@Excel(name = "鍒濆鏃ユ湡", width = 15, format = "yyyy-MM-dd")
-	@ApiModelProperty(value = "鍒濆鏃ユ湡")
-	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
-	@DateTimeFormat(pattern = "yyyy-MM-dd")
-	private Date initialDate;
-	/**淇濆吇鍒嗙被*/
-	@Excel(name = "淇濆吇鍒嗙被", width = 15, dicCode = "maintenance_category")
+    private Integer maintenancePeriod;
+    /**
+     * 鍒濆鏃ユ湡 浠庡摢涓�澶╁紑濮嬭绠椾笅娆′繚鍏绘棩鏈�
+     */
+    @ApiModelProperty(value = "鍒濆鏃ユ湡")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
+    private Date initialDate;
+    /**
+     * 淇濆吇鍒嗙被
+     */
     @ApiModelProperty(value = "淇濆吇鍒嗙被")
-	@Dict(dicCode = "maintenance_category")
-	private String maintenanceCategory;
-	/**璁惧缂栧彿*/
-	@Excel(name = "璁惧缂栧彿", width = 15, dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_code")
+    @Dict(dicCode = "maintenance_category")
+    private String maintenanceCategory;
+    /**
+     * 璁惧缂栧彿
+     */
     @ApiModelProperty(value = "璁惧缂栧彿")
-	@Dict(dicCode = "eam_equipment, equipment_code, id")
-	private String equipmentId;
-	/**鏍囧噯鐘舵��*/
-	@Excel(name = "鏍囧噯鐘舵��", width = 15, dicCode = "maintenance_standard_status")
+    @Dict(dicCode = "eam_equipment, equipment_code, id")
+    private String equipmentId;
+    /**
+     * 鏍囧噯鐘舵��
+     */
     @ApiModelProperty(value = "鏍囧噯鐘舵��")
-	@Dict(dicCode = "maintenance_standard_status")
-	private String standardStatus;
-	/**鏍囧噯鐗堟湰*/
-	@Excel(name = "鏍囧噯鐗堟湰", width = 15)
+    @Dict(dicCode = "maintenance_standard_status")
+    private String standardStatus;
+    /**
+     * 鏍囧噯鐗堟湰
+     */
     @ApiModelProperty(value = "鏍囧噯鐗堟湰")
-	private Integer standardVersion;
-	/**鏂囦欢缂栧彿*/
-	@Excel(name = "鏂囦欢缂栧彿", width = 15)
-	@ApiModelProperty(value = "鏂囦欢缂栧彿")
-	private String fileCode;
-	/**鍙傝�冩枃浠�*/
-	@Excel(name = "鍙傝�冩枃浠�", width = 15)
-	@ApiModelProperty(value = "鍙傝�冩枃浠�")
-	private String referenceFile;
+    private Integer standardVersion;
+    /**
+     * 鏂囦欢缂栧彿
+     */
+    @ApiModelProperty(value = "鏂囦欢缂栧彿")
+    private String fileCode;
+    /**
+     * 鍙傝�冩枃浠�
+     */
+    @ApiModelProperty(value = "鍙傝�冩枃浠�")
+    private String referenceFile;
+    /**
+     * 鏈�鏂扮敓鎴愬伐鍗曟椂闂�
+     * 涓嬩竴娆$敓鎴愭椂闂翠负姝ゆ椂闂� + 淇濆吇鍛ㄦ湡
+     */
+    @ApiModelProperty(value = "鏈�鏂扮敓鎴愬伐鍗曟椂闂�")
+    private Date lastGenerateTime;
+
+    //鍒楄〃灞曠ず
+    @TableField(exist = false)
+    private String equipmentCode;
+    @TableField(exist = false)
+    private String equipmentName;
+    @TableField(exist = false)
+    private String keyword;
+    /**
+     * 璁惧缂栧彿鎷兼帴
+     */
+    @TableField(exist = false)
+    private String equipmentText;
+
+    public String getEquipmentText() {
+        return equipmentCode + "[" + equipmentName + "]";
+    }
 }

--
Gitblit v1.9.3