Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ca29ea009e
|
|
@ -13,8 +13,10 @@ public class TowerAssInspectVo {
|
||||||
|
|
||||||
@ApiModelProperty("设备id")
|
@ApiModelProperty("设备id")
|
||||||
private String deviceId;
|
private String deviceId;
|
||||||
|
|
||||||
@ApiModelProperty("设备名称")
|
@ApiModelProperty("设备名称")
|
||||||
private String deviceName;
|
private String deviceName;
|
||||||
|
|
||||||
@ApiModelProperty("设备类别")
|
@ApiModelProperty("设备类别")
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
<!--作业环境-边坡位移监测设备-->
|
<!--作业环境-边坡位移监测设备-->
|
||||||
<select id="getSlopeDisplacement" resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
<select id="getSlopeDisplacement" resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
||||||
SELECT
|
SELECT
|
||||||
|
tbd.device_id deviceId,
|
||||||
ta.area_name AS areaName,
|
ta.area_name AS areaName,
|
||||||
tdd.mode_name modeName,
|
tdd.mode_name modeName,
|
||||||
tbd.device_name AS deviceName,
|
tbd.device_name AS deviceName,
|
||||||
|
|
@ -69,7 +70,7 @@
|
||||||
<select id="getFiniteSpaceEnvironment"
|
<select id="getFiniteSpaceEnvironment"
|
||||||
resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
||||||
SELECT
|
SELECT
|
||||||
concat(tdv.val,'(',tdv.unit,')') val,
|
tdv.val val,
|
||||||
tdv.unit,
|
tdv.unit,
|
||||||
tdd.mode_name AS modeName
|
tdd.mode_name AS modeName
|
||||||
FROM tb_device_detail tdd
|
FROM tb_device_detail tdd
|
||||||
|
|
@ -84,7 +85,7 @@
|
||||||
<select id="getGisInstallationEnvironment"
|
<select id="getGisInstallationEnvironment"
|
||||||
resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
resultType="com.securitycontrol.entity.screen.vo.OperatingQualityVo">
|
||||||
SELECT
|
SELECT
|
||||||
concat(tdv.val,'(',tdv.unit,')') val,
|
tdv.val val,
|
||||||
tdv.unit,
|
tdv.unit,
|
||||||
tdd.mode_name AS modeName
|
tdd.mode_name AS modeName
|
||||||
FROM tb_device_detail tdd
|
FROM tb_device_detail tdd
|
||||||
|
|
@ -99,17 +100,18 @@
|
||||||
<select id="getSlopeDisplacementList"
|
<select id="getSlopeDisplacementList"
|
||||||
resultType="com.securitycontrol.entity.screen.vo.ConstructionQualityVo">
|
resultType="com.securitycontrol.entity.screen.vo.ConstructionQualityVo">
|
||||||
SELECT
|
SELECT
|
||||||
ta.area_name AS areaName,
|
ta.area_name AS areaName,
|
||||||
tbd.device_name AS deviceName,
|
tbd.device_name AS deviceName,
|
||||||
thdv.val AS val,
|
concat(thdv.val,'(',thdv.unit,')') val,
|
||||||
thdv.change_val AS changeVal,
|
thdv.change_val AS changeVal,
|
||||||
thdv.create_time AS createTime,
|
thdv.create_time AS createTime,
|
||||||
thdv.source_data AS sourceData,
|
tdd.mode_name moduleName,
|
||||||
thdv.is_warn AS isWarn
|
thdv.is_warn AS isWarn,
|
||||||
FROM tb_bd_device tbd
|
thdv.unit
|
||||||
|
FROM tb_bd_device tbd
|
||||||
LEFT JOIN tb_device_detail tdd ON tbd.device_id = tdd.device_id
|
LEFT JOIN tb_device_detail tdd ON tbd.device_id = tdd.device_id
|
||||||
LEFT JOIN tb_area ta ON tbd.area_id = ta.area_id
|
LEFT JOIN tb_area ta ON tbd.area_id = ta.area_id
|
||||||
LEFT JOIN tb_his_device_value thdv ON tdd.id = thdv.attribute_id
|
LEFT JOIN tb_device_value thdv ON tdd.id = thdv.attribute_id
|
||||||
LEFT JOIN tb_pro_bd tpb ON tbd.bd_id = tpb.id
|
LEFT JOIN tb_pro_bd tpb ON tbd.bd_id = tpb.id
|
||||||
WHERE tpb.bid_code = #{bidCode} and tbd.devic_type = 1908
|
WHERE tpb.bid_code = #{bidCode} and tbd.devic_type = 1908
|
||||||
<if test="deviceId != null and deviceId != ''">
|
<if test="deviceId != null and deviceId != ''">
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
|
|
||||||
<select id="getHistoryList" resultType="com.securitycontrol.entity.screen.vo.TowerAssInspectVo">
|
<select id="getHistoryList" resultType="com.securitycontrol.entity.screen.vo.TowerAssInspectVo">
|
||||||
SELECT ta.area_name as areaName,tdd.mode_name as modeName, thdv.val ,
|
SELECT ta.area_name as areaName,tdd.mode_name as modeName, thdv.val ,
|
||||||
|
tbd.device_name deviceName,
|
||||||
thdv.change_val as changeVal,tdd.update_time as updateTime,
|
thdv.change_val as changeVal,tdd.update_time as updateTime,
|
||||||
thdv.create_time createTime,
|
thdv.create_time createTime,
|
||||||
case when thdv.is_warn = '0' then '未告警' else '告警' end isWarn
|
case when thdv.is_warn = '0' then '未告警' else '告警' end isWarn
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@
|
||||||
'2' AS level
|
'2' AS level
|
||||||
FROM t_class_metting tcm
|
FROM t_class_metting tcm
|
||||||
left JOIN tb_device td on td.device_code = tcm.puid AND td.del_flag=0
|
left JOIN tb_device td on td.device_code = tcm.puid AND td.del_flag=0
|
||||||
WHERE tcm.del_flag = 0 AND tcm.work_day = CURRENT_DATE AND TCM.puid is not null
|
WHERE tcm.del_flag = 0 AND TCM.puid is not null
|
||||||
|
<!-- AND tcm.work_day = CURRENT_DATE-->
|
||||||
<if test="param!=null and param!=''">
|
<if test="param!=null and param!=''">
|
||||||
AND INSTR(td.device_name,#{param}) > 0
|
AND INSTR(td.device_name,#{param}) > 0
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue