From 37d6ceefa256356961be44e868842bf6a77e4599 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期一, 18 八月 2025 13:37:50 +0800
Subject: [PATCH] 加工设备三级保养验收单 加工设备三级保养移交单批量打印接口

---
 lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/vo/EamEquipmentTree.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/vo/EamEquipmentTree.java b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/vo/EamEquipmentTree.java
index b21841a..8ee85cc 100644
--- a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/vo/EamEquipmentTree.java
+++ b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/vo/EamEquipmentTree.java
@@ -5,6 +5,7 @@
 import lombok.EqualsAndHashCode;
 import lombok.experimental.Accessors;
 import org.jeecg.modules.eam.entity.EamEquipment;
+import org.jeecg.modules.system.model.EamBaseFactoryTreeModel;
 import org.jeecg.modules.system.model.MdcProductionTreeModel;
 import org.jeecg.modules.system.model.SysDepartTreeModel;
 
@@ -71,6 +72,15 @@
      */
     private String orgType;
 
+    /**
+     * 淇濆吇瑙勮寖鍚嶇О
+     */
+    private String maintenanceStandardName;
+
+    /**
+     * 淇濆吇瑙勮寖Id
+     */
+    private String maintenanceStandardId;
 
     private List<EamEquipmentTree> children = new ArrayList<>();
 
@@ -86,6 +96,8 @@
         this.title = mdcEquipment.getEquipmentCode() + "/" + mdcEquipment.getEquipmentName();
         this.equipmentId = mdcEquipment.getEquipmentCode();
         this.equipmentName = mdcEquipment.getEquipmentName();
+        this.maintenanceStandardId=mdcEquipment.getMaintenanceStandardId();
+        this.maintenanceStandardName=mdcEquipment.getMaintenanceStandardName();
         this.isLeaf = true;
         return this;
     }
@@ -118,4 +130,20 @@
         this.orgType = treeModel.getOrgType();
         return this;
     }
+
+    /**
+     * 灏咵amBaseFactoryTreeModel鐨勯儴鍒嗘暟鎹斁鍦ㄨ瀵硅薄褰撲腑
+     *
+     * @param treeModel
+     * @return
+     */
+    public EamEquipmentTree convertByBaseFactory(EamBaseFactoryTreeModel treeModel) {
+        this.key = treeModel.getId();
+        this.value = treeModel.getId();
+        this.title = treeModel.getFactoryName();
+        this.memo = treeModel.getRemark();
+//        this.type = treeModel.getType();
+        this.orgType = treeModel.getOrgType();
+        return this;
+    }
 }

--
Gitblit v1.9.3