1.使用并行流填充数据
master
陈江保 3 months ago
parent f67f76ffeb
commit 0e952c734b
  1. 2
      src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java

@ -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;
} }

Loading…
Cancel
Save