Commit 462025f3 by 杨林龙

开发1.13.0版本 解决轨迹回放 基站数超过2000无法导出的问题

1 parent 7fc24dc4
...@@ -271,8 +271,7 @@ public class HdaoGpsComponent { ...@@ -271,8 +271,7 @@ public class HdaoGpsComponent {
return resultAddress; return resultAddress;
} }
if (poiSearchHolder.value == null if (poiSearchHolder.value == null || StringUtils.isEmpty(poiSearchHolder.value)) {
|| StringUtils.isEmpty(poiSearchHolder.value)) {
return resultAddress; return resultAddress;
} }
resultAddress = poiSearchHolder.value; resultAddress = poiSearchHolder.value;
...@@ -401,9 +400,7 @@ public class HdaoGpsComponent { ...@@ -401,9 +400,7 @@ public class HdaoGpsComponent {
*/ */
public DataGpsLocation getDeviceLastGpsInfoFull(String sn, DeviceTypeRelationEnum deviceTypeRelationEnum) { public DataGpsLocation getDeviceLastGpsInfoFull(String sn, DeviceTypeRelationEnum deviceTypeRelationEnum) {
DataGpsLocation dataGpsLocation = getDeviceLastGpsInfo(sn, deviceTypeRelationEnum); DataGpsLocation dataGpsLocation = getDeviceLastGpsInfo(sn, deviceTypeRelationEnum);
if (dataGpsLocation == null if (dataGpsLocation == null || StringUtils.isEmpty(dataGpsLocation.getLng()) || StringUtils.isEmpty(dataGpsLocation.getLat())) {
|| StringUtils.isEmpty(dataGpsLocation.getLng())
|| StringUtils.isEmpty(dataGpsLocation.getLat())) {
return dataGpsLocation; return dataGpsLocation;
} }
...@@ -530,9 +527,9 @@ public class HdaoGpsComponent { ...@@ -530,9 +527,9 @@ public class HdaoGpsComponent {
Integer maxSize = Integer.parseInt(replaySizeStr); Integer maxSize = Integer.parseInt(replaySizeStr);
boolean loopFlag = true; boolean loopFlag = true;
int loopSize = 1; int loopSize = 1;
do {
Date fromDate = DateFormatUtil.toDate(startTime, DateFormatUtil.pattern01); Date fromDate = DateFormatUtil.toDate(startTime, DateFormatUtil.pattern01);
Date endDate = DateFormatUtil.toDate(endTime, DateFormatUtil.pattern01); Date endDate = DateFormatUtil.toDate(endTime, DateFormatUtil.pattern01);
do {
List<BaseStationModel> stationlList = getBaseStationPointScop(sn, dataDeviceType, fromDate, endDate); List<BaseStationModel> stationlList = getBaseStationPointScop(sn, dataDeviceType, fromDate, endDate);
if (stationlList.size() < iceProperties.getLocationHistoryCount().intValue()) { if (stationlList.size() < iceProperties.getLocationHistoryCount().intValue()) {
loopFlag = false; loopFlag = false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!