|
|
|
@ -58,10 +58,14 @@ public class AnnconalCompServiceImpl implements AnnconalCompService{ |
|
|
|
|
|
|
|
|
|
//本年度参加比赛队伍数=============================开始====================
|
|
|
|
|
List<String> annualCompidsList = annualCompList.stream().map(AnnualComp::getId).collect(Collectors.toList()); |
|
|
|
|
List<AnnualCompPoint> annualCompPointList =annualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>().in(AnnualCompPoint::getAnnualCompId,annualCompidsList)); |
|
|
|
|
List<String> annualCompPointidsList = annualCompPointList.stream().map(AnnualCompPoint::getId).collect(Collectors.toList()); |
|
|
|
|
List<AnnualCompetitionProjectRegistration> annualCompetitionProjectRegistrationList = annualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>().in(AnnualCompetitionProjectRegistration::getAnnualCompid,annualCompPointidsList)); |
|
|
|
|
resultMap.put("num02",annualCompetitionProjectRegistrationList.size()); |
|
|
|
|
if(!annualCompidsList.isEmpty()) { |
|
|
|
|
List<AnnualCompPoint> annualCompPointList = annualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>().in(AnnualCompPoint::getAnnualCompId, annualCompidsList)); |
|
|
|
|
List<String> annualCompPointidsList = annualCompPointList.stream().map(AnnualCompPoint::getId).collect(Collectors.toList()); |
|
|
|
|
List<AnnualCompetitionProjectRegistration> annualCompetitionProjectRegistrationList = annualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>().in(AnnualCompetitionProjectRegistration::getAnnualCompid, annualCompPointidsList)); |
|
|
|
|
resultMap.put("num02", annualCompetitionProjectRegistrationList.size()); |
|
|
|
|
}else { |
|
|
|
|
resultMap.put("num02", 0); |
|
|
|
|
} |
|
|
|
|
//本年度参加比赛队伍数=============================结束====================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|