|
@@ -542,7 +542,8 @@
|
|
|
|
|
|
<!-- 项目级 表单类型分类 wbs树 -->
|
|
|
<select id="tabTypeLazyTree" resultMap="treeNodeResultMapTabType">
|
|
|
- SELECT p_key_id as id,p_key_id as primaryKeyId,title,parent_id,fill_rate as fillRate,initTableId,
|
|
|
+ SELECT a.exceIds AS excelIds,
|
|
|
+ p_key_id as id,p_key_id as primaryKeyId,title,parent_id,fill_rate as fillRate,initTableId,
|
|
|
(SELECT dict_value from blade_dict where code='table_type' and dict_key not in(-1,0) and dict_key=table_type )
|
|
|
as tabType,
|
|
|
(SELECT count(1) FROM m_wbs_form_element WHERE f_id = initTableId and is_deleted=0) AS "elementTotal",
|
|
@@ -574,7 +575,9 @@
|
|
|
table_owner,0 as initTableId,0 as exceIds from blade_dict where code='table_type' and dict_key not in(-1,0)
|
|
|
union all
|
|
|
SELECT p_key_id,node_name as title,table_type as parent_id,table_type,fill_rate,table_owner,init_table_id as
|
|
|
- initTableId,GROUP_CONCAT(excel_id) as excelIds from m_wbs_tree_private WHERE project_id=#{projectId} and
|
|
|
+ initTableId,
|
|
|
+ IFNULL(GROUP_CONCAT( excel_id ),-1) AS excelIds
|
|
|
+ from m_wbs_tree_private WHERE project_id=#{projectId} and
|
|
|
is_deleted=0 and type=10 and table_type is not NULL GROUP BY node_name
|
|
|
) a where 1=1
|
|
|
<if test="parentId != null and parentId != ''">
|