Commit 8825fb40 authored by chenzhao's avatar chenzhao

修改全域设备预警统计分析

parent 1f4c4e56
......@@ -302,11 +302,10 @@
(
SELECT
wr.WARNING_NAME AS warningName,
vc.POINT_NAME AS pointName,
wr.POINT_NAME AS pointName,
count( 1 ) AS num
FROM
idx_biz_pv_warning_record wr
LEFT JOIN idx_biz_pv_point_process_variable_classification vc on vc.GATEWAY_ID = wr.GATEWAY_ID and vc.INDEX_ADDRESS = wr.INDEX_ADDRESS
<where>
<if test="areaCode != null and areaCode != ''">
wr.ARAE like concat('%', #{areaCode}, '%')
......@@ -317,11 +316,10 @@
warningName UNION ALL
SELECT
wr.WARNING_NAME AS warningName,
vc.POINT_NAME AS pointName,
wr.POINT_NAME AS pointName,
count( 1 ) AS num
FROM
idx_biz_fan_warning_record wr
LEFT JOIN idx_biz_fan_point_process_variable_classification vc on vc.GATEWAY_ID = wr.GATEWAY_ID and vc.INDEX_ADDRESS = wr.INDEX_ADDRESS
<where>
<if test="areaCode != null and areaCode != ''">
wr.ARAE like concat('%', #{areaCode}, '%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment