| | |
| | | startTime = zeroTime; |
| | | endTime = nowTime; |
| | | } |
| | | List<GasConcentration> gasConcentrationList = gasConcentrationService.listDatabyTimeSlot(startTime,endTime); |
| | | List<GasConcentration> gasConcentrationList = gasConcentrationService.listDatabyTimeSlotAndPosition(startTime,endTime,reqDto.getPosition()); |
| | | if (CollectionUtils.isEmpty(gasConcentrationList)) |
| | | return success; |
| | | GasCategory gasCategory = gasCategoryService.findById(reqDto.getGasName()); |
| | |
| | | searchResult.setPageIndex(pageQuery.getPageIndex()); |
| | | searchResult.setPageSize(pageQuery.getPageSize()); |
| | | searchResult.setSuccess(); |
| | | Page<GasConcentration> pageResult = gasConcentrationService.listDatabyTimeSlotAndPage(pageQuery); |
| | | Page<GasConcentration> pageResult = gasConcentrationService.listDatabyTimeSlotAndPositionAndPage(pageQuery); |
| | | if (CollectionUtils.isEmpty(pageResult.getContent())) |
| | | return searchResult; |
| | | searchResult.setTotal(pageResult.getTotalElements()); |