From 885e2651ed7457e1ee99cd3865bd2bebd81bd038 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Mon, 12 Jun 2023 12:46:16 +0800 Subject: [PATCH] update fix score all query Signed-off-by: Chenx221 --- .../chenx221/controller/ScoreController.class | Bin 0 -> 1458 bytes .../cyou/chenx221/mapper/ScoreDao.class | Bin 0 -> 316 bytes .../chenx221/mapper/impl/ScoreDaoImpl.class | Bin 0 -> 925 bytes .../classes/cyou/chenx221/pojo/Course.class | Bin 2006 -> 2236 bytes .../classes/cyou/chenx221/pojo/Score.class | Bin 2166 -> 2378 bytes .../classes/cyou/chenx221/pojo/Student.class | Bin 3453 -> 3528 bytes .../cyou/chenx221/service/ScoreService.class | Bin 0 -> 741 bytes .../WEB-INF/classes/mapper/ScoreMapper.xml | 29 +++ .../WEB-INF/classes/mybatis-config.xml | 1 + .../WEB-INF/views/dashboard.jsp | 2 +- .../WEB-INF/views/scoreList.jsp | 175 ++++++++++++++++++ .../chenx221/controller/ScoreController.java | 13 ++ .../java/cyou/chenx221/mapper/ScoreDao.java | 4 + .../chenx221/mapper/impl/ScoreDaoImpl.java | 13 ++ .../main/java/cyou/chenx221/pojo/Course.java | 9 + .../main/java/cyou/chenx221/pojo/Score.java | 8 + .../main/java/cyou/chenx221/pojo/Student.java | 7 +- .../cyou/chenx221/service/ScoreService.java | 7 + .../src/main/resources/mapper/ScoreMapper.xml | 24 ++- .../src/main/resources/mybatis-config.xml | 1 + project2/web/WEB-INF/views/dashboard.jsp | 2 +- project2/web/WEB-INF/views/scoreList.jsp | 175 ++++++++++++++++++ 22 files changed, 466 insertions(+), 4 deletions(-) create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/ScoreController.class create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/ScoreDao.class create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/impl/ScoreDaoImpl.class create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/service/ScoreService.class create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/ScoreMapper.xml create mode 100644 project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreList.jsp create mode 100644 project2/web/WEB-INF/views/scoreList.jsp diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/ScoreController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/ScoreController.class new file mode 100644 index 0000000000000000000000000000000000000000..1bf41839beb66ec14a0cec5df1c90e65ca9532f2 GIT binary patch literal 1458 zcma)6T~8B16g@*r7uxbwJ_JETKtR zg{X;-KKPrA@$R-jE0vh0GjnI|J@?!*cjxEtuipWzVl9degfxWX=tP8}e@{Qqxv5(f z{=Bp&48;&xk(N|z454IdyBl5T))0*&hB!mgII=x%>>QGIgo~6m@Tx1y7hy4T*E7;p_gH%)p1vtHNt;M0hV4BPXjZG9)$d1AdUnE z84?wt);-4&mOAxh7)quJ=k*npBdtoV3&RXuUIQ+MD;U)<7RObLGfdb{g}XK1amS%- zhqklNJ;^uivM{M8yZ!2;a0*7c`eDTn0*fu94<}SZ);8F{R-~9MhO# zm~K^~on*v`D$ko{pubB(oYw3qY4U<}6=k@|&>dv(ZHBqz|6E3Dn<2bTg){UOq$Qqt z)sk>t=p~bO5(V4P&28P0zTMait6fPH(tn}q&`pnSAZm68c?2bBuY5aRTjH%J+$L@j9&{RR(96+5 zZw~3>za6ydpmis1(L6`i2F?C?G<^b=&U}XUG4M&!*ozR20|--WHwKX+YozXtG%{pS zT!6}urFDdmZ_~^$58l9kPZ&N*_8WR$pP=s;{hQez=*c98vR^O~!mCVTBK-;4F(&JF zV)g_1hu||9A*P_WA%;=(VT^v`#9|^~GF8VtW0J)kEKu$k)jW(v%72$)yTE>7Ov6&Z gu$Rv7)BnL6Fc-_@^N@Tx@F+M<&?-mv%9+RNADn80oB#j- literal 0 HcmV?d00001 diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/ScoreDao.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/mapper/ScoreDao.class new file mode 100644 index 0000000000000000000000000000000000000000..876b637e4a5d97d101ae6005b22433aac78fea1f GIT binary patch literal 316 zcmZWl!Ab)$5PhlIwXFs5=E1unG}!B^P>`M$gf4hbmvPOS&4eVY?yq_91NcOHQtH~O*m)9I{3Bc!e|;S{{NtM6Ch@f7&R4Y7 zCaLGYX%;&ZfzwTAqi*Rz2fa14vX-NYnr#rcEZEmFIInH}=v7Ov?4Me>WJ( z&@vSERjlj*L$2BCm#~gf5oI40_zX|OiOzU)0(9+t0L~IIz?ZuW9d9KZSK9C|#`Kbu4HWMxu4ZNFKeXfi=A=-L#X*3L_o*Kr&W`^YN zE*0$mCpyt1JzIs&0Wp?)Iy0d>RL*?uVwi44cHM7b*jcGIwbDp!CyC@oGSR7Wsylc{ z%jkjOIz66SNLp!!*KmX4O+tqhJ&NV_cd+)(Hx$22YqsgVfgHW7$fJf5>bON{YgUch zxI>8grmVCKbS@C{J&KGv@6Y+4Q)HC$+h0+vU-^Me51$Epa5uOP$LW~;S>2rZ0cAYW O@8Qw(^muVY1NaM91?xNj literal 0 HcmV?d00001 diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/Course.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/Course.class index 143d5bcbbbccb3dadf82ee48d328842d7e33ba71..87d2d8cdfc2d43f4f5178fed56d4b7909beec710 100644 GIT binary patch delta 552 zcmZvYyG{aO5QWdbSKKUjM36JXKS>z@(JuGRz84*jU*BiW3;i+ z*2Lb%_!P$BhlmBmo|*jl&YYS32tJ0bx1Wb603Gb~tXCn5bfCoOTSUlKg7hvr)Kwfx zDh)bTZUUS&l~+K6L~a_WoNpf7b#w5h6jT1Oy5H7!HuT3Oh1t)0=G7Vd_;avx@o zQxqgvBhXm=tN~0R$QnYDU$RhHgGeFGbdkJR35WSzW)-fMcMsu}`Us8F12Scn{SNyRGC4k^|B|g?GF|9iI>lsKQnuVhA5j7Y zxb$g6z0fU34No&9lAVYzAWyd8>IFW+rDtP?_6?u9h~i)fof=`MIMKHRk1p9)W?zMU zb81O?3Up=K{_#3x<}#+MH<)Y6`A4QttuT9H*4nLqvm>JuR8-~W%UI#+wcJ$z( zOGu|6>I3v43ZiQS(Fh)8m>Gtd-|)VbN)z>_l?S zv(9zLKkxK={z?C;+v{G`^KBXghE~bMHg+V+K}1lYrt&QI$X1Wlnt)3q#i3ip(j^WA zlG9Ssz3NF50ve)pq($jlZPQTm>;FozJwMTB9~hgP9W-A#nKvy3<^3^E5MSCHT= zu!b}}=o#VAot~l}J*mYfT`C&R{3`DdZ0pEULuO*BnHzG*(~WesG;^5=M`LLy8_c{g zlby*Fm{AQ^D=_0RlTtjMZy6=}ltF)Ks!qWsYYdVAw%B*E&(-AqD(d|4*gvFW BKi&WU diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/Score.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/pojo/Score.class index 490e111e1061793d1409976db9e510ff53357230..e48a648509987d72929ff5eb5fb5c436a763a445 100644 GIT binary patch delta 770 zcmY*XO-~b16g|_Kc~gdgeoYIVU{NezLrblQA1DeaCMGW2y0alo6E&D1aa-29(8=5R zD>TxW5W`A0B*s7B%75TScgAyHn<|TU?|XCaJ?Gqe=U4V5@1OiRItH+g?ZiJQ1Qy)q zJJ0soBS<3`Adf=ws;-IwN|;EF=ab)W!^MUBk6SNVji;^MPUGJ0e!J7&)8DOqome{` z9;7I;G zn-Hb2EIew!vqEn%%@v-1=sxp6Oa~eLMisj*&JPL>7;zbkP6^A#^&Y~w?3~gVkp{>S zB~Oh7;)S$Dl-asyz0^kl@rc4we8?qJ zB~QpRc7#db9V02o!ewK?n!%NSg%tx_n}d|BRk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)1R0Hk+)o7gDj8%n4zdW4hb=((pfSiQ zt>GHqnz1;@QXh$3&W`zjTMH~8eR{lYc$!2Yz&Q*=mki2LGm@)*&g-NOL%&P9`YKE z^cz9=^%O*u6Gt6}%Gt8e!nPIMr9RKPE Lzk-_MPtM*ysRlVM diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/service/ScoreService.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/service/ScoreService.class new file mode 100644 index 0000000000000000000000000000000000000000..6d20c4421e7ff0ac9298e3b0bdbdffba4467dd85 GIT binary patch literal 741 zcmah{!EVz)5Pg%Rag(@BYoJh|6cC3bNVTZArBtdwJy{?Tl>5dk?gnSqTCWTJE0914 z4*h_B6k=@WPzr*}Xx`47H*a_L;^&WZ0MBs0iw2q=T0U0LCTz^bsR&b{lknASE@MY% zA1JNdA)z@KPCHmd$3xdg4?f{xd}fL;K9Tz4{{E9Nm-bY}GMvQ5%1I3ft9c1u2t(M7 zes5TaER(k8Ghy7rI{F?qd~6~h?EI5W=q1t}rD-*e5DbPuQNVmt?tAWHkQY#^tO5VmG{bv6SiL$+Np({s$8+*Bdv`SP8rRU z2a&N!m}ge$MgBj8%8`IHfrwb2)N-?2vc g#HfK%vt3n!O3SZVORd`#=MMAkR@n~jE&02^FP77-qyPW_ literal 0 HcmV?d00001 diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/ScoreMapper.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/ScoreMapper.xml new file mode 100644 index 0000000..820fd7d --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mapper/ScoreMapper.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml index fa3bc53..400caaf 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/mybatis-config.xml @@ -13,6 +13,7 @@ + diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp index f5d011a..014f011 100644 --- a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp @@ -48,9 +48,9 @@
  • +
  • 成绩查看
  • 成绩管理
  • 学生成绩管理
  • -
  • 学生成绩管理
  • diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreList.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreList.jsp new file mode 100644 index 0000000..7987f95 --- /dev/null +++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/scoreList.jsp @@ -0,0 +1,175 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 成绩信息查看 + + + + + + + + + + +
    + +
    + + + + +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    成绩ID学号课程名成绩
    ${score.scoreID}${score.student.id}${score.course.courseName}${score.score}
    +
    +
    +
    +
    +
    + + + + +
    +
    + + + + + + + + + \ No newline at end of file diff --git a/project2/src/main/java/cyou/chenx221/controller/ScoreController.java b/project2/src/main/java/cyou/chenx221/controller/ScoreController.java index 77c9908..30b8e17 100644 --- a/project2/src/main/java/cyou/chenx221/controller/ScoreController.java +++ b/project2/src/main/java/cyou/chenx221/controller/ScoreController.java @@ -1,8 +1,11 @@ package cyou.chenx221.controller; +import cyou.chenx221.helper.UsernameHelper; import cyou.chenx221.service.ScoreService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @Controller @@ -14,4 +17,14 @@ public class ScoreController { public ScoreController(ScoreService scoreService) { this.scoreService = scoreService; } + + @GetMapping("/all") + public String getAllScore(Model model){ + String username = new UsernameHelper().getCurrentUsername(); + if (username != null) { + model.addAttribute("username", username); + } + model.addAttribute("scores", scoreService.getAllScores()); + return "scoreList"; + } } diff --git a/project2/src/main/java/cyou/chenx221/mapper/ScoreDao.java b/project2/src/main/java/cyou/chenx221/mapper/ScoreDao.java index 86fb118..25ee739 100644 --- a/project2/src/main/java/cyou/chenx221/mapper/ScoreDao.java +++ b/project2/src/main/java/cyou/chenx221/mapper/ScoreDao.java @@ -1,7 +1,11 @@ package cyou.chenx221.mapper; +import cyou.chenx221.pojo.Score; import org.springframework.stereotype.Repository; +import java.util.List; + @Repository public interface ScoreDao { + List getAllScore(); } diff --git a/project2/src/main/java/cyou/chenx221/mapper/impl/ScoreDaoImpl.java b/project2/src/main/java/cyou/chenx221/mapper/impl/ScoreDaoImpl.java index 13f242b..c51f4e6 100644 --- a/project2/src/main/java/cyou/chenx221/mapper/impl/ScoreDaoImpl.java +++ b/project2/src/main/java/cyou/chenx221/mapper/impl/ScoreDaoImpl.java @@ -1,11 +1,24 @@ package cyou.chenx221.mapper.impl; import cyou.chenx221.mapper.ScoreDao; +import cyou.chenx221.pojo.Score; import org.apache.ibatis.session.SqlSession; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; +import java.util.List; + @Repository public class ScoreDaoImpl implements ScoreDao { private SqlSession sqlSession; + @Autowired + public ScoreDaoImpl(SqlSession sqlSession){ + this.sqlSession = sqlSession; + } + + @Override + public List getAllScore() { + return sqlSession.selectList("getAllScore"); + } } diff --git a/project2/src/main/java/cyou/chenx221/pojo/Course.java b/project2/src/main/java/cyou/chenx221/pojo/Course.java index ad3b6b3..707ad16 100644 --- a/project2/src/main/java/cyou/chenx221/pojo/Course.java +++ b/project2/src/main/java/cyou/chenx221/pojo/Course.java @@ -10,12 +10,21 @@ public class Course { Description = description; } + public Course(Integer courseID, String courseName) { + CourseID = courseID; + CourseName = courseName; + } + public Course(Integer courseID, String courseName, String description) { CourseID = courseID; CourseName = courseName; Description = description; } + public Course(Integer courseID) { + CourseID = courseID; + } + public Course() { } diff --git a/project2/src/main/java/cyou/chenx221/pojo/Score.java b/project2/src/main/java/cyou/chenx221/pojo/Score.java index 32fffe0..4950975 100644 --- a/project2/src/main/java/cyou/chenx221/pojo/Score.java +++ b/project2/src/main/java/cyou/chenx221/pojo/Score.java @@ -6,6 +6,14 @@ public class Score { private Course course; //。。。 private Integer score; //成绩 + public Score(Integer scoreID, Integer score) { + ScoreID = scoreID; + this.score = score; + } + + public Score() { + } + public Score(Integer scoreID, Student student, Course course, Integer score) { ScoreID = scoreID; this.student = student; diff --git a/project2/src/main/java/cyou/chenx221/pojo/Student.java b/project2/src/main/java/cyou/chenx221/pojo/Student.java index 32781e7..d5134c0 100644 --- a/project2/src/main/java/cyou/chenx221/pojo/Student.java +++ b/project2/src/main/java/cyou/chenx221/pojo/Student.java @@ -18,7 +18,7 @@ public class Student { private int removed; - public Student(int id) { + public Student(Integer id) { this.id = id; } @@ -102,6 +102,11 @@ public class Student { public Student() { } + public Student(Integer id, String name) { + this.id = id; + this.name = name; + } + public String getClasses() { return classes; } diff --git a/project2/src/main/java/cyou/chenx221/service/ScoreService.java b/project2/src/main/java/cyou/chenx221/service/ScoreService.java index c432d71..f1292a5 100644 --- a/project2/src/main/java/cyou/chenx221/service/ScoreService.java +++ b/project2/src/main/java/cyou/chenx221/service/ScoreService.java @@ -1,8 +1,11 @@ package cyou.chenx221.service; import cyou.chenx221.mapper.ScoreDao; +import cyou.chenx221.pojo.Score; import org.springframework.stereotype.Service; +import java.util.List; + @Service public class ScoreService { private ScoreDao scoreDao; @@ -10,4 +13,8 @@ public class ScoreService { public ScoreService(ScoreDao scoreDao) { this.scoreDao = scoreDao; } + + public List getAllScores() { + return scoreDao.getAllScore(); + } } diff --git a/project2/src/main/resources/mapper/ScoreMapper.xml b/project2/src/main/resources/mapper/ScoreMapper.xml index 2ffba4b..820fd7d 100644 --- a/project2/src/main/resources/mapper/ScoreMapper.xml +++ b/project2/src/main/resources/mapper/ScoreMapper.xml @@ -2,6 +2,28 @@ - + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/project2/src/main/resources/mybatis-config.xml b/project2/src/main/resources/mybatis-config.xml index fa3bc53..400caaf 100644 --- a/project2/src/main/resources/mybatis-config.xml +++ b/project2/src/main/resources/mybatis-config.xml @@ -13,6 +13,7 @@ + diff --git a/project2/web/WEB-INF/views/dashboard.jsp b/project2/web/WEB-INF/views/dashboard.jsp index f5d011a..014f011 100644 --- a/project2/web/WEB-INF/views/dashboard.jsp +++ b/project2/web/WEB-INF/views/dashboard.jsp @@ -48,9 +48,9 @@
  • +
  • 成绩查看
  • 成绩管理
  • 学生成绩管理
  • -
  • 学生成绩管理
  • diff --git a/project2/web/WEB-INF/views/scoreList.jsp b/project2/web/WEB-INF/views/scoreList.jsp new file mode 100644 index 0000000..7987f95 --- /dev/null +++ b/project2/web/WEB-INF/views/scoreList.jsp @@ -0,0 +1,175 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + + + + + + + + 成绩信息查看 + + + + + + + + + + +
    + +
    + + + + +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + +
    成绩ID学号课程名成绩
    ${score.scoreID}${score.student.id}${score.course.courseName}${score.score}
    +
    +
    +
    +
    +
    + + + + +
    +
    + + + + + + + + + \ No newline at end of file