|
|
|
@ -9,23 +9,27 @@ import org.jeecg.modules.demo.abilityEvaluation.service.IPersonalAbilityEvaluati |
|
|
|
|
import org.jeecg.modules.demo.abilityEvaluation.service.IPersonalAbilityEvaluationService; |
|
|
|
|
import org.jeecg.modules.demo.annual.entity.Annual; |
|
|
|
|
import org.jeecg.modules.demo.annual.service.IAnnualService; |
|
|
|
|
import org.jeecg.modules.demo.annualCompIntface.entity.Bslist; |
|
|
|
|
import org.jeecg.modules.demo.annualCompPoint.entity.AnnualCompPoint; |
|
|
|
|
import org.jeecg.modules.demo.annualCompPoint.service.IAnnualCompPointService; |
|
|
|
|
import org.jeecg.modules.demo.annualScore.entity.PersonalCompTotalScore; |
|
|
|
|
import org.jeecg.modules.demo.annualScore.service.IPersonalCompTotalScoreService; |
|
|
|
|
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp; |
|
|
|
|
import org.jeecg.modules.demo.annualcomp.service.IAnnualCompService; |
|
|
|
|
import org.jeecg.modules.demo.annualcompetitionprojectregistration.entity.AnnualCompetitionProjectRegistration; |
|
|
|
|
import org.jeecg.modules.demo.annualcompetitionprojectregistration.entity.TeamManagement; |
|
|
|
|
import org.jeecg.modules.demo.annualcompetitionprojectregistration.service.IAnnualCompetitionProjectRegistrationService; |
|
|
|
|
import org.jeecg.modules.demo.annualcompetitionprojectregistration.service.ITeamManagementService; |
|
|
|
|
import org.jeecg.modules.demo.awardpersion.entity.AwardPersion; |
|
|
|
|
import org.jeecg.modules.demo.comp.entity.Comp; |
|
|
|
|
import org.jeecg.modules.demo.comp.service.ICompService; |
|
|
|
|
import org.jeecg.modules.demo.scorepersion.entity.ScorePersion; |
|
|
|
|
import org.jeecg.modules.demo.scorepersion.service.IScorePersionService; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
import java.util.Calendar; |
|
|
|
|
import java.util.LinkedHashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
@Service |
|
|
|
@ -33,6 +37,9 @@ public class AnnconalCompServiceImpl implements AnnconalCompService{ |
|
|
|
|
@Autowired |
|
|
|
|
private ICompService compService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private ITeamManagementService teamManagementService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IAnnualCompService annualCompService; |
|
|
|
|
|
|
|
|
@ -47,6 +54,13 @@ public class AnnconalCompServiceImpl implements AnnconalCompService{ |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IPersonalAbilityEvaluationCollectService personalAbilityEvaluationService; |
|
|
|
|
@Autowired |
|
|
|
|
private IPersonalCompTotalScoreService personalCompTotalScoreService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IScorePersionService scorePersionService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -126,4 +140,35 @@ public class AnnconalCompServiceImpl implements AnnconalCompService{ |
|
|
|
|
return personalAbilityEvaluations; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String studentindexgzf() { |
|
|
|
|
LoginUser user= (LoginUser)SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
String username=user.getUsername(); |
|
|
|
|
PersonalCompTotalScore personalAbilityEvaluations =personalCompTotalScoreService.getOne(new LambdaQueryWrapper<PersonalCompTotalScore>() |
|
|
|
|
.eq(PersonalCompTotalScore::getWorkOn, "2340330327") |
|
|
|
|
.last("limit 1")); |
|
|
|
|
|
|
|
|
|
return personalAbilityEvaluations.getScore().toString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<Bslist> studentindexbs(String uid) { |
|
|
|
|
LoginUser user= (LoginUser)SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
List<TeamManagement> teamManagementList= teamManagementService.list(new LambdaQueryWrapper<TeamManagement>().in(TeamManagement::getUserId, "1726412010178629633")); |
|
|
|
|
List<String> englist =teamManagementList.stream().map(TeamManagement::getEnrollCode).collect(Collectors.toList()); |
|
|
|
|
List<ScorePersion> scorePersionList =scorePersionService.list(new LambdaQueryWrapper<ScorePersion>().in(ScorePersion::getEnrollCode, englist)); |
|
|
|
|
List<Bslist> bslistList = new ArrayList<>(); |
|
|
|
|
for (int i=0;i< scorePersionList.size();i++){ |
|
|
|
|
Bslist bs = new Bslist(); |
|
|
|
|
bs.setUserid(user.getRealname()); |
|
|
|
|
bs.setScore(scorePersionList.get(i).getScore()); |
|
|
|
|
bs.setEnrollCode(scorePersionList.get(i).getEnrollCode()); |
|
|
|
|
bs.setAnnualid(annualService.getById(scorePersionList.get(i).getAnnualid()).getAnnualName()); |
|
|
|
|
bs.setAnnualCompid(annualCompService.getById(scorePersionList.get(i).getAnnualCompid()).getName()); |
|
|
|
|
bs.setAnnualCompP(annualCompPointService.getById(scorePersionList.get(i).getAnnualCompP()).getObjName()); |
|
|
|
|
bslistList.add(bs); |
|
|
|
|
} |
|
|
|
|
return bslistList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|