Commit 2d5aaac5b7962fa0339fd59a96aef79e9b576948
1 parent
3afbc385
tijiao
Showing
3 changed files
with
4 additions
and
4 deletions
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/BerthsStatisticController.java
| @@ -237,7 +237,7 @@ public class BerthsStatisticController extends BizController { | @@ -237,7 +237,7 @@ public class BerthsStatisticController extends BizController { | ||
| 237 | // 1个小时为一个时间戳 | 237 | // 1个小时为一个时间戳 |
| 238 | request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); | 238 | request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); |
| 239 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); | 239 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); |
| 240 | - for (int j = 0; j <= totaltimestampCount; j++) { | 240 | + for (int j = 0; j <= totaltimestampCount+1; j++) { |
| 241 | String hour = String.format("%02d", (j)); | 241 | String hour = String.format("%02d", (j)); |
| 242 | xAxisData.add(hour+":00"); | 242 | xAxisData.add(hour+":00"); |
| 243 | } | 243 | } |
| @@ -321,7 +321,7 @@ public class BerthsStatisticController extends BizController { | @@ -321,7 +321,7 @@ public class BerthsStatisticController extends BizController { | ||
| 321 | // 1个小时为一个时间戳 | 321 | // 1个小时为一个时间戳 |
| 322 | request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); | 322 | request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); |
| 323 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); | 323 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); |
| 324 | - for (int j = 0; j <= totaltimestampCount; j++) { | 324 | + for (int j = 0; j <= totaltimestampCount+1; j++) { |
| 325 | String hour = String.format("%02d", (j)); | 325 | String hour = String.format("%02d", (j)); |
| 326 | xAxisData.add(hour+":00"); | 326 | xAxisData.add(hour+":00"); |
| 327 | } | 327 | } |
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/InOutParkStatisticController.java
| @@ -126,7 +126,7 @@ public class InOutParkStatisticController extends BizController { | @@ -126,7 +126,7 @@ public class InOutParkStatisticController extends BizController { | ||
| 126 | // 1个小时为一个时间戳 | 126 | // 1个小时为一个时间戳 |
| 127 | UseStatisticRequest.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); | 127 | UseStatisticRequest.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); |
| 128 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); | 128 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); |
| 129 | - for (int j = 0; j <= totaltimestampCount; j++) { | 129 | + for (int j = 0; j <= totaltimestampCount+1; j++) { |
| 130 | String hour = String.format("%02d", (j)); | 130 | String hour = String.format("%02d", (j)); |
| 131 | xAxisData.add(hour + ":00"); | 131 | xAxisData.add(hour + ":00"); |
| 132 | } | 132 | } |
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/VehicleFlowStatisticController.java
| @@ -246,7 +246,7 @@ public class VehicleFlowStatisticController extends BizController { | @@ -246,7 +246,7 @@ public class VehicleFlowStatisticController extends BizController { | ||
| 246 | request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); | 246 | request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR); |
| 247 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); | 247 | int totaltimestampCount = endTime.get(Calendar.HOUR_OF_DAY); |
| 248 | 248 | ||
| 249 | - for (int j = 0; j <= totaltimestampCount; j++) { | 249 | + for (int j = 0; j <= totaltimestampCount+1; j++) { |
| 250 | String hour = String.format("%02d", (j)); | 250 | String hour = String.format("%02d", (j)); |
| 251 | xAxisData.add(hour+":00"); | 251 | xAxisData.add(hour+":00"); |
| 252 | } | 252 | } |