|
@@ -5,6 +5,7 @@
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="ResultMap" type="org.springblade.manager.entity.WbsTreeContract">
|
|
|
<result column="id" property="id"/>
|
|
|
+ <result column="private_node_id" property="privateNodeId"/>
|
|
|
<result column="wbs_id" property="wbsId"/>
|
|
|
<result column="project_id" property="projectId"/>
|
|
|
<result column="contract_id" property="contractId"/>
|
|
@@ -43,13 +44,13 @@
|
|
|
<result column="contract_id" property="contractId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
- <insert id="insertWbsTreeContract1">
|
|
|
+ <insert id="insertWbsTreeContract1" >
|
|
|
INSERT INTO m_wbs_tree_contract(
|
|
|
- id,wbs_id,project_id,contract_id,tenant_id,parent_id,ancestors,dept_category,dept_name,full_name,sort,remark,`type`,
|
|
|
+ id,private_node_id,wbs_id,project_id,contract_id,tenant_id,parent_id,ancestors,dept_category,dept_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(
|
|
|
- #{wbsTree.id},#{wbsTree.wbsId},#{wbsTree.projectId},#{contractId},#{wbsTree.tenantId},#{wbsTree.parentId},#{wbsTree.ancestors},
|
|
|
+ #{snowId},#{wbsTree.id},#{wbsTree.wbsId},#{wbsTree.projectId},#{contractId},#{wbsTree.tenantId},#{wbsTree.parentId},#{wbsTree.ancestors},
|
|
|
#{wbsTree.deptCategory},#{wbsTree.deptName},#{wbsTree.fullName},#{wbsTree.sort},#{wbsTree.remark},#{wbsTree.type},
|
|
|
#{wbsTree.tableType},#{wbsTree.createTime},#{wbsTree.createUser},#{wbsTree.createDept},#{wbsTree.updateUser},#{wbsTree.updateTime},
|
|
|
#{wbsTree.status},#{wbsTree.isDeleted},#{wbsTree.uniqueCode},#{wbsTree.partitionCode},#{wbsTree.isExpernode},#{wbsTree.isConcrete},
|
|
@@ -81,7 +82,7 @@
|
|
|
<update id="updateByCondition">
|
|
|
UPDATE m_wbs_tree_contract
|
|
|
SET is_deleted = 0
|
|
|
- WHERE id = #{id}
|
|
|
+ WHERE private_node_id = #{id}
|
|
|
AND wbs_id = #{wbsId}
|
|
|
AND project_id =#{projectId}
|
|
|
AND contract_id = #{contractId}
|
|
@@ -124,7 +125,7 @@
|
|
|
FROM
|
|
|
m_wbs_tree_contract
|
|
|
WHERE
|
|
|
- id = #{id}
|
|
|
+ private_node_id = #{id}
|
|
|
AND project_id = #{projectId}
|
|
|
AND contract_id = #{contractId}
|
|
|
AND wbs_id = #{wbsId}
|