parent
2de126b7c5
commit
6e05714e46
|
@ -223,6 +223,7 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager {
|
||||||
@Override
|
@Override
|
||||||
public MulReturnType<PageInfo<DisposeDevice>, List<DisposeDevice>> getPagesOfDevices(Integer startPage,
|
public MulReturnType<PageInfo<DisposeDevice>, List<DisposeDevice>> getPagesOfDevices(Integer startPage,
|
||||||
Integer pageSize) {
|
Integer pageSize) {
|
||||||
|
List<DisposeDevice> rspList = new ArrayList<>();
|
||||||
// 设置分页信息
|
// 设置分页信息
|
||||||
PageHelper.startPage(startPage, pageSize);
|
PageHelper.startPage(startPage, pageSize);
|
||||||
|
|
||||||
|
@ -236,9 +237,11 @@ public class DisposeDeviceManagerImpl implements DisposeDeviceManager {
|
||||||
// 获取分页信息
|
// 获取分页信息
|
||||||
PageInfo<DisposeDevice> pageInfo = new PageInfo<>(devList);
|
PageInfo<DisposeDevice> pageInfo = new PageInfo<>(devList);
|
||||||
|
|
||||||
// 返回实际数据
|
if(devList.size() > 0) {
|
||||||
List<Long> idArray = devList.stream().map(DisposeDevice::getId).collect(Collectors.toList());
|
// 返回实际数据
|
||||||
List<DisposeDevice> rspList = disposeDeviceMapper.selectByIdSet(idArray);
|
List<Long> idArray = devList.stream().map(DisposeDevice::getId).collect(Collectors.toList());
|
||||||
|
rspList.addAll(disposeDeviceMapper.selectByIdSet(idArray));
|
||||||
|
}
|
||||||
|
|
||||||
return new MulReturnType<>(pageInfo, rspList);
|
return new MulReturnType<>(pageInfo, rspList);
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,6 +119,7 @@ public class DisposeTaskManagerImpl implements DisposeTaskManager {
|
||||||
@Override
|
@Override
|
||||||
public MulReturnType<PageInfo<DisposeTask>, List<DisposeTask>> getPagesOfTask(Integer startPage,
|
public MulReturnType<PageInfo<DisposeTask>, List<DisposeTask>> getPagesOfTask(Integer startPage,
|
||||||
Integer pageSize) {
|
Integer pageSize) {
|
||||||
|
List<DisposeTask> rspList = new ArrayList<>();
|
||||||
// 设置分页信息
|
// 设置分页信息
|
||||||
PageHelper.startPage(startPage, pageSize);
|
PageHelper.startPage(startPage, pageSize);
|
||||||
List<DisposeTask> taskList = disposeTaskMapper.selectAll();
|
List<DisposeTask> taskList = disposeTaskMapper.selectAll();
|
||||||
|
@ -129,8 +130,10 @@ public class DisposeTaskManagerImpl implements DisposeTaskManager {
|
||||||
|
|
||||||
PageInfo<DisposeTask> pageInfo = new PageInfo<>(taskList);
|
PageInfo<DisposeTask> pageInfo = new PageInfo<>(taskList);
|
||||||
|
|
||||||
List<Long> idArray = taskList.stream().map(DisposeTask::getId).collect(Collectors.toList());
|
if(taskList.size() > 0) {
|
||||||
List<DisposeTask> rspList = disposeTaskMapper.selectByIdSet(idArray);
|
List<Long> idArray = taskList.stream().map(DisposeTask::getId).collect(Collectors.toList());
|
||||||
|
rspList.addAll(disposeTaskMapper.selectByIdSet(idArray));
|
||||||
|
}
|
||||||
|
|
||||||
return new MulReturnType<>(pageInfo, rspList);
|
return new MulReturnType<>(pageInfo, rspList);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue