Commit 2d5aaac5b7962fa0339fd59a96aef79e9b576948

Authored by llw
1 parent 3afbc385

tijiao

src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/BerthsStatisticController.java
... ... @@ -237,7 +237,7 @@ public class BerthsStatisticController extends BizController {
237 237 // 1个小时为一个时间戳
238 238 request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR);
239 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 241 String hour = String.format("%02d", (j));
242 242 xAxisData.add(hour+":00");
243 243 }
... ... @@ -321,7 +321,7 @@ public class BerthsStatisticController extends BizController {
321 321 // 1个小时为一个时间戳
322 322 request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR);
323 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 325 String hour = String.format("%02d", (j));
326 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 126 // 1个小时为一个时间戳
127 127 UseStatisticRequest.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR);
128 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 130 String hour = String.format("%02d", (j));
131 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 246 request.setQueryKind(ParkConstant.ParkingLotUseStatistic.StatisticType.PER1HOUR);
247 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 250 String hour = String.format("%02d", (j));
251 251 xAxisData.add(hour+":00");
252 252 }
... ...