@@ -379,21 +379,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(select GROUP_CONCAT(b.`name`) from ledger_building b where a.id = b.project_id and b.`status` = '0' )buildName,
(select COUNT(1) from ledger_floor b where b.`status` = '0' and b.building_id in (select id from ledger_building c where c.project_id = a.id and c.`status` = '0')) floorCount,
(select COUNT(1) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0') inherentCount,
(select GROUP_CONCAT(type) from risk_plan_inherent_list b where b.plan_id = 149 and b.del_flag = '0')inherentType,
(select GROUP_CONCAT(type) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0')inherentType,
(select count(1) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0' and b.`level` = '重大风险' ) zdCount,
(select count(1) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0' and b.`level` = '较大风险' ) jdCount,
(select count(1) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0' and b.`level` = '一般风险' ) ybCount,
(select count(1) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0' and b.`level` = '低风险' ) dCount,
(select GROUP_CONCAT(type) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0' and (b.`level` = '重大风险' or b.`level` = '较大风险' ) ) zjdInherentType,
(select GROUP_CONCAT(type) from risk_plan_inherent_list b where b.plan_id = 149 and b.del_flag = '0' and b.`level` = "重大风险" ) zdRisk,
(select GROUP_CONCAT(type) from risk_plan_inherent_list b where b.plan_id = 149 and b.del_flag = '0' and b.`level` = "较大风险" ) jdRisk,
(select GROUP_CONCAT(type) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0' and b.`level` = "重大风险" ) zdRisk,
(select GROUP_CONCAT(type) from risk_plan_inherent_list b where b.plan_id = #{id} and b.del_flag = '0' and b.`level` = "较大风险" ) jdRisk,