|
@ -446,9 +446,11 @@ |
|
|
eb.hong AS hongDeng, |
|
|
eb.hong AS hongDeng, |
|
|
ec.huang AS huangDeng, |
|
|
ec.huang AS huangDeng, |
|
|
ed.lan as lanDeng, |
|
|
ed.lan as lanDeng, |
|
|
|
|
|
ee.dang as guiDang, |
|
|
ROUND( eb.hong / ea.countAll, 2 ) AS hongDengRate, |
|
|
ROUND( eb.hong / ea.countAll, 2 ) AS hongDengRate, |
|
|
ROUND( ec.huang / ea.countAll, 2 ) AS huangDengRate, |
|
|
ROUND( ec.huang / ea.countAll, 2 ) AS huangDengRate, |
|
|
ROUND( ed.lan / ea.countAll, 2 ) as lanDengRate |
|
|
ROUND( ed.lan / ea.countAll, 2 ) as lanDengRate, |
|
|
|
|
|
ROUND( ee.dang / ea.countAll, 2) as guiDangRate |
|
|
FROM |
|
|
FROM |
|
|
( SELECT |
|
|
( SELECT |
|
|
SUM( CASE WHEN a.OPERATION_TYPE IS NULL OR a.OPERATION_TYPE = 0 THEN 1 ELSE 0 END ) AS countAll |
|
|
SUM( CASE WHEN a.OPERATION_TYPE IS NULL OR a.OPERATION_TYPE = 0 THEN 1 ELSE 0 END ) AS countAll |
|
@ -477,7 +479,13 @@ |
|
|
<if test="null != orgIdPath and orgIdPath != ''"> |
|
|
<if test="null != orgIdPath and orgIdPath != ''"> |
|
|
and d.GRID_PIDS like concat(#{orgIdPath},'%') |
|
|
and d.GRID_PIDS like concat(#{orgIdPath},'%') |
|
|
</if> |
|
|
</if> |
|
|
) ed |
|
|
) ed, |
|
|
|
|
|
( SELECT SUM( CASE WHEN d.DIFFICULT_POINT = 1 THEN 1 ELSE 0 END ) as dang |
|
|
|
|
|
FROM ic_event d WHERE d.DEL_FLAG = 0 |
|
|
|
|
|
<if test="null != orgIdPath and orgIdPath != ''"> |
|
|
|
|
|
and d.GRID_PIDS like concat(#{orgIdPath},'%') |
|
|
|
|
|
</if> |
|
|
|
|
|
) ee |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getEventAnalysis" resultType="com.epmet.dto.result.EventAnalysisResultDTO"> |
|
|
<select id="getEventAnalysis" resultType="com.epmet.dto.result.EventAnalysisResultDTO"> |
|
|