Kaynağa Gözat

逃生疏散喇叭调整

zhuchangxue 3 yıl önce
ebeveyn
işleme
e50048d30e

+ 4 - 2
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/service/impl/LabExitLineServiceImpl.java

@@ -511,10 +511,11 @@ public class LabExitLineServiceImpl implements ILabExitLineService
                     R deviceList = remoteSpeakService.getDeviceList(1,10, 5L);
                     if(deviceList.getCode()==200){
                         List<Map<String,Object>> mapList = (List <Map <String, Object>>) deviceList.getData();
-                        List<PlayVo> playVoList = new ArrayList<>();
+
                         for(Map<String,Object> map:mapList){
                             logger.info("喇叭日志============================="+map);
                             if(com.zd.common.core.utils.StringUtils.isNotNull(map.get("deviceSn")) && com.zd.common.core.utils.StringUtils.isNotNull(map.get("port"))){
+                                List<PlayVo> playVoList = new ArrayList<>();
                                 PlayVo playVo = new PlayVo();
                                 playVo.setSn(map.get("deviceSn")+"");
                                 playVo.setDeviceIp(map.get("deviceIp")+"");
@@ -522,9 +523,10 @@ public class LabExitLineServiceImpl implements ILabExitLineService
                                 ParamVo paramVo=new ParamVo();
                                 playVo.setParams(paramVo);
                                 playVoList.add(playVo);
+                                remoteSpeakService.textParseUrlAppIps(audioSyntheses.getNewMusicUrl(),playVoList);
                             }
                         }
-                        remoteSpeakService.textParseUrlAppIps(audioSyntheses.getNewMusicUrl(),playVoList);
+
                     }
                 }
             }catch (Exception e){