|
@ -123,9 +123,18 @@ public class DcTrafficStatisticsServiceImpl |
|
|
LambdaQueryWrapper<DcTrafficSectionData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<DcTrafficSectionData> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
queryWrapper.between(DcTrafficSectionData::getStatisticalDate, request.getStartTime(), request.getEndTime()); |
|
|
queryWrapper.between(DcTrafficSectionData::getStatisticalDate, request.getStartTime(), request.getEndTime()); |
|
|
queryWrapper.eq(DcTrafficSectionData::getPeriodType, request.getPeriodType()); |
|
|
queryWrapper.eq(DcTrafficSectionData::getPeriodType, request.getPeriodType()); |
|
|
queryWrapper.eq(DcTrafficSectionData::getDirection, request.getDirection()); |
|
|
|
|
|
queryWrapper.eq(DcTrafficSectionData::getDeviceType, request.getDeviceType()); |
|
|
if (request.getDirection() != null) { |
|
|
queryWrapper.eq(DcTrafficSectionData::getDeviceId, request.getDeviceId()); |
|
|
queryWrapper.eq(DcTrafficSectionData::getDirection, request.getDirection()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (request.getDeviceType() != null) { |
|
|
|
|
|
queryWrapper.eq(DcTrafficSectionData::getDeviceType, request.getDeviceType()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (request.getDeviceId() != null) { |
|
|
|
|
|
queryWrapper.eq(DcTrafficSectionData::getDeviceId, request.getDeviceId()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return list(queryWrapper); |
|
|
return list(queryWrapper); |
|
|
} |
|
|
} |
|
|