lyh
7 天以前 b84987e8d9def03bdf06f69e51de56e72d5b8131
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;
    }
    /**
     * 将EamBaseFactoryTreeModel的部分数据放在该对象当中
     *
     * @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;
    }
}