diff --git a/zc-business/src/main/java/com/zc/business/controller/DcTrafficSurveyDataController.java b/zc-business/src/main/java/com/zc/business/controller/DcTrafficSurveyDataController.java index fbdec4a8..21b9c4b2 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcTrafficSurveyDataController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcTrafficSurveyDataController.java @@ -115,7 +115,7 @@ public class DcTrafficSurveyDataController extends BaseController cacheMap.put("endTime",endTime); cacheMap.put("count",3); //剩余请求次数 redisCache.setCacheMapValue(RedisKeyConstants.TRAFFIC_SURVEY_HOURS_DATA,dcDevice.getIotDeviceId()+startTime,cacheMap); - break; + continue; } } catch (Exception e){ e.printStackTrace(); @@ -127,12 +127,12 @@ public class DcTrafficSurveyDataController extends BaseController cacheMap.put("endTime",endTime); cacheMap.put("count",3); //剩余请求次数 redisCache.setCacheMapValue(RedisKeyConstants.TRAFFIC_SURVEY_HOURS_DATA,dcDevice.getIotDeviceId()+startTime,cacheMap); - break; + continue; } JSONArray dataArray = JSON.parseArray(data.toString()); if (dataArray == null || dataArray.size() < 1){ - break; + continue; } Integer hezeTotal = 0; Integer jinanTotal = 0; @@ -247,7 +247,7 @@ public class DcTrafficSurveyDataController extends BaseController value.put("count",count); redisCache.setCacheMapValue(RedisKeyConstants.TRAFFIC_SURVEY_HOURS_DATA,iotDeviceId+startTime,value); } - break; + continue; } } catch (Exception e){ e.printStackTrace(); @@ -258,12 +258,12 @@ public class DcTrafficSurveyDataController extends BaseController value.put("count",count); redisCache.setCacheMapValue(RedisKeyConstants.TRAFFIC_SURVEY_HOURS_DATA,iotDeviceId+startTime,value); } - break; + continue; } JSONArray dataArray = JSON.parseArray(data.toString()); if (dataArray == null || dataArray.size() < 1){ - break; + continue; } Integer hezeTotal = 0; Integer jinanTotal = 0;