|
@@ -46,6 +46,7 @@
|
|
|
<result column="firstId" property="firstId"/>
|
|
|
<result column="nodeType" property="nodeType"/>
|
|
|
<result column="evaluate" property="evaluate"/>
|
|
|
+ <result column="queryType" property="queryType"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="queryContractTreeMap" type="org.springblade.manager.vo.WbsTreeContractTreeVOS">
|
|
@@ -75,6 +76,7 @@
|
|
|
|
|
|
<select id="queryContractTreeSupervision" resultMap="queryContractTreeMap">
|
|
|
SELECT
|
|
|
+ wtc.is_concealed_works_node AS "isConcealedWorksNode",
|
|
|
wtc.p_key_id AS primaryKeyId,
|
|
|
wtc.id,
|
|
|
CASE wtc.parent_id
|
|
@@ -270,7 +272,8 @@
|
|
|
and tc.parent_id = wtc.parent_id
|
|
|
and tc.contract_id = wtc.contract_id
|
|
|
and NOT EXISTS (select 1 from u_information_query as q where iq.id = q.id and q.status > iq.status) LIMIT 1
|
|
|
- ) AS evaluate
|
|
|
+ ) AS evaluate,
|
|
|
+ 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
|
|
@@ -304,7 +307,8 @@
|
|
|
and tc.parent_id = wtc.parent_id
|
|
|
and tc.contract_id = wtc.contract_id
|
|
|
and NOT EXISTS (select 1 from u_information_query as q where iq.id = q.id and q.status > iq.status) LIMIT 1
|
|
|
- ) AS evaluate
|
|
|
+ ) AS evaluate,
|
|
|
+ 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
|