1.使用并行流填充数据
This commit is contained in:
2024-11-19 15:44:59 +08:00
parent f67f76ffeb
commit 0e952c734b

View File

@@ -73,7 +73,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM
query.setIsStaff(false);
}
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;
}