修改数据查询
This commit is contained in:
parent
8dfed030fe
commit
7172d287c9
|
|
@ -45,4 +45,10 @@ public class DeviceValueVo {
|
|||
* 是否告警
|
||||
*/
|
||||
private String isWarn;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String unit;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@
|
|||
</select>
|
||||
<!--查询环境检测数据-->
|
||||
<select id="getProJcData" resultType="com.securitycontrol.entity.screen.vo.DeviceValueVo">
|
||||
select bdd.device_name deviceName,tdd.mode_name modelName,
|
||||
tdv.val,tdv.is_warn isWarn,tdv.create_time createTime,sd.dict_name deviceType
|
||||
select bdd.device_name deviceName,tdd.mode_name modelName,tdv.unit,
|
||||
tdv.val,tdv.is_warn isWarn,tdv.create_time createTime,sd.dict_name deviceType
|
||||
from tb_pro_bd bd
|
||||
INNER join tb_bd_device bdd on bdd.bd_id=bd.id and bdd.del_flag=0
|
||||
LEFT JOIN sys_dict sd on sd.dict_code=bdd.devic_type
|
||||
left join tb_device_detail tdd on tdd.device_id=bdd.device_id and tdd.del_flag=0
|
||||
left join tb_device_value tdv on tdd.id=tdv.attribute_id
|
||||
where tdd.mode_name is not null and sd.dict_code=#{typeCode}
|
||||
where tdd.mode_name is not null and bdd.devic_type=1902
|
||||
and bd.bid_code=#{bidCode}
|
||||
</select>
|
||||
<select id="getWeekRiskNum" resultType="java.lang.Integer">
|
||||
|
|
|
|||
Loading…
Reference in New Issue