修改线路工程杆塔查询
This commit is contained in:
parent
a354de7cb0
commit
566f3d7d00
|
|
@ -236,10 +236,11 @@
|
||||||
count(case when td.dev_warn = 0 then 1 end) as successNum,
|
count(case when td.dev_warn = 0 then 1 end) as successNum,
|
||||||
count(case when td.dev_warn = 1 then 1 end) as errorNum
|
count(case when td.dev_warn = 1 then 1 end) as errorNum
|
||||||
from tb_pro_power tpp
|
from tb_pro_power tpp
|
||||||
left join tb_bd_device_record tbdr on tpp.id = tbdr.power_id
|
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_device td on tbdr.record_id = td.bd_id and td.dev_status = 0 and td.del_flag = 0
|
||||||
where tpp.pro_id = #{proId}
|
where tpp.pro_id = #{proId}
|
||||||
and tpp.del_flag = 0
|
and tpp.del_flag = 0
|
||||||
|
group by tpp.id
|
||||||
</select>
|
</select>
|
||||||
<select id="getList" resultType="java.lang.Integer">
|
<select id="getList" resultType="java.lang.Integer">
|
||||||
select count(1) from tb_team where del_flag = 0 and pro_id = #{id}
|
select count(1) from tb_team where del_flag = 0 and pro_id = #{id}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue