|
@@ -329,11 +329,11 @@
|
|
</select>
|
|
</select>
|
|
<select id="getAllAncestors" resultType="org.springblade.manager.entity.WbsTreeContract">
|
|
<select id="getAllAncestors" resultType="org.springblade.manager.entity.WbsTreeContract">
|
|
select * from m_wbs_tree_contract where contract_id = #{contractId} and is_deleted = 0
|
|
select * from m_wbs_tree_contract where contract_id = #{contractId} and is_deleted = 0
|
|
- and id in
|
|
|
|
|
|
+ and p_id in
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
- group by id
|
|
|
|
|
|
+ group by p_id
|
|
</select>
|
|
</select>
|
|
<select id="getNodeInfo" resultType="org.springblade.meter.vo.WbsNodeVO">
|
|
<select id="getNodeInfo" resultType="org.springblade.meter.vo.WbsNodeVO">
|
|
SELECT id,parent_id,p_key_id as pId,
|
|
SELECT id,parent_id,p_key_id as pId,
|