| | |
| | | } |
| | | upWarnMsgAdptInfo.setInfoId(data.getAlarmId()); |
| | | upWarnMsgAdptInfo.setLevel(getLevel(data.getLevel())); |
| | | if(null != data.getLatitude()){ |
| | | upWarnMsgAdptInfo.setLongitude(data.getLatitude().intValue() * 10); |
| | | } |
| | | if(null != data.getLongitude()){ |
| | | upWarnMsgAdptInfo.setLatitude(data.getLongitude().intValue()); |
| | | // if(null != data.getLatitude()){ |
| | | // upWarnMsgAdptInfo.setLongitude(data.getLatitude().intValue() * 10); |
| | | // } |
| | | // if(null != data.getLongitude()){ |
| | | // upWarnMsgAdptInfo.setLatitude(data.getLongitude().intValue()); |
| | | // } |
| | | //调用获取实时定位数据 |
| | | UPExgMsgRealLocation upExgMsgRealLocation = upExgMsgRealLocationDao.findByVehicleNoOrderByCreateTimeDesc(upWarnMsgAdptInfo.getVehicleNo()); |
| | | if (null != upExgMsgRealLocation) { |
| | | GnssData gnssData = upExgMsgRealLocation.getGnssData(); |
| | | upWarnMsgAdptInfo.setSpeed(gnssData.getVec1()); |
| | | upWarnMsgAdptInfo.setLongitude(gnssData.getLon()); |
| | | upWarnMsgAdptInfo.setLatitude(gnssData.getLat()); |
| | | }else{ |
| | | return; |
| | | } |
| | | if(null != data.getHeight()){ |
| | | upWarnMsgAdptInfo.setAltitude(data.getHeight().intValue() / 10); |