dev
王家东 10 months ago
parent 80b6638368
commit 714c6b6915
  1. 10
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompServiceImpl.java
  2. 2
      jeecgboot-vue3-master/src/views/dashboard/Analysis/index1.vue

@ -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));
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());
List<AnnualCompetitionProjectRegistration> annualCompetitionProjectRegistrationList = annualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>().in(AnnualCompetitionProjectRegistration::getAnnualCompid, annualCompPointidsList));
resultMap.put("num02", annualCompetitionProjectRegistrationList.size());
}else {
resultMap.put("num02", 0);
}
//本年度参加比赛队伍数=============================结束====================

@ -209,7 +209,7 @@ export default {
name: "index1",
data() {
return {
urlList: "http://10.115.112.52:18082/jeecg-boot/admin/inde/inde",
urlList: "/jeecgboot/admin/inde/inde",
loading:false,
num01:'',//
num02:'',//

Loading…
Cancel
Save