|
@@ -194,7 +194,8 @@
|
|
|
SET node_name = #{wbsTreePrivates.nodeName},
|
|
|
full_name =#{wbsTreePrivates.nodeName},
|
|
|
table_type = #{wbsTreePrivates.tableType},
|
|
|
- table_owner = #{wbsTreePrivates.tableOwner}
|
|
|
+ table_owner = #{wbsTreePrivates.tableOwner},
|
|
|
+ fill_rate = #{wbsTreePrivates.fillRate}
|
|
|
WHERE p_key_id = #{wbsTreePrivates.pKeyId}
|
|
|
</update>
|
|
|
|
|
@@ -208,6 +209,7 @@
|
|
|
partition_code = #{wbsTree.partitionCode},
|
|
|
table_type = #{wbsTree.tableType},
|
|
|
table_owner = #{wbsTree.tableOwner}
|
|
|
+ fill_rate = #{wbsTree.fillRate}
|
|
|
<if test="wbsTree.sort != null and wbsTree.sort != ''">
|
|
|
, sort = #{wbsTree.sort}
|
|
|
</if>
|
|
@@ -227,6 +229,7 @@
|
|
|
partition_code = #{wbsTreePrivate.partitionCode},
|
|
|
table_type = #{wbsTreePrivate.tableType},
|
|
|
table_owner = #{wbsTreePrivate.tableOwner}
|
|
|
+ fill_rate = #{wbsTreePrivate.fillRate}
|
|
|
<if test="wbsTreePrivate.sort != null and wbsTreePrivate.sort != ''">
|
|
|
, sort = #{wbsTreePrivate.sort}
|
|
|
</if>
|
|
@@ -249,6 +252,7 @@
|
|
|
partition_code = #{item.partitionCode},
|
|
|
table_type = #{item.tableType},
|
|
|
table_owner = #{item.tableOwner}
|
|
|
+ fill_rate = #{item.fillRate}
|
|
|
</set>
|
|
|
WHERE id = #{item.id}
|
|
|
AND project_id = #{item.projectId}
|
|
@@ -374,17 +378,18 @@
|
|
|
AND project_id = #{projectId}
|
|
|
</select>
|
|
|
<select id="selectByNodeTable" resultType="org.springblade.manager.vo.WbsNodeTableVO">
|
|
|
- SELECT wt.p_key_id AS "pKeyId",
|
|
|
- wt.id AS id,
|
|
|
- wt.node_name AS tableName,
|
|
|
- wt.table_type AS tableType,
|
|
|
- wt.`status` AS isCreateTable,
|
|
|
- wt.table_owner as tableOwner,
|
|
|
+ SELECT wt.p_key_id AS "pKeyId",
|
|
|
+ wt.id AS id,
|
|
|
+ wt.node_name AS tableName,
|
|
|
+ wt.table_type AS tableType,
|
|
|
+ wt.`status` AS isCreateTable,
|
|
|
+ wt.table_owner AS tableOwner,
|
|
|
wt.is_link_table,
|
|
|
wt.init_table_name,
|
|
|
- wt.excel_id as excelId,
|
|
|
+ wt.excel_id AS excelId,
|
|
|
wt.sort,
|
|
|
wt.status,
|
|
|
+ wt.fill_rate AS "fillRate",
|
|
|
(SELECT count(1) FROM m_wbs_form_element WHERE f_id = wt.id) AS "elementTotal"
|
|
|
FROM m_wbs_tree_private AS wt
|
|
|
WHERE wt.type = 2
|