| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "设备树结构数据实体", description = "设备") |
| | | public class MdcEquipmentTree implements Serializable { |
| | | public class MdcEquipmentTree<T> implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -5202127219834067917L; |
| | | |
| | |
| | | * 父级id(前端请求用) |
| | | */ |
| | | private String parentId; |
| | | |
| | | /** |
| | | * 车间描述 |
| | | */ |
| | | private String memo; |
| | | |
| | | private T entity; |
| | | |
| | | /** |
| | | * 类型 1 车间 2设备 |
| | | */ |
| | | private Integer type; |
| | | |
| | | private List<MdcEquipmentTree> children = new ArrayList<>(); |
| | | |
| | |
| | | this.key = treeModel.getId(); |
| | | this.value = treeModel.getId(); |
| | | this.title = treeModel.getProductionName(); |
| | | this.memo = treeModel.getMemo(); |
| | | this.type =treeModel.getType(); |
| | | return this; |
| | | } |
| | | |