|
@@ -448,5 +448,27 @@
|
|
|
<select id="getContractWbsTreeAll" resultType="org.springblade.manager.entity.WbsTreeContract">
|
|
|
select p_key_id,id,node_name,node_type,parent_id,sort from m_wbs_tree_contract where project_id = #{obj.projectId} and contract_id = #{obj.contractId} and `type` = 1 and status = 1 and node_type in (1,2,3,4,5,6) order by sort
|
|
|
</select>
|
|
|
+ <select id="queryProcessDataByParentIdAndContractIdTwo" resultMap="queryProcessDataMap">
|
|
|
+ SELECT
|
|
|
+ wtc.id AS treeId,
|
|
|
+ wtc.p_key_id,
|
|
|
+ wtc.ancestors,
|
|
|
+ wtc.major_data_type,
|
|
|
+ wtc.node_type AS nodeType,
|
|
|
+ IFNULL(if(length(trim(wtc.full_name)) > 0, wtc.full_name, wtc.node_name),wtc.node_name) AS title,
|
|
|
+ wtc.parent_id AS parentId,
|
|
|
+ uiq.id AS informationQueryId,
|
|
|
+ uiq.status,
|
|
|
+ uiq.type AS queryType
|
|
|
+ FROM
|
|
|
+ m_wbs_tree_contract AS wtc
|
|
|
+ LEFT JOIN u_information_query AS uiq ON wtc.p_key_id = uiq.wbs_id AND uiq.classify = #{classify} and uiq.is_deleted = 0
|
|
|
+ WHERE
|
|
|
+ wtc.type = 1
|
|
|
+ AND wtc.major_data_type in(1,2,3,4)
|
|
|
+ AND wtc.ancestors like concat('%',#{parentId},'%')
|
|
|
+ AND wtc.contract_id = #{contractId}
|
|
|
+ AND wtc.is_deleted = 0
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|