添加行业code,方便劳科院查询
This commit is contained in:
@@ -24,6 +24,11 @@ public class TreeSelect implements Serializable
|
||||
/** 节点名称 */
|
||||
private String label;
|
||||
|
||||
/**
|
||||
* 所属code
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/** 子节点 */
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
private List<TreeSelect> children;
|
||||
@@ -56,6 +61,7 @@ public class TreeSelect implements Serializable
|
||||
{
|
||||
this.id = industry.getIndustryId();
|
||||
this.label = industry.getIndustryName();
|
||||
this.code= industry.getRemark();
|
||||
this.children = industry.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
||||
}
|
||||
public Long getId()
|
||||
@@ -87,4 +93,12 @@ public class TreeSelect implements Serializable
|
||||
{
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user