From b84987e8d9def03bdf06f69e51de56e72d5b8131 Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期四, 14 八月 2025 17:40:57 +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