|
@@ -845,9 +845,12 @@
|
|
|
</update>
|
|
|
<update id="updateAncestorsPid">
|
|
|
UPDATE m_wbs_tree_contract
|
|
|
- SET ancestors_p_id = #{ancestorsPid},ancestors = #{ancestors}
|
|
|
+ SET ancestors_p_id = #{ancestorsPId},ancestors = #{ancestors}
|
|
|
WHERE p_key_id = #{pKeyId}
|
|
|
</update>
|
|
|
+ <update id="updateWbsTreeAncestors">
|
|
|
+ update m_wbs_tree_contract set p_id = #{contract.pId},parent_id=#{contract.parentId},ancestors_p_id = #{contract.ancestorsPId},ancestors = #{contract.ancestors} where p_key_id = #{contract.pKeyId}
|
|
|
+ </update>
|
|
|
|
|
|
<select id="selectQueryValueLikeNodeName" resultMap="ResultMap">
|
|
|
select *
|
|
@@ -1057,14 +1060,14 @@
|
|
|
select * from m_wbs_tree_contract where p_id= (select p_id from m_wbs_tree_contract where p_key_id=#{pKeyId}) and is_deleted=0;
|
|
|
</select>
|
|
|
<select id="getWbsTreeContractsByPKeyIds" resultType="org.springblade.manager.entity.WbsTreeContract">
|
|
|
- select * from m_wbs_tree_contract where p_key_id in (
|
|
|
- <foreach collection="list" item="pkeyId" separator=",">
|
|
|
+ select p_key_id,parent_id,p_id,ancestors,ancestors_p_id from m_wbs_tree_contract where p_key_id in (
|
|
|
+ <foreach collection="pKeyIds" item="pkeyId" separator=",">
|
|
|
#{pkeyId}
|
|
|
</foreach>
|
|
|
) and is_deleted=0
|
|
|
</select>
|
|
|
<select id="getChildWbsTreeContracts" resultType="org.springblade.manager.entity.WbsTreeContract">
|
|
|
- select * from m_wbs_tree_contract where ancestors_p_id like #{pId} and is_deleted=0
|
|
|
+ select p_key_id,ancestors,ancestors_p_id from m_wbs_tree_contract where ancestors_p_id like #{pKeyId} and is_deleted=0
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|