|
|
@ -63,11 +63,9 @@ public class LatestLocationAppController { |
|
|
|
if (CommonConstant.AUDIT_STATUS_ONE.equals(onlineStatus)){ |
|
|
|
if (CommonConstant.AUDIT_STATUS_ONE.equals(onlineStatus)){ |
|
|
|
String deviceModelId = deviceInfo.getDeviceModelId(); |
|
|
|
String deviceModelId = deviceInfo.getDeviceModelId(); |
|
|
|
String hasKey="local:limitCount"+":"+deviceModelId; |
|
|
|
String hasKey="local:limitCount"+":"+deviceModelId; |
|
|
|
int limitCount=500; |
|
|
|
// int limitCount=5;
|
|
|
|
if (redisService.hasKey(hasKey)){ |
|
|
|
if (redisService.hasKey(hasKey)){ |
|
|
|
limitCount=redisService.getCacheObject(hasKey); |
|
|
|
int limitCount=redisService.getCacheObject(hasKey); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Long count =(Long) redisService.redisTemplate.execute(localLimitScript, Arrays.asList(imei),limitCount,getStartTimeStamp()); |
|
|
|
Long count =(Long) redisService.redisTemplate.execute(localLimitScript, Arrays.asList(imei),limitCount,getStartTimeStamp()); |
|
|
|
System.out.println("定位次数===:"+count); |
|
|
|
System.out.println("定位次数===:"+count); |
|
|
|
if (count<=0){ |
|
|
|
if (count<=0){ |
|
|
@ -76,6 +74,8 @@ public class LatestLocationAppController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return AjaxResult.success(latestLocationAppService.getLastLocationInstructions(imei,onlineStatus)); |
|
|
|
return AjaxResult.success(latestLocationAppService.getLastLocationInstructions(imei,onlineStatus)); |
|
|
|
} |
|
|
|
} |
|
|
|
@ApiOperation(value ="获取设备最新位置信息") |
|
|
|
@ApiOperation(value ="获取设备最新位置信息") |
|
|
|