【数据资产】
1、for循环查询
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -586,8 +586,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -586,8 +586,9 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
586 | if(CollectionUtils.isNotEmpty(pageList.getRecords())){ | 586 | if(CollectionUtils.isNotEmpty(pageList.getRecords())){ |
587 | List<String> guids = pageList.getRecords().stream().map(MfDemand::getProcessCompanyGuid).collect(Collectors.toList()); | 587 | List<String> guids = pageList.getRecords().stream().map(MfDemand::getProcessCompanyGuid).collect(Collectors.toList()); |
588 | List<DemandRSVO> results = new ArrayList<>(); | 588 | List<DemandRSVO> results = new ArrayList<>(); |
589 | Map<String, DemandUpdateStateVO> stateMap = getStateMap(guids); | ||
589 | for (MfDemand item : pageList.getRecords()){ | 590 | for (MfDemand item : pageList.getRecords()){ |
590 | DemandRSVO vo = convertToVO(item,getStateMap(guids)); | 591 | DemandRSVO vo = convertToVO(item, stateMap); |
591 | results.add(vo); | 592 | results.add(vo); |
592 | } | 593 | } |
593 | rsPageList.setRecords(results); | 594 | rsPageList.setRecords(results); | ... | ... |
-
Please register or sign in to post a comment