|
|
@@ -86,11 +86,11 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
}).filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
//获取机构排名
|
|
|
List<EvolutionAgencyVO> agencyRanks = taskDao.findTotalPriceOfAgency(pageable).stream().map(rankInfo -> {
|
|
|
- Optional<EvaluationAgencyPO> agency = agencyDao.findById(rankInfo.getEntityId());
|
|
|
- if (agency.isPresent()) {
|
|
|
+ EvaluationAgencyPO agency = agencyDao.findByUserId(rankInfo.getEntityId());
|
|
|
+ if (agency!=null) {
|
|
|
EvolutionAgencyVO agencyVO = new EvolutionAgencyVO();
|
|
|
- agencyVO.setName(agency.get().getEvaluationAgencyName());
|
|
|
- agencyVO.setLogo(agency.get().getAgencyPhoto());
|
|
|
+ agencyVO.setName(agency.getEvaluationAgencyName());
|
|
|
+ agencyVO.setLogo(agency.getAgencyPhoto());
|
|
|
agencyVO.setAllTaskPrice(rankInfo.getTotalPrice());
|
|
|
return agencyVO;
|
|
|
}
|