From 1a5f70e7b1348fcb6d2e4e4a72354332b0e973bb Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Tue, 7 Jan 2025 09:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E7=B1=BB=E4=BA=A4=E8=B0=83=E5=B0=8F?= =?UTF-8?q?=E6=97=B6=E6=95=B0=E6=8D=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DcTrafficSurveyDataController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;