| | |
| | | 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; |
| | | |
| | |
| | | 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; |
| | | } |
| | | } |