Commit 1c05ff6dbfc939b77745d6e4dd19387bc74f1bfb
1 parent
9a3635de
提交代码
Showing
1 changed file
with
5 additions
and
3 deletions
src/main/java/com/zteits/irain/portal/web/parkinglotcloudplatform/datastatistic/IndexPageStatisticController.java
... | ... | @@ -446,12 +446,14 @@ public class IndexPageStatisticController extends BizController { |
446 | 446 | } |
447 | 447 | Double totalfreeRatio = 0.00; |
448 | 448 | for (ParkingLotUseStatisticDTO statisticDTO : pageBean.getDataList()) { |
449 | - totalfreeRatio += this.weightForFreeRation(statisticDTO.getStatisticBeginTime(), | |
450 | - statisticDTO.getFreeRatio(), statisticDTO.getPlNo()); | |
449 | + totalfreeRatio += statisticDTO.getFreeRatio(); | |
450 | + //暂时不加权 | |
451 | + //this.weightForFreeRation(statisticDTO.getStatisticBeginTime(), | |
452 | + //statisticDTO.getFreeRatio(), statisticDTO.getPlNo()); | |
451 | 453 | } |
452 | 454 | logger.info("加权后的空置率之和:" + totalfreeRatio + " 时间戳个数:" + pageBean.getDataList().size()); |
453 | 455 | Double avgFreeRation = totalfreeRatio / pageBean.getDataList().size(); |
454 | - String result = String.format("%.2f", avgFreeRation); | |
456 | + String result = String.format("%.2f", avgFreeRation*100); | |
455 | 457 | return new BizResultVO<String>().setData(result); |
456 | 458 | } |
457 | 459 | ... | ... |