Переглянути джерело

添加管网压力排名接口

lihui007 4 роки тому
батько
коміт
c242ef096a

+ 1 - 1
sms_water/src/main/java/com/huaxu/service/impl/RankingServiceImpl.java

@@ -63,7 +63,7 @@ public class RankingServiceImpl implements RankingService {
             for (MonitorDataValueEntity monitorEntity:monitorList ) {
                 if (sceneDeviceDto.getAttributeId().equals(monitorEntity.getAttributeId())){
                     RankingDto rankingDto = new RankingDto();
-                    rankingDto.setName(monitorEntity.getAttributeName());
+                    rankingDto.setName(sceneDeviceDto.getDeviceName());
                     rankingDto.setScore(monitorEntity.getDataValue());
                     result.add(rankingDto);
                     break;