|
@@ -20,8 +20,8 @@
|
|
|
<result column="tenant_id" property="tenantId"/>
|
|
|
<result column="parent_id" property="parentId"/>
|
|
|
<result column="ancestors" property="ancestors"/>
|
|
|
- <result column="dept_category" property="deptCategory"/>
|
|
|
- <result column="dept_name" property="deptName"/>
|
|
|
+ <result column="node_type" property="nodeType"/>
|
|
|
+ <result column="node_name" property="nodeName"/>
|
|
|
<result column="full_name" property="fullName"/>
|
|
|
<result column="sort" property="sort"/>
|
|
|
<result column="remark" property="remark"/>
|
|
@@ -53,19 +53,19 @@
|
|
|
<result column="type" property="type"/>
|
|
|
<result column="wbsType" property="wbsType"/>
|
|
|
<result column="primaryKeyId" property="primaryKeyId"/>
|
|
|
- <result column="deptCategory" property="deptCategory"/>
|
|
|
+ <result column="nodeType" property="nodeType"/>
|
|
|
<result column="isExistForm" property="isExistForm"/>
|
|
|
</resultMap>
|
|
|
<insert id="insertCombination1">
|
|
|
INSERT INTO m_wbs_tree_private(p_key_id, id, wbs_id, wbs_type, project_id, tenant_id, parent_id, ancestors,
|
|
|
- dept_category, dept_name, full_name, sort, remark, `type`,
|
|
|
+ node_type, node_name, full_name, sort, remark, `type`,
|
|
|
table_type, create_time, create_user, create_dept, update_user, update_time,
|
|
|
`STATUS`, is_deleted,
|
|
|
unique_code, partition_code, is_expernode, is_concrete, table_owner,
|
|
|
major_data_type, init_table_name, is_link_table)
|
|
|
VALUES (#{snowId}, #{wbsTree.id}, #{wbsTree.wbsId}, #{wbsType}, #{projectId}, #{wbsTree.tenantId},
|
|
|
#{wbsTree.parentId}, #{wbsTree.ancestors},
|
|
|
- #{wbsTree.deptCategory}, #{wbsTree.deptName}, #{wbsTree.fullName}, #{wbsTree.sort}, #{wbsTree.remark},
|
|
|
+ #{wbsTree.nodeType}, #{wbsTree.nodeName}, #{wbsTree.fullName}, #{wbsTree.sort}, #{wbsTree.remark},
|
|
|
#{wbsTree.type},
|
|
|
#{wbsTree.tableType}, #{wbsTree.createTime}, #{wbsTree.createUser}, #{wbsTree.createDept},
|
|
|
#{wbsTree.updateUser}, #{wbsTree.updateTime},
|
|
@@ -76,14 +76,14 @@
|
|
|
|
|
|
<insert id="insertCombination2">
|
|
|
INSERT INTO m_wbs_tree_private(p_key_id, id, wbs_id, wbs_type, project_id, tenant_id, parent_id, ancestors,
|
|
|
- dept_category, dept_name, full_name, sort, remark, `type`,
|
|
|
+ node_type, node_name, full_name, sort, remark, `type`,
|
|
|
table_type, create_time, create_user, create_dept, update_user, update_time,
|
|
|
`STATUS`, is_deleted,
|
|
|
unique_code, partition_code, is_expernode, is_concrete, table_owner,
|
|
|
major_data_type, init_table_name, is_link_table)
|
|
|
VALUES (#{snowId}, #{wbsTree.id}, #{wbsTree.wbsId}, #{wbsTree.wbsType}, #{projectId}, #{wbsTree.tenantId},
|
|
|
#{wbsTree.parentId}, #{wbsTree.ancestors},
|
|
|
- #{wbsTree.deptCategory}, #{wbsTree.deptName}, #{wbsTree.fullName}, #{wbsTree.sort}, #{wbsTree.remark},
|
|
|
+ #{wbsTree.nodeType}, #{wbsTree.nodeName}, #{wbsTree.fullName}, #{wbsTree.sort}, #{wbsTree.remark},
|
|
|
#{wbsTree.type},
|
|
|
#{wbsTree.tableType}, #{wbsTree.createTime}, #{wbsTree.createUser}, #{wbsTree.createDept},
|
|
|
#{wbsTree.updateUser}, #{wbsTree.updateTime},
|
|
@@ -139,8 +139,8 @@
|
|
|
update m_wbs_tree_private
|
|
|
set tenant_id = #{wbsTP.tenantId},
|
|
|
parent_id = #{wbsTP.parentId},
|
|
|
- dept_category = #{wbsTP.deptCategory},
|
|
|
- dept_name = #{wbsTP.deptName},
|
|
|
+ node_type = #{wbsTP.nodeType},
|
|
|
+ node_name = #{wbsTP.nodeName},
|
|
|
ancestors = #{wbsTP.ancestors},
|
|
|
unique_code = #{wbsTP.uniqueCode},
|
|
|
partition_code = #{wbsTP.partitionCode},
|
|
@@ -191,8 +191,8 @@
|
|
|
|
|
|
<update id="updateBatchByPid">
|
|
|
UPDATE m_wbs_tree_private
|
|
|
- SET dept_name = #{wbsTreePrivates.deptName},
|
|
|
- full_name =#{wbsTreePrivates.deptName},
|
|
|
+ SET node_name = #{wbsTreePrivates.nodeName},
|
|
|
+ full_name =#{wbsTreePrivates.nodeName},
|
|
|
table_type = #{wbsTreePrivates.tableType},
|
|
|
table_owner = #{wbsTreePrivates.tableOwner}
|
|
|
WHERE p_key_id = #{wbsTreePrivates.pKeyId}
|
|
@@ -200,9 +200,9 @@
|
|
|
|
|
|
<update id="updateBatchByIds">
|
|
|
UPDATE m_wbs_tree_private
|
|
|
- SET dept_name = #{wbsTree.deptName},
|
|
|
- full_name =#{wbsTree.deptName},
|
|
|
- dept_category = #{wbsTree.deptCategory},
|
|
|
+ SET node_name = #{wbsTree.nodeName},
|
|
|
+ full_name =#{wbsTree.nodeName},
|
|
|
+ node_type = #{wbsTree.nodeType},
|
|
|
major_data_type = #{wbsTree.majorDataType},
|
|
|
unique_code = #{wbsTree.uniqueCode},
|
|
|
partition_code = #{wbsTree.partitionCode},
|
|
@@ -219,9 +219,9 @@
|
|
|
|
|
|
<update id="updateBatchByIds2">
|
|
|
UPDATE m_wbs_tree_private
|
|
|
- SET dept_name = #{wbsTreePrivate.deptName},
|
|
|
- full_name = #{wbsTreePrivate.deptName},
|
|
|
- dept_category = #{wbsTreePrivate.deptCategory},
|
|
|
+ SET node_name = #{wbsTreePrivate.nodeName},
|
|
|
+ full_name = #{wbsTreePrivate.nodeName},
|
|
|
+ node_type = #{wbsTreePrivate.nodeType},
|
|
|
major_data_type = #{wbsTreePrivate.majorDataType},
|
|
|
unique_code = #{wbsTreePrivate.uniqueCode},
|
|
|
partition_code = #{wbsTreePrivate.partitionCode},
|
|
@@ -241,9 +241,9 @@
|
|
|
<foreach collection="listPrivate" item="item" index="index" separator=";">
|
|
|
UPDATE m_wbs_tree_private
|
|
|
<set>
|
|
|
- dept_name = #{item.deptName},
|
|
|
- full_name = #{item.deptName},
|
|
|
- dept_category = #{item.deptCategory},
|
|
|
+ node_name = #{item.nodeName},
|
|
|
+ full_name = #{item.nodeName},
|
|
|
+ node_type = #{item.nodeType},
|
|
|
major_data_type = #{item.majorDataType},
|
|
|
unique_code = #{item.uniqueCode},
|
|
|
partition_code = #{item.partitionCode},
|
|
@@ -265,8 +265,8 @@
|
|
|
dept.table_type,
|
|
|
dept.id,
|
|
|
dept.parent_id,
|
|
|
- dept.dept_name AS title,
|
|
|
- dept.dept_category AS "deptCategory",
|
|
|
+ dept.node_name AS title,
|
|
|
+ dept.node_type AS "nodeType",
|
|
|
dept.id AS "value",
|
|
|
dept.id AS "key",
|
|
|
dept.is_exist_form AS "isExistForm",
|
|
@@ -317,8 +317,8 @@
|
|
|
|
|
|
<select id="tree" resultMap="treeNodeResultMap">
|
|
|
select p_key_id as "primaryKeyId",
|
|
|
- id, parent_id, dept_name as title,type as "type", id as "value", id as "key" ,
|
|
|
- dept_category AS "deptCategory", is_exist_form AS "isExistForm",
|
|
|
+ id, parent_id, node_name as title,type as "type", id as "value", id as "key" ,
|
|
|
+ node_type AS "nodeType", is_exist_form AS "isExistForm",
|
|
|
wbs_type as "wbsType"
|
|
|
from m_wbs_tree_private
|
|
|
where
|
|
@@ -376,7 +376,7 @@
|
|
|
<select id="selectByNodeTable" resultType="org.springblade.manager.vo.WbsNodeTableVO">
|
|
|
SELECT wt.p_key_id AS "pKeyId",
|
|
|
wt.id AS id,
|
|
|
- wt.dept_name AS tableName,
|
|
|
+ wt.node_name AS tableName,
|
|
|
wt.table_type AS tableType,
|
|
|
wt.`status` AS isCreateTable,
|
|
|
wt.table_owner as tableOwner,
|
|
@@ -392,7 +392,7 @@
|
|
|
AND wt.parent_id = #{id}
|
|
|
AND wt.wbs_id = #{wbsId}
|
|
|
AND wt.project_id = #{projectId}
|
|
|
- ORDER BY wt.sort, wt.dept_name, wt.create_time
|
|
|
+ ORDER BY wt.sort, wt.node_name, wt.create_time
|
|
|
</select>
|
|
|
<select id="getByCondition" resultType="org.springblade.manager.entity.WbsTreePrivate">
|
|
|
SELECT *
|
|
@@ -428,7 +428,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectNodeListByCondition" resultType="org.springblade.manager.dto.WbsTreePrivateDTO2">
|
|
|
- SELECT p_key_id as "pKeyId", dept_name AS "tableName", sort
|
|
|
+ SELECT p_key_id as "pKeyId", node_name AS "tableName", sort
|
|
|
FROM m_wbs_tree_private
|
|
|
WHERE project_id = #{projectId}
|
|
|
AND parent_id = #{parentId}
|