| | |
| | | joiner.add(file.getFileUrl()); |
| | | } |
| | | }); |
| | | upWarnMsgAdptInfo.setPicUrl(joiner.toString()); |
| | | upWarnMsgAdptInfo.setPicUrl(joiner.length() > 0 ? joiner.toString() : ""); |
| | | } |
| | | upWarnMsgAdptInfoDao.save(upWarnMsgAdptInfo); |
| | | } |
| | |
| | | //海康威视直接走接口 |
| | | if(25439966 == inferiorPlatformId){ |
| | | try { |
| | | if(!StringUtils.hasLength(upWarnMsgAdptInfo.getPicUrl())){ |
| | | if(null == upWarnMsgAdptInfo.getPicUrl()){ |
| | | FindPicturesByAlarmIdRequest findPicturesByAlarmIdRequest = new FindPicturesByAlarmIdRequest(); |
| | | findPicturesByAlarmIdRequest.setAlarmId(upWarnMsgAdptInfo.getInfoId()); |
| | | long warnTime = upWarnMsgAdptInfo.getWarnTime(); |
| | |
| | | String url = jsonObject1.getString("url"); |
| | | joiner.add(url); |
| | | } |
| | | upWarnMsgAdptInfo.setPicUrl(joiner.toString()); |
| | | upWarnMsgAdptInfo.setPicUrl(joiner.length() > 0 ? joiner.toString() : ""); |
| | | upWarnMsgAdptInfoDao.save(upWarnMsgAdptInfo); |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | //请求报警附件(川标协议) |
| | | if(enterprise.contains(inferiorPlatformId) && !StringUtils.hasLength(upWarnMsgAdptInfo.getPicUrl())){ |
| | | if(enterprise.contains(inferiorPlatformId) && null == upWarnMsgAdptInfo.getPicUrl()){ |
| | | DOWNWarnMsgFileListReq downWarnMsgFileListReq = new DOWNWarnMsgFileListReq(); |
| | | downWarnMsgFileListReq.setVehicleNo(upWarnMsgAdptInfo.getVehicleNo()); |
| | | downWarnMsgFileListReq.setVehicleColor(upWarnMsgAdptInfo.getVehicleColor()); |
| | |
| | | } |
| | | upWarnMsgAdptInfo.setPicUrl(joiner.toString()); |
| | | } |
| | | }else{ |
| | | upWarnMsgAdptInfo.setPicUrl(""); |
| | | } |
| | | upWarnMsgAdptInfoDao.save(upWarnMsgAdptInfo); |
| | | |