diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/controller/AnnconalCompController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/controller/AnnconalCompController.java index 2fa28b2b..9d8dfd62 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/controller/AnnconalCompController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/controller/AnnconalCompController.java @@ -4,10 +4,13 @@ import io.lettuce.core.ScriptOutputType; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections.ArrayStack; import org.apache.shiro.SecurityUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.common.system.vo.LoginUser; import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluationCollect; +import org.jeecg.modules.demo.annualCompIntface.entity.Bslist; +import org.jeecg.modules.demo.annualCompIntface.entity.Grebscore; import org.jeecg.modules.demo.annualCompIntface.service.AnnconalCompService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -15,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; +import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -35,11 +39,39 @@ public class AnnconalCompController return Result.ok(result); } - @ApiOperation(value = "管理员首页", notes = "管理员首页") + @ApiOperation(value = "个人首页的12个个人能力", notes = "个人首页的12个个人能力") @GetMapping(value = "/studentindex") public Result studentindex(HttpServletRequest req) { List result = annconalCompService.studentindex(); System.out.println(result); return Result.ok(result); } + + + + @ApiOperation(value = "个人首页的个人总分", notes = "管理员个人总分") + @GetMapping(value = "/studentindexgzf") + public Result studentindexgzf(HttpServletRequest req) { + String result =annconalCompService.studentindexgzf(); + List grebscoreList =new ArrayList<>(); + Grebscore ge = new Grebscore(); + ge.setTitle("个人总分"); + ge.setTotal(result); + grebscoreList.add(ge); + System.out.println(grebscoreList); + return Result.ok(grebscoreList); + } + + @ApiOperation(value = "个人首页的个人总分", notes = "管理员个人总分") + @GetMapping(value = "/studentindexbs") + public Result studentindexbs(HttpServletRequest req) { + LoginUser user= (LoginUser)SecurityUtils.getSubject().getPrincipal(); + String uid = user.getId(); + List bslistList = new ArrayStack(); + bslistList=annconalCompService.studentindexbs(uid); + + return Result.ok(bslistList); + } + + } diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompService.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompService.java index c39bbbfe..9e5b9715 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompService.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompService.java @@ -1,6 +1,7 @@ package org.jeecg.modules.demo.annualCompIntface.service; import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluationCollect; +import org.jeecg.modules.demo.annualCompIntface.entity.Bslist; import java.util.List; import java.util.Map; @@ -10,4 +11,8 @@ public interface AnnconalCompService { List studentindex(); + + String studentindexgzf(); + + List studentindexbs(String uid); } diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompServiceImpl.java index 4267e69f..af8c25e0 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompServiceImpl.java @@ -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() + .eq(PersonalCompTotalScore::getWorkOn, "2340330327") + .last("limit 1")); + + return personalAbilityEvaluations.getScore().toString(); + } + + @Override + public List studentindexbs(String uid) { + LoginUser user= (LoginUser)SecurityUtils.getSubject().getPrincipal(); + List teamManagementList= teamManagementService.list(new LambdaQueryWrapper().in(TeamManagement::getUserId, "1726412010178629633")); + List englist =teamManagementList.stream().map(TeamManagement::getEnrollCode).collect(Collectors.toList()); + List scorePersionList =scorePersionService.list(new LambdaQueryWrapper().in(ScorePersion::getEnrollCode, englist)); + List 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; + } + } diff --git a/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.js b/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.js index 5ca36558..fa323ce3 100644 --- a/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.js +++ b/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.js @@ -95,7 +95,7 @@ export const bdcCardList = [ ]; export const table = { dataSource: [ - { reBizCode: '1', type: '转移登记', acceptBy: '张三', acceptDate: '2019-01-22', curNode: '任务分派', flowRate: 60 }, + { reBizCode: '1', type: '转移登记', acceptBy: '张三11', acceptDate: '2019-01-22', curNode: '任务分派', flowRate: 60 }, { reBizCode: '2', type: '抵押登记', acceptBy: '李四', acceptDate: '2019-01-23', curNode: '领导审核', flowRate: 30 }, { reBizCode: '3', type: '转移登记', acceptBy: '王武', acceptDate: '2019-01-25', curNode: '任务处理', flowRate: 20 }, { reBizCode: '4', type: '转移登记', acceptBy: '赵楼', acceptDate: '2019-11-22', curNode: '部门审核', flowRate: 80 }, @@ -109,36 +109,41 @@ export const table = { ], columns: [ { - title: '业务号', + title: '年度', align: 'center', - dataIndex: 'reBizCode', + dataIndex: 'annualid', }, { - title: '业务类型', + title: '年度比赛', align: 'center', - dataIndex: 'type', + dataIndex: 'annualCompid', }, { - title: '受理人', + title: '年度比赛项目', align: 'center', - dataIndex: 'acceptBy', + dataIndex: 'annualCompP', }, { - title: '受理时间', + title: '报名编号', align: 'center', - dataIndex: 'acceptDate', + dataIndex: 'enrollCode', }, { - title: '当前节点', + title: '成绩', align: 'center', - dataIndex: 'curNode', + dataIndex: 'score', }, - { + { + title: '排名', + align: 'center', + dataIndex: 'sort', + }, +/* { title: '办理时长', align: 'center', dataIndex: 'flowRate', slots: { customRender: 'flowRate' }, - }, + },*/ ], ipagination: { current: 1, diff --git a/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.ts b/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.ts index 94a0e429..96b0400d 100644 --- a/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.ts +++ b/jeecgboot-vue3-master/src/views/dashboard/Analysis/data.ts @@ -108,7 +108,7 @@ export const bdcCardList: GrowCardItem[] = [ export const table = { dataSource: [ - { reBizCode: '1', type: '转移登记', acceptBy: '张三', acceptDate: '2019-01-22', curNode: '任务分派', flowRate: 60 }, + { reBizCode: '1', type: '转移登记', acceptBy: '张三11', acceptDate: '2019-01-22', curNode: '任务分派', flowRate: 60 }, { reBizCode: '2', type: '抵押登记', acceptBy: '李四', acceptDate: '2019-01-23', curNode: '领导审核', flowRate: 30 }, { reBizCode: '3', type: '转移登记', acceptBy: '王武', acceptDate: '2019-01-25', curNode: '任务处理', flowRate: 20 }, { reBizCode: '4', type: '转移登记', acceptBy: '赵楼', acceptDate: '2019-11-22', curNode: '部门审核', flowRate: 80 }, diff --git a/jeecgboot-vue3-master/src/views/dashboard/Analysis/homePage/IndexBdc.vue b/jeecgboot-vue3-master/src/views/dashboard/Analysis/homePage/IndexBdc.vue index 3440fac2..f073d897 100644 --- a/jeecgboot-vue3-master/src/views/dashboard/Analysis/homePage/IndexBdc.vue +++ b/jeecgboot-vue3-master/src/views/dashboard/Analysis/homePage/IndexBdc.vue @@ -6,7 +6,7 @@ - diff --git a/jeecgboot-vue3-master/src/views/dashboard/Analysis/index1.vue b/jeecgboot-vue3-master/src/views/dashboard/Analysis/index1.vue index 18f04054..b97f4092 100644 --- a/jeecgboot-vue3-master/src/views/dashboard/Analysis/index1.vue +++ b/jeecgboot-vue3-master/src/views/dashboard/Analysis/index1.vue @@ -102,18 +102,6 @@
-