Просмотр исходного кода

添加管网压力排名接口

lihui007 4 лет назад
Родитель
Сommit
c242ef096a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      sms_water/src/main/java/com/huaxu/service/impl/RankingServiceImpl.java

+ 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 ) {
             for (MonitorDataValueEntity monitorEntity:monitorList ) {
                 if (sceneDeviceDto.getAttributeId().equals(monitorEntity.getAttributeId())){
                 if (sceneDeviceDto.getAttributeId().equals(monitorEntity.getAttributeId())){
                     RankingDto rankingDto = new RankingDto();
                     RankingDto rankingDto = new RankingDto();
-                    rankingDto.setName(monitorEntity.getAttributeName());
+                    rankingDto.setName(sceneDeviceDto.getDeviceName());
                     rankingDto.setScore(monitorEntity.getDataValue());
                     rankingDto.setScore(monitorEntity.getDataValue());
                     result.add(rankingDto);
                     result.add(rankingDto);
                     break;
                     break;