From 4d6a5ab6353a2d17307d7790a375e3b957b0212c Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Mon, 19 Jun 2023 19:23:28 +0800 Subject: [PATCH] fix part1 Signed-off-by: Chenx221 --- project2/README.md | 167 +++++++ .../controller/CourseController.class | Bin 5558 -> 5682 bytes .../controller/PersonController.class | Bin 4958 -> 4958 bytes .../controller/StudentController.class | Bin 10191 -> 10191 bytes .../cyou/chenx221/helper/UsernameHelper.class | Bin 1162 -> 1407 bytes .../WEB-INF/views/{ => course}/courseList.jsp | 0 .../views/{ => course}/courseList_t.jsp | 0 .../views/{ => course}/courseQueryResult.jsp | 0 .../views/course/courseQueryResult_t.jsp} | 0 .../WEB-INF/views/{ => course}/courseopv2.jsp | 0 .../WEB-INF/views/course/courseopv2_t.jsp} | 0 .../WEB-INF/views/person_t.jsp} | 0 .../WEB-INF/views/scoreQueryResult_t.jsp | 211 +++++++++ .../WEB-INF/views/studentMod_t.jsp | 298 +++++++++++++ .../WEB-INF/views/studentQueryResult_t.jsp | 177 ++++++++ .../chenx221/controller/CourseController.java | 52 ++- .../chenx221/controller/PersonController.java | 22 +- .../controller/StudentController.java | 1 - .../cyou/chenx221/helper/UsernameHelper.java | 8 + .../WEB-INF/views/{ => course}/courseList.jsp | 0 .../courseList_s.jsp} | 0 .../web/WEB-INF/views/course/courseList_t.jsp | 196 +++++++++ .../views/course/courseQueryResult.jsp | 173 ++++++++ .../views/course/courseQueryResult_s.jsp | 173 ++++++++ .../views/course/courseQueryResult_t.jsp | 173 ++++++++ .../web/WEB-INF/views/course/courseopv2.jsp | 406 ++++++++++++++++++ .../web/WEB-INF/views/course/courseopv2_s.jsp | 285 ++++++++++++ .../web/WEB-INF/views/course/courseopv2_t.jsp | 285 ++++++++++++ project2/web/WEB-INF/views/person/person.jsp | 267 ++++++++++++ .../web/WEB-INF/views/person/person_s.jsp | 267 ++++++++++++ .../web/WEB-INF/views/person/person_t.jsp | 267 ++++++++++++ .../web/WEB-INF/views/scoreQueryResult_t.jsp | 211 +++++++++ project2/web/WEB-INF/views/studentMod_t.jsp | 298 +++++++++++++ .../WEB-INF/views/studentQueryResult_t.jsp | 177 ++++++++ 34 files changed, 4079 insertions(+), 35 deletions(-) create mode 100644 project2/README.md rename project2/out/artifacts/project2_war_exploded/WEB-INF/views/{ => course}/courseList.jsp (100%) rename project2/out/artifacts/project2_war_exploded/WEB-INF/views/{ => course}/courseList_t.jsp (100%) rename project2/out/artifacts/project2_war_exploded/WEB-INF/views/{ => course}/courseQueryResult.jsp (100%) rename project2/{web/WEB-INF/views/courseQueryResult.jsp => out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult_t.jsp} (100%) rename project2/out/artifacts/project2_war_exploded/WEB-INF/views/{ => course}/courseopv2.jsp (100%) rename project2/{web/WEB-INF/views/courseopv2.jsp => out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2_t.jsp} (100%) rename project2/{web/WEB-INF/views/person.jsp => out/artifacts/project2_war_exploded/WEB-INF/views/person_t.jsp} (100%) create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreQueryResult_t.jsp create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentMod_t.jsp create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentQueryResult_t.jsp rename project2/web/WEB-INF/views/{ => course}/courseList.jsp (100%) rename project2/web/WEB-INF/views/{courseList_t.jsp => course/courseList_s.jsp} (100%) create mode 100644 project2/web/WEB-INF/views/course/courseList_t.jsp create mode 100644 project2/web/WEB-INF/views/course/courseQueryResult.jsp create mode 100644 project2/web/WEB-INF/views/course/courseQueryResult_s.jsp create mode 100644 project2/web/WEB-INF/views/course/courseQueryResult_t.jsp create mode 100644 project2/web/WEB-INF/views/course/courseopv2.jsp create mode 100644 project2/web/WEB-INF/views/course/courseopv2_s.jsp create mode 100644 project2/web/WEB-INF/views/course/courseopv2_t.jsp create mode 100644 project2/web/WEB-INF/views/person/person.jsp create mode 100644 project2/web/WEB-INF/views/person/person_s.jsp create mode 100644 project2/web/WEB-INF/views/person/person_t.jsp create mode 100644 project2/web/WEB-INF/views/scoreQueryResult_t.jsp create mode 100644 project2/web/WEB-INF/views/studentMod_t.jsp create mode 100644 project2/web/WEB-INF/views/studentQueryResult_t.jsp diff --git a/project2/README.md b/project2/README.md new file mode 100644 index 0000000..617a1bd --- /dev/null +++ b/project2/README.md @@ -0,0 +1,167 @@ +# Readme + +- /course + - ~/all + - 课程信息页 [Get] + - admin,teacher,student + - courseList|courseList_t|courseList_s + - ~/infomodv2 + - 课程信息修改页 [Get] + - admin,teacher,student + - courseopv2|courseopv2_t|courseopv2_s + - ~/delinfo + - 课程信息删除 [Post] + - admin + - *Redirect*.infomodev2 + - ~/addinfo + - 课程信息添加 [Post] + - admin + - *Redirect*.infomodev2 + - ~/modinfo + - 课程信息修改 [Post] + - admin + - *Redirect*.infomodev2 + - ~/query + - 课程信息查询 [Post] + - admin,teacher,student + - courseQueryResult|courseQueryResult_t|courseQueryResult_s +- /output + - ~/export-csv [Get] + - 学生、课程、成绩、教师信息下载 + - admin,teacher + - ~/get-csv + - 获取已经生成的csv文件 [Get] + - admin,teacher +- /person + - ~/settings + - 个人设置页 [Get] + - admin,teacher,student + - person|person_t|person_s + - ~/uploadAvatar + - 头像上传 [Post] + - admin,teacher,student + - ~/image + - 获取用户头像 [Get] + - admin,teacher,student +- /score + - ~/all + - 学生成绩页 + - admin + - ~/all_t + - 学生成绩页(教师版) + - teacher + - ~/infomodv2 + - 学生成绩修改页 + - admin + - ~/infomodv2_t + - 学生成绩修改页(教师版) + - teacher + - ~/query + - 学生成绩查询 + - admin,teacher + - ~/modinfo + - 学生成绩修改 + - admin + - ~/delinfo + - 学生成绩删除 + - admin + - ~/addinfo + - 学生成绩添加 + - admin,teacher +- /student + - ~/all + - 学生信息查询页 + - admin + - ~/all_t + - 学生信息查询页(教师版) + - teacher + - ~/queryinfo + - 学生信息查询(条件)页 + - admin + - ~/queryinfo_t + - 学生信息查询(条件)页(教师版) + - teacher + - ~/query + - 学生信息查询 + - admin + - ~/modstep1 + - 学生信息修改页 + - admin + - ~/modinfo + - 学生信息修改 + - admin,teacher + - ~/infomodv2 + - 学生信息修改页(v2) + - admin + - ~/infomodv2_t + - 学生信息修改页(v2)(教师版) + - teacher + - ~/delinfo + - 学生信息删除 + - admin + - ~/delinfoT + - 学生信息删除(教师版) + - teacher + - ~/addinfo + - 学生信息添加 + - admin,teacher +- /system + - ~/settings + - 系统设置页 + - admin + - ~/clean + - 清理垃圾 + - admin +- /teacher + - ~/mamage + - 教师信息管理页 + - admin + - ~/query + - 教师信息查询 + - admin + - ~/mod + - 教师信息修改 + - admin + - ~/del + - 教师信息删除 + - admin + - ~/add + - 教师信息添加 + - admin +- /login + - 用户登录页(和/相同) + - everyone +- /signup + - 用户(管理员)注册 + - everyone +- /user + - ~/usermanage + - 用户管理页 + - admin + - ~/create + - 用户创建 + - admin + - ~/reset + - 重设密码 + - admin + - ~/userdisabled + - 禁用用户 + - admin + - ~/userenabled + - 启用用户 + - admin +- /success + - 废弃的成功状态页 + - None +- /fail + - 废弃的失败状态页 + - None +- /dashboard + - 管理员登陆后的首页 + - admin +- /dashboard-t + - 教师登陆后的首页 + - teacher +- /dashborad-s + - 学生登录后的首页 + - student \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/CourseController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/CourseController.class index 4585c0abdfe7d3dbf0484b8c379a5ba90ea22ccd..076765b4de067ecd503b2cf7de58fc77aecf6ae9 100644 GIT binary patch literal 5682 zcmb_g>w6Pb9)71yGNDZi1Y0dPwFveWA_Y+z#0AQw*m5aQ7hJ_OnU-Lhsgp@dcXh2= zTtvJqiYu%LA_(e2y%q#7-}HI*pV%*?)KB|ypWR2-eb1c9Bxz^6`|Pt1C7C&M&hPTR z@9%fcjsaJ>vAC{^JJzzd&(SqGv6(Qq=F>J4w}K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DGu1cqZ&*w@DKr0qnGR&US4PGfmn|hbJ^v*c1%@sN zhTfNnD;RpZz|b>fNED>Ok~-(Eb$^X%L~&NWs5#RY`UZ0vzrpPJ=W-PENz5r#o5hNY zP?f7ti*%|sojlH-YWC26U9Bg#;+bNBY_d<`!~8tLTsz8h?HJF4=kXwMTg7s>i9+rm zdfhllo?gMTJb?}~f^9O60tH`z%(38yWtUDjZB4UFr-zp3*sQ9BA}YsD zka1A~Hp0WyXA$-J=6p{-Ju19x@mEoCmng0kUUcyHd#1s}!Ad!(@_zsm3&-&Pob3t- WY%6fx-YvkV583{RDv+h><9`5oX#p<) diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/PersonController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/PersonController.class index 1d28fc444fbca90c71357cd29627e92c8fdb3286..30ece77631f4334b20d3b4b2470d4235514af30f 100644 GIT binary patch delta 120 zcmcboc28}?eSS`91{MYx22KXq$uIabc@-JB8I&0K8I&0$8B{0734AlvX5e7ZV-RF8 zWRPMo0*V_0NfQPO22%!S1}g>+25SaS1{;PD23v-B20Mlv21kZ+2B*!Pf;^0Zo(v)k W-VCw~J`Cy%z6=@+{*#vp?EnA|{S=k} delta 120 zcmcboc28}?eSS_^1{MZ622KX~$uIabd6gNs8B`ef8B`f08Pq4o34AlvW#C{iU=U<5 zW{_eqVNhl;WiVneW3XT_XK-e)VenwEW$|LkY7yCqSiU>-eOJ&kQinTNapLQH^EO zn!X~AFRGgwTG!B5)xW78)X;{8HqEfJK#VO#ekk%&k!?NiP|Pmn>`}!&FF4Rg56!%c z1W7u=%CVwh(m3HUr{wX=U!8gG_)Q#VJme2fF391Me6D!HU)=mNYmHRNj$q-IWbQBo bTq2Z86mGFlBhh%}0c{dXr^K0oESKB^`J7({ delta 377 zcmWNNUntxG9Kb(cOb)e1_Q2iQH9ztox>_;uVrf(E>}5+H{HKYW)?DXdg@}98EjNqJ zglG@5e&p|qkU!b(Wv48UTqY07BRb#b@8|RVeEWvnA@@Qw<5e9+)Kf_VT{PmOiC$V5 zrj-%iF-9BTX=k1ee$mM)9yWPTh!0%R%?)0O$0sTDm@ln&V(TTDJ|5AJl>rO}DPV}_ zy6^@5K-l389NVu;Mu{b;cd}J0sb9~Y>g8VQo zPkxHcRDDrHOBz~MeMR*(4XtZv!wfqL#n@70Tag__c6Gc*G5eHrz-tbv;Wy3vF`Z8z zO4?s6gcUs^lVfuDhm(`Qo2-cKltj)*C4z%<^7zj)E-2#?7guJrVVB%n;)wECzz`u{ aVknh3T=Iao`kY2dphGNpB*~o2&X;==1zueM diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/helper/UsernameHelper.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/helper/UsernameHelper.class index 3614829037f64fa5116073e1ef7e8c2dc10be50e..2be738c86ac246a4cc756293523290fe3e5b935f 100644 GIT binary patch delta 454 zcmZ9HF;Bu^5Qg7t#X>>K`Dc!5Tu7@?qTEb!75iKulB| zj4lrT9!H~ITSJWBaCh&QyZ4^Ej(w}@``6PmfGV~JYDGGnfQDQg3s@v1o3_~RiZj=9 zgkyII8KY1?Z(KC2u5emb&26>pQ{lMn9TgIm;#fwO5EbsR@SJv2!OGp9v`Y!!r`Gj6 zyDg5~-lc4uzOg zKIH0^-=AVjAi>>9K4ua+rg&~Tn9cD@9ST-q1+JxEml*%9VV!+8cs2_9L{Y&k>q_X( zzc;L8&ekK8ArgeT`3Bt_VutVv?G|aX6NndR2c;qA3HQ+Z)aMyFxFjS?FWIu5k>&rBl|!;k_LZ>p1F4EVH~;_u delta 172 zcmXYpPY%IQ7{q_?_0jf4VnJ*qRMo$>Y;5%o&P8I=lZc }=h2&RqAe3@^4Ghcs- z{qu8w02RBd-`gN0xt;C7)UO~LOtFfP8ai~Pv%2p_MXH}~vj|7bT)w9iQ5g$e!;(qM oA6;eA`r^h_LnQ>FLsqQYe);E{jSaaPg{TPgCJ!0Pm-3eF4+E(ZIRF3v diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList_t.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseList_t.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseList_t.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseQueryResult.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseQueryResult.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult.jsp diff --git a/project2/web/WEB-INF/views/courseQueryResult.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult_t.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseQueryResult.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseQueryResult_t.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseopv2.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2.jsp similarity index 100% rename from project2/out/artifacts/project2_war_exploded/WEB-INF/views/courseopv2.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2.jsp diff --git a/project2/web/WEB-INF/views/courseopv2.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2_t.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseopv2.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/course/courseopv2_t.jsp diff --git a/project2/web/WEB-INF/views/person.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/person_t.jsp similarity index 100% rename from project2/web/WEB-INF/views/person.jsp rename to project2/out/artifacts/project2_war_exploded/WEB-INF/views/person_t.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreQueryResult_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreQueryResult_t.jsp new file mode 100644 index 0000000..863b862 --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreQueryResult_t.jsp @@ -0,0 +1,211 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 成绩信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
成绩ID学号学生姓名课程ID课程名成绩
${score.scoreID}${score.student.id}${score.student.name}${score.course.courseID}${score.course.courseName}${score.score}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentMod_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentMod_t.jsp new file mode 100644 index 0000000..341cca5 --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentMod_t.jsp @@ -0,0 +1,298 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查看 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
信息修改
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentQueryResult_t.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentQueryResult_t.jsp new file mode 100644 index 0000000..e4467ef --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/studentQueryResult_t.jsp @@ -0,0 +1,177 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/src/main/java/cyou/chenx221/controller/CourseController.java b/project2/src/main/java/cyou/chenx221/controller/CourseController.java index 2be5ee2..464bfcf 100644 --- a/project2/src/main/java/cyou/chenx221/controller/CourseController.java +++ b/project2/src/main/java/cyou/chenx221/controller/CourseController.java @@ -23,29 +23,26 @@ public class CourseController { this.courseService = courseService; } - @GetMapping("/all")//课程信息查询(不带条件) + @GetMapping("/all") public String getAllCourses(Model model) { String username = new UsernameHelper().getCurrentUsername(); + String role = new UsernameHelper().getCurrentRole(); if (username != null) { model.addAttribute("username", username); } List courses = courseService.getAllCourses(); model.addAttribute("courses", courses); - return "courseList"; // 重定向到 dashboard 页面 - } - - @GetMapping("/all_t")//课程信息查询(不带条件) - public String getAllCoursesT(Model model) { - String username = new UsernameHelper().getCurrentUsername(); - if (username != null) { - model.addAttribute("username", username); + if (role.equals("[ROLE_admin]")) + return "course/courseList"; + else if (role.equals("[ROLE_teacher]")) { + return "course/courseList_t"; + } else { + return "course/courseList_s"; } - List courses = courseService.getAllCourses(); - model.addAttribute("courses", courses); - return "courseList_t"; // 重定向到 dashboard 页面 + } - @GetMapping("/infomodv2")//处理学生信息修改页 + @GetMapping("/infomodv2") public String getInfoModv2(@RequestParam(value = "successMessage", required = false, defaultValue = "null") String successMessage, @RequestParam(value = "errorMessage", required = false, defaultValue = "null") String errorMessage, Model model) { @@ -55,16 +52,21 @@ public class CourseController { } List courses = courseService.getAllCourses(); model.addAttribute("courses", courses); -// 将消息添加到Model中 model.addAttribute("successMessage", successMessage); model.addAttribute("errorMessage", errorMessage); - - return "courseopv2"; + String role = new UsernameHelper().getCurrentRole(); + if (role.equals("[ROLE_admin]")) + return "course/courseopv2"; + else if (role.equals("[ROLE_teacher]")) { + return "course/courseopv2_t"; + } else { + return "course/courseopv2_s"; + } } @PostMapping(value = "/delinfo", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String DeleteCourseInfo(@RequestParam(value = "id") int id, - Model model) { + Model model) { Course temp = courseService.getCourseById(id); if (id <= 0 || temp == null) { model.addAttribute("errorMessage", "学生信息删除失败,可能是ID非法或者学生已删除"); @@ -82,7 +84,7 @@ public class CourseController { return "redirect:/course/infomodv2"; } - // + @PostMapping(value = "/addinfo", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String InsertCourseInfo(@RequestParam(value = "name", defaultValue = "null", required = false) String name, @RequestParam(value = "description", defaultValue = "null", required = false) String description, @@ -94,7 +96,7 @@ public class CourseController { return "redirect:/course/infomodv2"; } - // + @PostMapping(value = "/modinfo", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String UpdateModInfo(@RequestParam(value = "name", defaultValue = "null", required = false) String name, @RequestParam(value = "description", defaultValue = "null", required = false) String description, @@ -121,7 +123,7 @@ public class CourseController { return "redirect:/course/infomodv2"; } - @PostMapping(value = "/query", produces = "application/x-www-form-urlencoded;charset=UTF-8")//学生信息查询(带条件) + @PostMapping(value = "/query", produces = "application/x-www-form-urlencoded;charset=UTF-8") public String getQueryCourses(@RequestParam(value = "name", defaultValue = "null", required = false) String name, @RequestParam(value = "description", defaultValue = "null", required = false) String description, @RequestParam(value = "id", defaultValue = "-1", required = false) int id, @@ -139,9 +141,15 @@ public class CourseController { List courses; Course course; course = new Course((id == -1 ? null : id), name, description); -// System.out.println("id:" + id + " name:" + name + " description:" + description); courses = courseService.getQueryCourses(course); model.addAttribute("courses", courses); - return "courseQueryResult"; + String role = new UsernameHelper().getCurrentRole(); + if (role.equals("[ROLE_admin]")) + return "course/courseQueryResult"; + else if (role.equals("[ROLE_teacher]")) { + return "course/courseQueryResult_t"; + } else { + return "course/courseQueryResult_s"; + } } } diff --git a/project2/src/main/java/cyou/chenx221/controller/PersonController.java b/project2/src/main/java/cyou/chenx221/controller/PersonController.java index 13331e9..1e93e75 100644 --- a/project2/src/main/java/cyou/chenx221/controller/PersonController.java +++ b/project2/src/main/java/cyou/chenx221/controller/PersonController.java @@ -2,7 +2,6 @@ package cyou.chenx221.controller; import cyou.chenx221.helper.UsernameHelper; import cyou.chenx221.mapper.UserMapper; -import cyou.chenx221.pojo.Course; import cyou.chenx221.pojo.User; import cyou.chenx221.service.PersonService; import org.springframework.beans.factory.annotation.Autowired; @@ -15,7 +14,6 @@ import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import java.util.HashMap; -import java.util.List; import java.util.Map; @Controller @@ -30,33 +28,34 @@ public class PersonController { this.personService = personService; } - @GetMapping("/settings")//课程信息查询(不带条件) + @GetMapping("/settings") public String getPersonSettings(Model model) { String username = new UsernameHelper().getCurrentUsername(); if (username != null) { model.addAttribute("username", username); } - return "person"; // 重定向到 dashboard 页面 + String role = new UsernameHelper().getCurrentRole(); + if (role.equals("[ROLE_admin]")) + return "person/person"; + else if (role.equals("[ROLE_teacher]")) { + return "person/person_t"; + } else { + return "person/person_s"; + } } @ResponseBody @PostMapping("/uploadAvatar") public ResponseEntity> uploadAvatar(@RequestParam("avatar") MultipartFile file) { Map response = new HashMap<>(); - - // 处理上传的头像图片文件 //TODO: 清理没有关联的图像资源 + //TODO: 清理没有关联的图像资源 if (!file.isEmpty()) { try { -// String avatarUrl = personService.uploadAvatar(file); String object = personService.uploadAvatar(file); User user = new User(); user.setUsername(new UsernameHelper().getCurrentUsername()); user.setAvatar(object); userMapper.setAvatar(user); - // 设置返回的avatarUrl值 -// response.put("avatarUrl", "/person/image"); -// response.put("avatarUrl", avatarUrl); - // 返回成功消息和avatarUrl return ResponseEntity.ok(response); } catch (Exception e) { String errorMessage = "Error uploading file: " + e.getMessage(); @@ -77,7 +76,6 @@ public class PersonController { InputStreamResource imageResource = personService.getImage(objectName); return ResponseEntity.ok().body(imageResource); } catch (Exception e) { - // Handle exception and return appropriate response return ResponseEntity.notFound().build(); } } diff --git a/project2/src/main/java/cyou/chenx221/controller/StudentController.java b/project2/src/main/java/cyou/chenx221/controller/StudentController.java index d015459..6045a33 100644 --- a/project2/src/main/java/cyou/chenx221/controller/StudentController.java +++ b/project2/src/main/java/cyou/chenx221/controller/StudentController.java @@ -90,7 +90,6 @@ public class StudentController { if (!"null".equals(birthdayStr)) { birthday = Date.valueOf(birthdayStr); } -// System.out.println(birthday);//debug List students; Student student; if (classes.size() == 0) { diff --git a/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java b/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java index b8424c6..6520817 100644 --- a/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java +++ b/project2/src/main/java/cyou/chenx221/helper/UsernameHelper.java @@ -18,4 +18,12 @@ public class UsernameHelper { return null; } + public String getCurrentRole(){ + Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); + if (authentication != null && authentication.getPrincipal() instanceof UserDetails) { + UserDetails userDetails = (UserDetails) authentication.getPrincipal(); + return userDetails.getAuthorities().toString(); //[ROLE_admin],[ROLE_teacher],[ROLE_student] + } + return null; + } } diff --git a/project2/web/WEB-INF/views/courseList.jsp b/project2/web/WEB-INF/views/course/courseList.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseList.jsp rename to project2/web/WEB-INF/views/course/courseList.jsp diff --git a/project2/web/WEB-INF/views/courseList_t.jsp b/project2/web/WEB-INF/views/course/courseList_s.jsp similarity index 100% rename from project2/web/WEB-INF/views/courseList_t.jsp rename to project2/web/WEB-INF/views/course/courseList_s.jsp diff --git a/project2/web/WEB-INF/views/course/courseList_t.jsp b/project2/web/WEB-INF/views/course/courseList_t.jsp new file mode 100644 index 0000000..d750cef --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseList_t.jsp @@ -0,0 +1,196 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查看 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseQueryResult.jsp b/project2/web/WEB-INF/views/course/courseQueryResult.jsp new file mode 100644 index 0000000..60d8e97 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseQueryResult.jsp @@ -0,0 +1,173 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseQueryResult_s.jsp b/project2/web/WEB-INF/views/course/courseQueryResult_s.jsp new file mode 100644 index 0000000..60d8e97 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseQueryResult_s.jsp @@ -0,0 +1,173 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseQueryResult_t.jsp b/project2/web/WEB-INF/views/course/courseQueryResult_t.jsp new file mode 100644 index 0000000..60d8e97 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseQueryResult_t.jsp @@ -0,0 +1,173 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseopv2.jsp b/project2/web/WEB-INF/views/course/courseopv2.jsp new file mode 100644 index 0000000..fe4c944 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseopv2.jsp @@ -0,0 +1,406 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息修改v2 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+ + + +
+ +
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + +
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseopv2_s.jsp b/project2/web/WEB-INF/views/course/courseopv2_s.jsp new file mode 100644 index 0000000..fc6b018 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseopv2_s.jsp @@ -0,0 +1,285 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息修改v2 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+ +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/course/courseopv2_t.jsp b/project2/web/WEB-INF/views/course/courseopv2_t.jsp new file mode 100644 index 0000000..fc6b018 --- /dev/null +++ b/project2/web/WEB-INF/views/course/courseopv2_t.jsp @@ -0,0 +1,285 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 课程信息修改v2 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + +
课程ID课程名课程描述
${course.courseID}${course.courseName}${course.description}
+
+
+
+ +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/person/person.jsp b/project2/web/WEB-INF/views/person/person.jsp new file mode 100644 index 0000000..4d3842a --- /dev/null +++ b/project2/web/WEB-INF/views/person/person.jsp @@ -0,0 +1,267 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 个人设置 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+

