更新
1.使用并行流填充数据
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM
|
|||||||
query.setIsStaff(false);
|
query.setIsStaff(false);
|
||||||
}
|
}
|
||||||
IPage<EntrustAlterApplyVO> entrustAlterApplyVOPage = baseMapper.getEntrustAlterApplyVOPage(new Page<>(query.getCurrent(), query.getSize()), query);
|
IPage<EntrustAlterApplyVO> entrustAlterApplyVOPage = baseMapper.getEntrustAlterApplyVOPage(new Page<>(query.getCurrent(), query.getSize()), query);
|
||||||
entrustAlterApplyVOPage.getRecords().forEach(this::fillVOInfo);
|
entrustAlterApplyVOPage.getRecords().parallelStream().forEach(this::fillVOInfo);
|
||||||
return entrustAlterApplyVOPage;
|
return entrustAlterApplyVOPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user