| | |
| | | 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; |
| | | |
| | |
| | | */ |
| | | private String orgType; |
| | | |
| | | /** |
| | | * 保养规范名称 |
| | | */ |
| | | private String maintenanceStandardName; |
| | | |
| | | /** |
| | | * 保养规范Id |
| | | */ |
| | | private String maintenanceStandardId; |
| | | |
| | | private List<EamEquipmentTree> children = new ArrayList<>(); |
| | | |
| | |
| | | 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; |
| | | } |
| | |
| | | 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; |
| | | } |
| | | } |