package org.jeecg.modules.eam.base.model;
|
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
import org.jeecg.modules.eam.base.entity.EamBaseRepairDepart;
|
|
import java.io.Serializable;
|
import java.util.ArrayList;
|
import java.util.List;
|
|
/**
|
* @Author: Lius
|
* @CreateTime: 2025-07-01
|
* @Description:
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
public class RepairDepartIdModel implements Serializable {
|
|
private static final long serialVersionUID = -1114067150036416102L;
|
|
/**
|
* 主键ID
|
*/
|
private String key;
|
|
/**
|
* 主键ID
|
*/
|
private String value;
|
|
/**
|
* 产线名称
|
*/
|
private String title;
|
|
List<RepairDepartIdModel> children = new ArrayList<>();
|
|
/**
|
* 将SysMaintainDepartTreeModel的部分数据放在该对象当中
|
*
|
* @param treeModel
|
* @return
|
*/
|
public RepairDepartIdModel convert(EamBaseRepairDepartTreeModel treeModel) {
|
this.key = treeModel.getId();
|
this.value = treeModel.getId();
|
this.title = treeModel.getDepartName();
|
return this;
|
}
|
|
/**
|
* 该方法为用户产线的实现类所使用
|
*
|
* @return
|
*/
|
public RepairDepartIdModel convertByUserMaintainDepart(EamBaseRepairDepart mdcMaintainDepart) {
|
this.key = mdcMaintainDepart.getId();
|
this.value = mdcMaintainDepart.getId();
|
this.title = mdcMaintainDepart.getDepartName();
|
return this;
|
}
|
}
|