+ 头像设置: +

+
+
+ + +
+
+ + +
+
+
+
+ <%-- Todo: 换成消息框--%> +
+
+
+
+
+
+
+
+
+
+ + +
+ + + + +
+
+ + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/person/person_s.jsp b/project2/web/WEB-INF/views/person/person_s.jsp new file mode 100644 index 0000000..4d3842a --- /dev/null +++ b/project2/web/WEB-INF/views/person/person_s.jsp @@ -0,0 +1,267 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 个人设置 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+

+ 头像设置: +

+
+
+ + +
+
+ + +
+
+
+
+ <%-- Todo: 换成消息框--%> +
+
+
+
+
+
+
+
+
+
+ + +
+ + + + +
+
+ + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/person/person_t.jsp b/project2/web/WEB-INF/views/person/person_t.jsp new file mode 100644 index 0000000..4d3842a --- /dev/null +++ b/project2/web/WEB-INF/views/person/person_t.jsp @@ -0,0 +1,267 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 个人设置 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+

+ 头像设置: +

+
+
+ + +
+
+ + +
+
+
+
+ <%-- Todo: 换成消息框--%> +
+
+
+
+
+
+
+
+
+
+ + +
+ + + + +
+
+ + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/scoreQueryResult_t.jsp b/project2/web/WEB-INF/views/scoreQueryResult_t.jsp new file mode 100644 index 0000000..863b862 --- /dev/null +++ b/project2/web/WEB-INF/views/scoreQueryResult_t.jsp @@ -0,0 +1,211 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 成绩信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
成绩ID学号学生姓名课程ID课程名成绩
${score.scoreID}${score.student.id}${score.student.name}${score.course.courseID}${score.course.courseName}${score.score}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/studentMod_t.jsp b/project2/web/WEB-INF/views/studentMod_t.jsp new file mode 100644 index 0000000..341cca5 --- /dev/null +++ b/project2/web/WEB-INF/views/studentMod_t.jsp @@ -0,0 +1,298 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查看 + + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
信息修改
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+ + + + +
+ + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/project2/web/WEB-INF/views/studentQueryResult_t.jsp b/project2/web/WEB-INF/views/studentQueryResult_t.jsp new file mode 100644 index 0000000..e4467ef --- /dev/null +++ b/project2/web/WEB-INF/views/studentQueryResult_t.jsp @@ -0,0 +1,177 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 学生信息查询结果页 + + + + + + + + + + +
+ +
+ + + + +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
ID姓名性别出生日期联系方式班级
${student.id}${student.name}${student.sex}${student.birthday}${student.phone}${student.classes}
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + \ No newline at end of file