修改线路工程杆塔查询

This commit is contained in:
syruan 2024-09-28 15:26:58 +08:00
parent a354de7cb0
commit 566f3d7d00
1 changed files with 4 additions and 3 deletions

View File

@ -236,10 +236,11 @@
count(case when td.dev_warn = 0 then 1 end) as successNum,
count(case when td.dev_warn = 1 then 1 end) as errorNum
from tb_pro_power tpp
left join tb_bd_device_record tbdr on tpp.id = tbdr.power_id
left join tb_device td on tbdr.record_id = td.bd_id and td.dev_status = 0 and td.del_flag = 0
left join tb_bd_device_record tbdr on tpp.id = tbdr.power_id
left join tb_device td on tbdr.record_id = td.bd_id and td.dev_status = 0 and td.del_flag = 0
where tpp.pro_id = #{proId}
and tpp.del_flag = 0
and tpp.del_flag = 0
group by tpp.id
</select>
<select id="getList" resultType="java.lang.Integer">
select count(1) from tb_team where del_flag = 0 and pro_id = #{id}