|
@@ -328,8 +328,12 @@
|
|
|
|
|
|
</select>
|
|
|
<select id="getAllAncestors" resultType="org.springblade.manager.entity.WbsTreeContract">
|
|
|
- select * from m_wbs_tree_contract where contract_id = #{contractId} and is_deleted = 0
|
|
|
- and (id in
|
|
|
+ select *
|
|
|
+ from m_wbs_tree_contract
|
|
|
+ where contract_id = #{contractId}
|
|
|
+ and is_deleted = 0
|
|
|
+ and (
|
|
|
+ id in
|
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
@@ -337,7 +341,11 @@
|
|
|
<foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
- )
|
|
|
+ or p_id in
|
|
|
+ <foreach collection="ids" item="id" open="(" close=")" separator=",">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
group by id
|
|
|
</select>
|
|
|
<select id="getNodeInfo" resultType="org.springblade.meter.vo.WbsNodeVO">
|