|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void setAllLedDefualtContent() { | 
|---|
|  |  |  | public void allLedDefualtContent() { | 
|---|
|  |  |  | log.error( "屏幕内容设置=======================开始========" ); | 
|---|
|  |  |  | int speed = 13; | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | speed = Integer.parseInt(systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.LED_CONTENT_SPEED).getCode()); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //所有月台关联设备信息 | 
|---|
|  |  |  | List<PlatformDevice> list =  platformDeviceMapper.selectList(new MPJLambdaWrapper<PlatformDevice>(). | 
|---|
|  |  |  | selectAll(PlatformDevice.class) | 
|---|
|  |  |  | selectAll(PlatformDevice.class) | 
|---|
|  |  |  | .selectAs(Platform::getLedContent,PlatformDevice::getLedContent) | 
|---|
|  |  |  | .leftJoin(Platform.class,Platform::getId,PlatformDevice::getPlatformId) | 
|---|
|  |  |  | .eq(PlatformDevice::getType,Constants.ZERO) | 
|---|
|  |  |  | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | for(PlatformDevice device :list){ | 
|---|
|  |  |  | String content = device.getLedContent(); | 
|---|
|  |  |  | if(StringUtils.isBlank(content)){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | String content = device.getLedContent(); | 
|---|
|  |  |  | if(StringUtils.isBlank(content)){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | PlatformBroadcastLog log1  =  HkSyncPushServiceImpl.dealLedContentBiz(0,device.getHkNo(),device.getName(),content,speed,1); | 
|---|
|  |  |  | platformBroadcastLogMapper.insert(log1); | 
|---|
|  |  |  | if(log1.getHkStatus() == null || !Constants.equalsInteger(log1.getHkStatus(), Constants.TWO)){ | 
|---|
|  |  |  | log.error( "对不起,屏幕内容设置失败"+(log1!=null?log1.getHkInfo():"")); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | log.error( "对不起,屏幕内容设置异常"+ device.getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | PlatformBroadcastLog log1  =  HkSyncPushServiceImpl.dealLedContentBiz(device.getPlatformId(),device.getHkNo(),device.getName(),content,speed,1); | 
|---|
|  |  |  | platformBroadcastLogMapper.insert(log1); | 
|---|
|  |  |  | if(log1.getHkStatus() == null || !Constants.equalsInteger(log1.getHkStatus(), Constants.TWO)){ | 
|---|
|  |  |  | log.error( "对不起,屏幕内容设置失败"+(log1!=null?log1.getHkInfo():"")); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | log.error( "屏幕内容设置=======================结束========" ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|