bug处理
This commit is contained in:
@@ -1984,9 +1984,12 @@ public class ReportServiceImpl implements ReportService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Page<WaveTypeVO> getEventReport(WaveTypeParam deviceInfoParam) {
|
public Page<WaveTypeVO> getEventReport(WaveTypeParam deviceInfoParam) {
|
||||||
Page<WaveTypeVO> page = new Page<>();
|
Page<WaveTypeVO> page = new Page<>(deviceInfoParam.getPageNum(),deviceInfoParam.getPageSize());
|
||||||
List<GeneralDeviceDTO> generalDeviceDTOList = generalDeviceInfoClient.getPracticalAllDeviceInfo(deviceInfoParam).getData();
|
List<GeneralDeviceDTO> generalDeviceDTOList = generalDeviceInfoClient.getPracticalAllDeviceInfo(deviceInfoParam).getData();
|
||||||
List<String> lineIds = generalDeviceDTOList.stream().flatMap(dto -> dto.getLineIndexes().stream()).collect(Collectors.toList());
|
List<String> lineIds = generalDeviceDTOList.stream().flatMap(dto -> dto.getLineIndexes().stream()).collect(Collectors.toList());
|
||||||
|
if(CollUtil.isEmpty(lineIds)){
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
LineBaseQueryParam lineBaseQueryParam = new LineBaseQueryParam();
|
LineBaseQueryParam lineBaseQueryParam = new LineBaseQueryParam();
|
||||||
lineBaseQueryParam.setLineIds(lineIds);
|
lineBaseQueryParam.setLineIds(lineIds);
|
||||||
|
|||||||
Reference in New Issue
Block a user