越限数据源调整

This commit is contained in:
xy
2025-02-26 14:30:51 +08:00
parent dafa4be195
commit 53142531dd
3 changed files with 46 additions and 24 deletions

View File

@@ -21,7 +21,7 @@
select
count(distinct myindex) allLine
from
limit_target
limit_rate
where
myindex IN
<foreach collection="list" item="list1" open="(" close=")" separator=",">
@@ -34,7 +34,7 @@
SELECT
COUNT(DISTINCT(MYINDEX)) overLine
FROM
limit_target b1,
limit_rate b1,
PQS_DEPTSLINE b2,
PQS_DEPTS b3
WHERE
@@ -58,22 +58,22 @@
or b1.INUHARM_12_OVERTIME >0 or b1.INUHARM_13_OVERTIME >0 or b1.INUHARM_14_OVERTIME >0 or b1.INUHARM_15_OVERTIME >0 or b1.INUHARM_16_OVERTIME >0)
) Y,
(
select
count(distinct myindex) frequencyOverLine
from
limit_target
where
myindex IN
<foreach collection="list" item="list3" open="(" close=")" separator=",">
#{list3}
</foreach>
and timeid BETWEEN TO_DATE(#{startTime}, 'YYYY-MM-DD HH24:MI:SS') AND TO_DATE(#{endTime}, 'YYYY-MM-DD HH24:MI:SS')
and phasic_type = 'T' and FREQ_DEV_OVERTIME > 0
select
count(distinct myindex) frequencyOverLine
from
limit_rate
where
myindex IN
<foreach collection="list" item="list3" open="(" close=")" separator=",">
#{list3}
</foreach>
and timeid BETWEEN TO_DATE(#{startTime}, 'YYYY-MM-DD HH24:MI:SS') AND TO_DATE(#{endTime}, 'YYYY-MM-DD HH24:MI:SS')
and phasic_type = 'T' and FREQ_DEV_OVERTIME > 0
) P,
(select
count(distinct myindex) voltageOverLine
from
limit_target
limit_rate
where
myindex IN
<foreach collection="list" item="list4" open="(" close=")" separator=",">
@@ -86,7 +86,7 @@
select
count(distinct c.myindex) harmonicVoltageOverLine
from
limit_target c
limit_rate c
where
c.myindex in
<foreach collection="list" item="harmonicVoltageList" open="(" close=")" separator=",">
@@ -99,7 +99,7 @@
select
count(distinct c.myindex) harmonicCurrentOverLine
from
limit_target c
limit_rate c
where
c.myindex in
<foreach collection="list" item="harmonicCurrentList" open="(" close=")" separator=",">
@@ -112,7 +112,7 @@
select
count(distinct c.myindex) ubalanceOverLine
from
limit_target c
limit_rate c
where
c.myindex in
<foreach collection="list" item="threePhaseVoltageList" open="(" close=")" separator=",">
@@ -125,7 +125,7 @@
select
count(distinct c.myindex) flicketOverLine
from
limit_target c
limit_rate c
where
c.myindex in
<foreach collection="list" item="flickerList" open="(" close=")" separator=",">
@@ -138,7 +138,7 @@
select
count(distinct c.myindex) negativeOverLine
from
limit_target c
limit_rate c
where
c.myindex in
<foreach collection="list" item="negativeList" open="(" close=")" separator=",">
@@ -151,7 +151,7 @@
select
count(distinct c.myindex) interharmonicOverLine
from
limit_target c
limit_rate c
where
c.myindex in
<foreach collection="list" item="harmonicCurrentList" open="(" close=")" separator=",">