diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
index 75de9765..34860de7 100644
--- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
+++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
@@ -513,6 +513,9 @@ public class AnnualCompPointController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(annualCompAward, req.getParameterMap());
queryWrapper.eq("annucompid",id);
List list = annualCompAwardService.list(queryWrapper);
+ if(list.size()==0){
+ return Result.error("未设置年度比赛奖项!");
+ }
QueryWrapper queryWrappersp = new QueryWrapper<>();
queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid());
queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId());
@@ -538,7 +541,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -561,7 +564,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -585,7 +588,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -610,7 +613,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -636,7 +639,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -656,6 +659,13 @@ public class AnnualCompPointController extends JeecgController cxhq(@RequestBody AwardPersion awardPersion,HttpServletRequest req) {
+ AnnualCompAward annualCompAward = new AnnualCompAward();
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(annualCompAward, req.getParameterMap());
+ queryWrapper.eq("annucompid",awardPersion.getAnnualCompP());
+ List list = annualCompAwardService.list(queryWrapper);
+ if(list.size()==0){
+ return Result.error("未设置年度比赛奖项!");
+ }
AwardPersion awardPersionqw = new AwardPersion();
QueryWrapper queryWrapperap = QueryGenerator.initQueryWrapper(awardPersionqw, req.getParameterMap());
queryWrapperap.eq("annualid",awardPersion.getAnnualid());
@@ -668,10 +678,6 @@ public class AnnualCompPointController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(annualCompAward, req.getParameterMap());
- queryWrapper.eq("annucompid",awardPersion.getAnnualCompP());
- List list = annualCompAwardService.list(queryWrapper);
QueryWrapper queryWrappersp = new QueryWrapper<>();
queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid());
queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId());
@@ -698,7 +704,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
@@ -724,7 +730,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
@@ -750,7 +756,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
@@ -777,7 +783,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
@@ -805,7 +811,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
index dbc4d0f7..05841c76 100644
--- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
+++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
@@ -1196,7 +1196,7 @@ public class AnnualCompetitionProjectRegistrationController {
SysDepart depart = sysDepartService.query().eq("id", userDeparts.get(0).getDepId()).one();
Map map4 = new HashMap<>();
map4.put("name", sysUser.getRealname());
- map4.put("xh", sysUser.getUsername());
+ map4.put("xh", sysUser.getWorkNo());
map4.put("szyx", depart.getDepartName());
bmxsxxListMap.add(map4);
}
@@ -1208,7 +1208,7 @@ public class AnnualCompetitionProjectRegistrationController {
SysDepart depart = sysDepartService.query().eq("id", userDeparts.get(0).getDepId()).one();
Map map5 = new HashMap<>();
map5.put("name", sysUser.getRealname());
- map5.put("xh", sysUser.getUsername());
+ map5.put("xh", sysUser.getWorkNo());
map5.put("szyx", depart.getDepartName());
bmxsxxListMap.add(map5);
}
@@ -1234,6 +1234,7 @@ public class AnnualCompetitionProjectRegistrationController {
public Result> xssybsjs( HttpServletRequest req) {
//获取当前登录用户
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+ String wonk = sysUserService.getById(user.getId()).getWorkNo();
TeamManagement teamManagement = new TeamManagement();
QueryWrapper queryWrappertm = QueryGenerator.initQueryWrapper(teamManagement, req.getParameterMap());
queryWrappertm.eq("user_id",user.getId());
@@ -1382,11 +1383,278 @@ public class AnnualCompetitionProjectRegistrationController {
map.put("xj",0);
}
//获奖数
+
+ QueryWrapper queryWrapperaphj = new QueryWrapper<>();
+ queryWrapperaphj.eq("studentcode",wonk);
+ queryWrapperaphj.in(bmbhs.size()!=0,"enroll_code",bmbhs);
+ List listhj = awardPersionService.list(queryWrapperaphj);
+ map.put("hjNumber",listhj.size());
+ //一等奖数
+ AwardPersion awardPersion1 = new AwardPersion();
+ QueryWrapper queryWrapperap1 = QueryGenerator.initQueryWrapper(awardPersion1, req.getParameterMap());
+ queryWrapperap1.eq("awardsort",1);
+ queryWrapperap1.eq("studentcode",wonk);
+ queryWrapperap1.in(bmbhs.size()!=0,"enroll_code",bmbhs);
+ List list1 = awardPersionService.list(queryWrapperap1);
+ map.put("ydjNumber",list1.size());
+ //二等奖数
+ AwardPersion awardPersion2 = new AwardPersion();
+ QueryWrapper queryWrapperap2 = QueryGenerator.initQueryWrapper(awardPersion2, req.getParameterMap());
+ queryWrapperap2.eq("awardsort",2);
+ queryWrapperap2.eq("studentcode",wonk);
+ queryWrapperap2.in(bmbhs.size()!=0,"enroll_code",bmbhs);
+ List list2 = awardPersionService.list(queryWrapperap2);
+ map.put("edjNumber",list2.size());
+ //三等奖数
+ AwardPersion awardPersion3 = new AwardPersion();
+ QueryWrapper queryWrapperap3 = QueryGenerator.initQueryWrapper(awardPersion3, req.getParameterMap());
+ queryWrapperap3.eq("awardsort",3);
+ queryWrapperap3.eq("studentcode",wonk);
+ queryWrapperap3.in(bmbhs.size()!=0,"enroll_code",bmbhs);
+ List list3 = awardPersionService.list(queryWrapperap3);
+ map.put("sdjNumber",list3.size());
+ //四等奖数
+ AwardPersion awardPersion4 = new AwardPersion();
+ QueryWrapper queryWrapperap4 = QueryGenerator.initQueryWrapper(awardPersion4, req.getParameterMap());
+ queryWrapperap4.eq("awardsort",4);
+ queryWrapperap4.eq("studentcode",wonk);
+ queryWrapperap4.in(bmbhs.size()!=0,"enroll_code",bmbhs);
+ List list4 = awardPersionService.list(queryWrapperap4);
+ map.put("sidjNumber",list4.size());
+ //五等奖数
+ AwardPersion awardPersion5 = new AwardPersion();
+ QueryWrapper queryWrapperap5 = QueryGenerator.initQueryWrapper(awardPersion5, req.getParameterMap());
+ queryWrapperap5.eq("awardsort",5);
+ queryWrapperap5.eq("studentcode",wonk);
+ queryWrapperap5.in(bmbhs.size()!=0,"enroll_code",bmbhs);
+ List list5 = awardPersionService.list(queryWrapperap5);
+ map.put("wdjNumber",list5.size());
+ //所有奖项(前六条)
+ AwardPersion awardPersionAll = new AwardPersion();
+ QueryWrapper queryWrapperapAll = QueryGenerator.initQueryWrapper(awardPersionAll, req.getParameterMap());
+ queryWrapperapAll.eq("studentcode",wonk);
+ queryWrapperapAll.in(bmbhs.size()!=0,"enroll_code",bmbhs);
+ List listAll = awardPersionService.list(queryWrapperapAll);
+ List
-
-
+
+
+
+
+
{{ data.cjbsxmsl }}
+
+
国家级:{{ data.gjj }}
+
省级:{{ data.shengj }}
+
市级:{{ data.shij }}
+
校级:{{ data.xj }}
+
+
+
+
+
+
+
+
{{ data.hjNumber }}
+
+
一等:{{ data.ydjNumber }}
+
二等:{{ data.edjNumber }}
+
三等:{{ data.sdjNumber }}
+
四等:{{ data.sidjNumber }}
+
五等:{{ data.wdjNumber }}
+
@@ -49,34 +100,27 @@
我是比赛参赛情况综述:全面落实立德树人根本任务,依据CDIO工程教育理念,培养德、智、体、美、劳全面发展,掌握软件工程专业所需的数学与自然科学基础知识、专业基础理论知识;在企业级软件开发和工业智能软件开发方向,能承担软件分析、设计、开发、项目管理等任务,具备解决复杂工程问题的能力;具有终身学习和创新创业意识、国际交流能力、团队合作精神等良好素养,能适应产业与社会变革的国际化应用型人。
-
+
个人比赛获奖情况
- 获奖等级 |
- 比赛名称 |
- 项目名称 |
- 所在小队 |
+ 奖项名称 |
+ 年度比赛 |
+ 年度比赛项目 |
+ 所在队伍名称 |
积分 |
-
- 一等奖 |
- 全国计算机大赛 |
- 项目一 |
- 我是一个小队 |
- 135 |
-
-
- 一等奖 |
- 全国计算机大赛 |
- 项目一 |
- 我是一个小队 |
- 135 |
+
+ {{ item.jxname }} |
+ {{ item.ndbs }} |
+ {{ item.ndbsxm }} |
+ {{ item.dwname }} |
+ {{ item.jf }} |
@@ -88,6 +132,33 @@
diff --git a/jeecgboot-vue3-master/src/views/depart/workbench/components/student/student.vue b/jeecgboot-vue3-master/src/views/depart/workbench/components/student/student.vue
index 1bac1d46..98b9a874 100644
--- a/jeecgboot-vue3-master/src/views/depart/workbench/components/student/student.vue
+++ b/jeecgboot-vue3-master/src/views/depart/workbench/components/student/student.vue
@@ -11,10 +11,10 @@
{{ data.cjbsxmsl }}
-
国家级::{{ data.gjj }}
-
省级::{{ data.shengj }}
-
市级::{{ data.shij }}
-
校级::{{ data.xj }}
+
国家级:{{ data.gjj }}
+
省级:{{ data.shengj }}
+
市级:{{ data.shij }}
+
校级:{{ data.xj }}
@@ -24,7 +24,7 @@
获奖数
- 1314
+ {{ data.hjNumber }}
一等:{{data.ydjNumber}}
二等:{{data.edjNumber}}
@@ -114,7 +114,8 @@ const router = useRouter()
wdjNumber:0,
allApList:[],
ndbsxm:[],
- bmbsxm:[]
+ bmbsxm:[],
+ hjNumber:0
});
const getStudentEvent = async () => {
const res = await getStudent();
diff --git a/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue b/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
index 1c2cc453..4c79da7d 100644
--- a/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
+++ b/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
@@ -43,6 +43,8 @@
无文件
下载
+ 预览
+
@@ -62,6 +64,7 @@
import JSelectUserByDept from '/@/components/Form/src/jeecg/components/JSelectUserByDept.vue';
import { useRoute } from 'vue-router';
import {useMessage} from "../../hooks/web/useMessage";
+ import {getDownWork} from "/@/views/UpfilePersion/UpfilePersion.api";
const { createMessage } = useMessage();
const route = useRoute();
@@ -105,6 +108,21 @@
sm: { span: 16 },
});
+ function handlePreview(record) {
+ console.log("===========================================================");
+ console.log(record);
+ console.log("===========================================================");
+ const previewServerUrl = 'http://10.20.15.171:8012/onlinePreview?url=';
+ let url = 'http://10.20.15.171/jeecg-boot/sys/common/static/' + record;
+ window.open(previewServerUrl + encodeURIComponent(base64Encode(url)));
+ }
+
+ function base64Encode(str: string): string {
+ return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
+ return String.fromCharCode('0x' + p1);
+ }));
+ }
+
/**
* 新增事件
*/