|
@@ -451,10 +451,12 @@
|
|
|
<select id="selectByNodeTable" resultType="org.springblade.manager.vo.WbsNodeTableVO">
|
|
|
SELECT wt.p_key_id AS "pKeyId",
|
|
|
wt.id AS id,
|
|
|
+ wt.wbs_type AS wbsType,
|
|
|
wt.node_name AS tableName,
|
|
|
case when wt.table_type in(1,9) then 1
|
|
|
when wt.table_type in(2,10) then 2
|
|
|
- end as tableType,
|
|
|
+ else wt.table_type
|
|
|
+ end as tableType,
|
|
|
wt.`status` AS isCreateTable,
|
|
|
wt.table_owner AS tableOwner,
|
|
|
wt.is_link_table,
|
|
@@ -473,6 +475,7 @@
|
|
|
AND wt.wbs_id = #{wbsId}
|
|
|
AND wt.project_id = #{projectId}
|
|
|
AND wt.trial_tab_contract_id is null
|
|
|
+ AND (wt.wbs_type != 2 OR wt.table_type IN (1,2,9,10))
|
|
|
ORDER BY wt.sort, wt.node_name, wt.create_time
|
|
|
</select>
|
|
|
<select id="getByCondition" resultType="org.springblade.manager.entity.WbsTreePrivate">
|