|
@@ -42,6 +42,7 @@
|
|
|
<result column="has_children" property="hasChildren"/>
|
|
|
<result column="type" property="type"/>
|
|
|
<result column="deptCategory" property="deptCategory"/>
|
|
|
+ <result column="wbsType" property="wbsType"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="selectByNodeTableMap" type="org.springblade.manager.vo.WbsNodeTableVO">
|
|
@@ -151,7 +152,9 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="tree" resultMap="treeNodeResultMap">
|
|
|
- select id, parent_id, dept_name as title,type as "type", id as "value", id as "key" from m_wbs_tree where
|
|
|
+ select id, parent_id, dept_name as title,type as "type", id as "value", id as "key",
|
|
|
+ (select wbs_type from m_wbs_info where id = #{wbsId}) as "wbsType"
|
|
|
+ from m_wbs_tree where
|
|
|
is_deleted = 0
|
|
|
and status = 1
|
|
|
<if test="wbsId!=null and wbsId!=''">
|