|
@ -280,7 +280,7 @@ public class DcTrafficSurveyDataServiceImpl implements IDcTrafficSurveyDataServi |
|
|
|
|
|
|
|
|
if (dcTrafficSurveyDataQueryParams.getDataType().equals("1")){ |
|
|
if (dcTrafficSurveyDataQueryParams.getDataType().equals("1")){ |
|
|
//车流量
|
|
|
//车流量
|
|
|
List<DcTrafficVolumeData> dcTrafficVolumeData = dcTrafficSurveyDataMapper.selectTrafficVolume(dcTrafficSurveyDataQueryParams); |
|
|
List<DcTrafficVolumeData> dcTrafficVolumeData = dcTrafficSurveyDataMapper.selectTrafficVolume(dcTrafficSurveyDataQueryParams); |
|
|
if (dcTrafficVolumeData.size() > 0){ |
|
|
if (dcTrafficVolumeData.size() > 0){ |
|
|
|
|
|
|
|
|
//判断是否区分方向
|
|
|
//判断是否区分方向
|
|
@ -318,6 +318,7 @@ public class DcTrafficSurveyDataServiceImpl implements IDcTrafficSurveyDataServi |
|
|
dcTrafficVolumeDirectionData.setTrafficVolumeJN(trafficVolumeData.getTrafficVolume()); |
|
|
dcTrafficVolumeDirectionData.setTrafficVolumeJN(trafficVolumeData.getTrafficVolume()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
dcTrafficVolumeDirectionData.setAllTrafficVolume(dcTrafficVolumeDirectionData.getTrafficVolumeHZ()+dcTrafficVolumeDirectionData.getTrafficVolumeJN()); |
|
|
|
|
|
|
|
|
result.add(dcTrafficVolumeDirectionData); |
|
|
result.add(dcTrafficVolumeDirectionData); |
|
|
} |
|
|
} |
|
@ -346,6 +347,7 @@ public class DcTrafficSurveyDataServiceImpl implements IDcTrafficSurveyDataServi |
|
|
naturalTotal.setTractorTrafficVolumeJN(naturalTotal.getTractorTrafficVolumeJN() + dcTrafficVolumeDirectionDatum.getTractorTrafficVolumeJN()); |
|
|
naturalTotal.setTractorTrafficVolumeJN(naturalTotal.getTractorTrafficVolumeJN() + dcTrafficVolumeDirectionDatum.getTractorTrafficVolumeJN()); |
|
|
naturalTotal.setTrafficVolumeHZ(naturalTotal.getTrafficVolumeHZ() + dcTrafficVolumeDirectionDatum.getTrafficVolumeHZ()); |
|
|
naturalTotal.setTrafficVolumeHZ(naturalTotal.getTrafficVolumeHZ() + dcTrafficVolumeDirectionDatum.getTrafficVolumeHZ()); |
|
|
naturalTotal.setTrafficVolumeJN(naturalTotal.getTrafficVolumeJN() + dcTrafficVolumeDirectionDatum.getTrafficVolumeJN()); |
|
|
naturalTotal.setTrafficVolumeJN(naturalTotal.getTrafficVolumeJN() + dcTrafficVolumeDirectionDatum.getTrafficVolumeJN()); |
|
|
|
|
|
naturalTotal.setAllTrafficVolume(naturalTotal.getTrafficVolumeJN() + naturalTotal.getTrafficVolumeHZ()); |
|
|
} |
|
|
} |
|
|
//折算值
|
|
|
//折算值
|
|
|
DcTrafficVolumeDirectionData conversionValue = new DcTrafficVolumeDirectionData(0); |
|
|
DcTrafficVolumeDirectionData conversionValue = new DcTrafficVolumeDirectionData(0); |
|
@ -382,6 +384,7 @@ public class DcTrafficSurveyDataServiceImpl implements IDcTrafficSurveyDataServi |
|
|
conversionValue.getContainerTruckTrafficVolumeJN() + conversionValue.getMotorcycleTrafficVolumeJN() + |
|
|
conversionValue.getContainerTruckTrafficVolumeJN() + conversionValue.getMotorcycleTrafficVolumeJN() + |
|
|
conversionValue.getTractorTrafficVolumeJN(); |
|
|
conversionValue.getTractorTrafficVolumeJN(); |
|
|
conversionValue.setTrafficVolumeJN(trafficVolumeJN); |
|
|
conversionValue.setTrafficVolumeJN(trafficVolumeJN); |
|
|
|
|
|
conversionValue.setAllTrafficVolume(trafficVolumeHZ + trafficVolumeJN); |
|
|
|
|
|
|
|
|
//自然平均值
|
|
|
//自然平均值
|
|
|
DcTrafficVolumeDirectionData naturalAvg = new DcTrafficVolumeDirectionData(0); |
|
|
DcTrafficVolumeDirectionData naturalAvg = new DcTrafficVolumeDirectionData(0); |
|
@ -416,6 +419,7 @@ public class DcTrafficSurveyDataServiceImpl implements IDcTrafficSurveyDataServi |
|
|
naturalAvg.getContainerTruckTrafficVolumeJN() + naturalAvg.getMotorcycleTrafficVolumeJN() + |
|
|
naturalAvg.getContainerTruckTrafficVolumeJN() + naturalAvg.getMotorcycleTrafficVolumeJN() + |
|
|
naturalAvg.getTractorTrafficVolumeJN(); |
|
|
naturalAvg.getTractorTrafficVolumeJN(); |
|
|
naturalAvg.setTrafficVolumeJN(naturalAvgTrafficVolumeJN); |
|
|
naturalAvg.setTrafficVolumeJN(naturalAvgTrafficVolumeJN); |
|
|
|
|
|
naturalAvg.setAllTrafficVolume(naturalAvgTrafficVolumeHZ + naturalAvgTrafficVolumeJN); |
|
|
|
|
|
|
|
|
result = result.stream().sorted(Comparator.comparing(DcTrafficVolumeDirectionData::getTime)).collect(Collectors.toList()); |
|
|
result = result.stream().sorted(Comparator.comparing(DcTrafficVolumeDirectionData::getTime)).collect(Collectors.toList()); |
|
|
result.add(naturalTotal); |
|
|
result.add(naturalTotal); |
|
|