终端异常统计优化
This commit is contained in:
@@ -71,6 +71,10 @@ public class TopMsgPO extends BaseEntity {
|
||||
*/
|
||||
private float flowValue;
|
||||
|
||||
private Integer onlineRateFlag;
|
||||
|
||||
private float onlineRateValue;
|
||||
|
||||
/**
|
||||
* 状态 0.删除 1.正常
|
||||
*/
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
ptm.Comout_Desc AS comOutDesc,
|
||||
ptm.Alarm_Count AS alarmCount,
|
||||
ptm.Alarm_Desc AS alarmDesc,
|
||||
ptm.Flow_Value AS flowValue
|
||||
ptm.Flow_Value AS flowValue,
|
||||
ptm.OnlineRate_Value AS onlineRateValue
|
||||
FROM pq_line line
|
||||
INNER JOIN pq_line vol ON line.pid=vol.id
|
||||
INNER JOIN pq_line device ON vol.pid=device.id
|
||||
|
||||
@@ -75,8 +75,9 @@
|
||||
</select>
|
||||
|
||||
<select id="getFlowByDevice" resultType="com.njcn.prepare.harmonic.pojo.mysql.po.line.AlarmPO">
|
||||
SELECT t.*,
|
||||
(t.actualValue)/(t.flowMeal) flowProportion
|
||||
SELECT
|
||||
t.*,
|
||||
CONVERT((t.actualValue)/(t.flowMeal)*100,DECIMAL(15,2)) flowProportion
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user