Commit ccdf94f2 authored by zhangsen's avatar zhangsen

问题修改

parent e5cde6e9
...@@ -616,13 +616,13 @@ public class BigScreenAnalyseController extends BaseController { ...@@ -616,13 +616,13 @@ public class BigScreenAnalyseController extends BaseController {
if (100.0 == equipmentHealthScore) { if (100.0 == equipmentHealthScore) {
item.put("warningName", "安全"); item.put("warningName", "安全");
} else { } else {
LambdaQueryWrapper<IdxBizFanHealthLevel> query = new LambdaQueryWrapper<>(); LambdaQueryWrapper<IdxBizPvHealthLevel> query = new LambdaQueryWrapper<>();
query.eq(IdxBizFanHealthLevel::getAnalysisObjType, "设备"); query.eq(IdxBizPvHealthLevel::getAnalysisObjType, "设备");
query.eq(IdxBizFanHealthLevel::getStatus, stationBasic.getStationName()); query.eq(IdxBizPvHealthLevel::getStatus, item.get("station").toString());
query.lt(IdxBizFanHealthLevel::getGroupLowerLimit, equipmentHealthScore); query.lt(IdxBizPvHealthLevel::getGroupLowerLimit, equipmentHealthScore);
query.ge(IdxBizFanHealthLevel::getGroupUpperLimit, equipmentHealthScore); query.ge(IdxBizPvHealthLevel::getGroupUpperLimit, equipmentHealthScore);
IdxBizFanHealthLevel idxBizFanHealthLevel = idxBizFanHealthLevelMapper.selectOne(query); IdxBizPvHealthLevel idxBizPvHealthLevel = idxBizPvHealthLevelMapper.selectOne(query);
item.put("warningName", idxBizFanHealthLevel.getHealthLevel()); item.put("warningName", idxBizPvHealthLevel.getHealthLevel());
} }
item.put("healthIndex", equipmentHealthScore); item.put("healthIndex", equipmentHealthScore);
}); });
......
...@@ -621,7 +621,8 @@ ...@@ -621,7 +621,8 @@
<select id="getPvPointNameListBySumSystem" resultType="java.util.Map"> <select id="getPvPointNameListBySumSystem" resultType="java.util.Map">
SELECT SELECT
POINT_NAME as pointName, POINT_NAME as pointName,
INDEX_ADDRESS as indexAddress INDEX_ADDRESS as indexAddress,
STATION AS station
FROM FROM
idx_biz_pv_point_process_variable_classification idx_biz_pv_point_process_variable_classification
<where> <where>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
AND a.recDate >= concat(#{startDate}, ' 00:00:00') AND a.recDate >= concat(#{startDate}, ' 00:00:00')
</if> </if>
<if test="endDate != '' and endDate != null"> <if test="endDate != '' and endDate != null">
AND concat(#{startDate}, ' 23:59:59') >= a.recDate AND concat(#{endDate}, ' 23:59:59') >= a.recDate
</if> </if>
</where> </where>
order by warningName DESC, recDate DESC order by warningName DESC, recDate DESC
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
AND a.recDate >= concat(#{startDate}, ' 00:00:00') AND a.recDate >= concat(#{startDate}, ' 00:00:00')
</if> </if>
<if test="endDate != '' and endDate != null"> <if test="endDate != '' and endDate != null">
AND concat(#{startDate}, ' 23:59:59') >= a.recDate AND concat(#{endDate}, ' 23:59:59') >= a.recDate
</if> </if>
</where>) b </where>) b
</select> </select>
......
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