添加行业code,方便劳科院查询
This commit is contained in:
@@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectIndustryVo">
|
<sql id="selectIndustryVo">
|
||||||
select industry_id, parent_id, industry_name, order_num, status, del_flag, create_by, create_time, update_by, update_time from industry
|
select industry_id, parent_id, industry_name, order_num, status, del_flag, create_by, create_time, update_by, update_time,remark from industry
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectIndustryList" parameterType="Industry" resultMap="IndustryResult">
|
<select id="selectIndustryList" parameterType="Industry" resultMap="IndustryResult">
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ public class TreeSelect implements Serializable
|
|||||||
/** 节点名称 */
|
/** 节点名称 */
|
||||||
private String label;
|
private String label;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属code
|
||||||
|
*/
|
||||||
|
private String code;
|
||||||
|
|
||||||
/** 子节点 */
|
/** 子节点 */
|
||||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||||
private List<TreeSelect> children;
|
private List<TreeSelect> children;
|
||||||
@@ -56,6 +61,7 @@ public class TreeSelect implements Serializable
|
|||||||
{
|
{
|
||||||
this.id = industry.getIndustryId();
|
this.id = industry.getIndustryId();
|
||||||
this.label = industry.getIndustryName();
|
this.label = industry.getIndustryName();
|
||||||
|
this.code= industry.getRemark();
|
||||||
this.children = industry.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
this.children = industry.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
public Long getId()
|
public Long getId()
|
||||||
@@ -87,4 +93,12 @@ public class TreeSelect implements Serializable
|
|||||||
{
|
{
|
||||||
this.children = children;
|
this.children = children;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCode(String code) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user