├── screenshot
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
└── 8.png
├── src
├── main
│ ├── java
│ │ └── net
│ │ │ └── fuzui
│ │ │ └── StudentInfo
│ │ │ ├── pojo
│ │ │ ├── EndCourseResult.java
│ │ │ ├── CourseGrade.java
│ │ │ ├── Grade.java
│ │ │ ├── SC.java
│ │ │ ├── StuExitSelect.java
│ │ │ ├── Teacher.java
│ │ │ ├── Course.java
│ │ │ ├── Student.java
│ │ │ └── StuSelectResult.java
│ │ │ ├── mysql_rws
│ │ │ ├── DynamicDataSourceGlobal.java
│ │ │ ├── DynamicDataSourceHolder.java
│ │ │ ├── DynamicDataSourceTransactionManager.java
│ │ │ └── DynamicDataSource.java
│ │ │ ├── mapper
│ │ │ ├── GradeMapper.java
│ │ │ ├── AdminMapper.java
│ │ │ ├── TeacherMapper.java
│ │ │ ├── CourseMapper.java
│ │ │ └── SelectCourseMapper.java
│ │ │ ├── service
│ │ │ ├── GradeService.java
│ │ │ ├── AdminService.java
│ │ │ ├── impl
│ │ │ │ ├── AdminServiceImpl.java
│ │ │ │ └── GradeServiceImpl.java
│ │ │ ├── TeacherService.java
│ │ │ └── CourseService.java
│ │ │ ├── handler
│ │ │ └── MyListTypeHandler.java
│ │ │ └── interceptor
│ │ │ ├── LoginInterceptor.java
│ │ │ ├── StudentLoginInterceptor.java
│ │ │ └── TeacherLoginInterceptor.java
│ ├── webapp
│ │ ├── utils
│ │ │ ├── image
│ │ │ │ ├── favicon.ico
│ │ │ │ ├── background.jpg
│ │ │ │ ├── login
│ │ │ │ │ ├── icon.png
│ │ │ │ │ ├── imac.png
│ │ │ │ │ └── imac-2x.png
│ │ │ │ ├── tile
│ │ │ │ │ ├── ribbon.png
│ │ │ │ │ └── ribbon-2x.png
│ │ │ │ ├── video
│ │ │ │ │ └── poster.jpg
│ │ │ │ ├── carousel
│ │ │ │ │ ├── img001.png
│ │ │ │ │ ├── image-01.jpg
│ │ │ │ │ ├── image-02.jpg
│ │ │ │ │ └── image-03.jpg
│ │ │ │ └── icons
│ │ │ │ │ ├── android.svg
│ │ │ │ │ ├── ipad.svg
│ │ │ │ │ ├── iphone.svg
│ │ │ │ │ ├── magicmouse.svg
│ │ │ │ │ ├── arrow.svg
│ │ │ │ │ ├── yinyang.svg
│ │ │ │ │ ├── android1.svg
│ │ │ │ │ ├── file.svg
│ │ │ │ │ ├── macbook.svg
│ │ │ │ │ ├── egg.svg
│ │ │ │ │ ├── loop.svg
│ │ │ │ │ ├── paper-bag.svg
│ │ │ │ │ ├── pc.svg
│ │ │ │ │ ├── google.svg
│ │ │ │ │ ├── graph.svg
│ │ │ │ │ ├── imac.svg
│ │ │ │ │ ├── user-interface.svg
│ │ │ │ │ ├── printer.svg
│ │ │ │ │ ├── card.svg
│ │ │ │ │ ├── icecream.svg
│ │ │ │ │ ├── flag.svg
│ │ │ │ │ ├── toilet-paper.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── camera.svg
│ │ │ │ │ ├── pills.svg
│ │ │ │ │ ├── shield.svg
│ │ │ │ │ ├── clocks.svg
│ │ │ │ │ ├── medal.svg
│ │ │ │ │ ├── fit.svg
│ │ │ │ │ ├── flower.svg
│ │ │ │ │ ├── touch.svg
│ │ │ │ │ ├── chat.svg
│ │ │ │ │ ├── mail.svg
│ │ │ │ │ ├── chair.svg
│ │ │ │ │ ├── search.svg
│ │ │ │ │ ├── storage.svg
│ │ │ │ │ ├── save.svg
│ │ │ │ │ ├── pencil.svg
│ │ │ │ │ ├── ring.svg
│ │ │ │ │ ├── responsive.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── dude.svg
│ │ │ │ │ ├── goal.svg
│ │ │ │ │ ├── lock.svg
│ │ │ │ │ ├── magic.svg
│ │ │ │ │ ├── book.svg
│ │ │ │ │ ├── map.svg
│ │ │ │ │ ├── spray.svg
│ │ │ │ │ ├── ubmrella.svg
│ │ │ │ │ ├── girl.svg
│ │ │ │ │ ├── shirt.svg
│ │ │ │ │ ├── bulb.svg
│ │ │ │ │ ├── wine.svg
│ │ │ │ │ ├── converse.svg
│ │ │ │ │ ├── app-store.svg
│ │ │ │ │ ├── clipboard.svg
│ │ │ │ │ ├── video.svg
│ │ │ │ │ ├── mountain.svg
│ │ │ │ │ ├── retina.svg
│ │ │ │ │ ├── skateboard.svg
│ │ │ │ │ ├── lettersymbol.svg
│ │ │ │ │ ├── settings.svg
│ │ │ │ │ ├── art.svg
│ │ │ │ │ ├── bag.svg
│ │ │ │ │ ├── brush.svg
│ │ │ │ │ ├── cup.svg
│ │ │ │ │ ├── key.svg
│ │ │ │ │ ├── pencils.svg
│ │ │ │ │ ├── rss.svg
│ │ │ │ │ ├── wi-fi.svg
│ │ │ │ │ ├── safe.svg
│ │ │ │ │ ├── mortarboard.svg
│ │ │ │ │ ├── dj.svg
│ │ │ │ │ ├── news.svg
│ │ │ │ │ ├── picture.svg
│ │ │ │ │ ├── rocket.svg
│ │ │ │ │ ├── support.svg
│ │ │ │ │ ├── earth.svg
│ │ │ │ │ ├── building.svg
│ │ │ │ │ ├── trip-bag.svg
│ │ │ │ │ ├── trash.svg
│ │ │ │ │ ├── bowling.svg
│ │ │ │ │ ├── flask.svg
│ │ │ │ │ ├── mic.svg
│ │ │ │ │ ├── calculator.svg
│ │ │ │ │ └── trunk.svg
│ │ │ ├── fonts
│ │ │ │ ├── lato
│ │ │ │ │ ├── lato-black.eot
│ │ │ │ │ ├── lato-black.ttf
│ │ │ │ │ ├── lato-black.woff
│ │ │ │ │ ├── lato-bold.eot
│ │ │ │ │ ├── lato-bold.ttf
│ │ │ │ │ ├── lato-bold.woff
│ │ │ │ │ ├── lato-italic.eot
│ │ │ │ │ ├── lato-italic.ttf
│ │ │ │ │ ├── lato-light.eot
│ │ │ │ │ ├── lato-light.ttf
│ │ │ │ │ ├── lato-light.woff
│ │ │ │ │ ├── lato-italic.woff
│ │ │ │ │ ├── lato-regular.eot
│ │ │ │ │ ├── lato-regular.ttf
│ │ │ │ │ ├── lato-regular.woff
│ │ │ │ │ ├── lato-bolditalic.eot
│ │ │ │ │ ├── lato-bolditalic.ttf
│ │ │ │ │ └── lato-bolditalic.woff
│ │ │ │ └── glyphicons
│ │ │ │ │ ├── flat-ui-pro-icons-regular.eot
│ │ │ │ │ ├── flat-ui-pro-icons-regular.ttf
│ │ │ │ │ └── flat-ui-pro-icons-regular.woff
│ │ │ ├── js
│ │ │ │ └── timer.js
│ │ │ └── scripts
│ │ │ │ └── bganimation.js
│ │ ├── teacher
│ │ │ ├── teacherLeft.jsp
│ │ │ ├── teacherFace.jsp
│ │ │ ├── modityPw.jsp
│ │ │ └── queryVita.jsp
│ │ ├── admin
│ │ │ ├── adminLeft.jsp
│ │ │ └── adminFace.jsp
│ │ ├── fail.jsp
│ │ ├── success.jsp
│ │ ├── student
│ │ │ ├── studentFace.jsp
│ │ │ ├── studentLeft.jsp
│ │ │ ├── modityPwStu.jsp
│ │ │ ├── noseling.jsp
│ │ │ └── seling.jsp
│ │ └── WEB-INF
│ │ │ └── web.xml
│ └── resources
│ │ ├── mapper
│ │ ├── AdminMapper.xml
│ │ ├── GradeMapper.xml
│ │ └── TeacherMapper.xml
│ │ └── config
│ │ ├── mybatis
│ │ └── mybatis-config.xml
│ │ └── log
│ │ └── logback.xml
└── test
│ └── java
│ └── net
│ └── fuzui
│ └── StudentInfo
│ ├── AppTest.java
│ └── service
│ └── impl
│ └── AdminTestApp.java
├── .gitignore
└── README.md
/screenshot/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/1.png
--------------------------------------------------------------------------------
/screenshot/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/2.png
--------------------------------------------------------------------------------
/screenshot/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/3.png
--------------------------------------------------------------------------------
/screenshot/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/4.png
--------------------------------------------------------------------------------
/screenshot/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/5.png
--------------------------------------------------------------------------------
/screenshot/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/6.png
--------------------------------------------------------------------------------
/screenshot/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/7.png
--------------------------------------------------------------------------------
/screenshot/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/screenshot/8.png
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/pojo/EndCourseResult.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.pojo;
2 |
3 | public class EndCourseResult {
4 |
5 |
6 | }
7 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/favicon.ico
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/background.jpg
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/login/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/login/icon.png
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/login/imac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/login/imac.png
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/tile/ribbon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/tile/ribbon.png
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/login/imac-2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/login/imac-2x.png
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/video/poster.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/video/poster.jpg
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-black.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-black.eot
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-black.ttf
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-black.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-black.woff
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-bold.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-bold.eot
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-bold.ttf
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-bold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-bold.woff
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-italic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-italic.eot
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-italic.ttf
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-light.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-light.eot
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-light.ttf
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-light.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-light.woff
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/carousel/img001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/carousel/img001.png
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/tile/ribbon-2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/tile/ribbon-2x.png
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-italic.woff
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-regular.eot
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-regular.ttf
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-regular.woff
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/carousel/image-01.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/carousel/image-01.jpg
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/carousel/image-02.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/carousel/image-02.jpg
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/carousel/image-03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/image/carousel/image-03.jpg
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-bolditalic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-bolditalic.eot
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-bolditalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-bolditalic.ttf
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/lato/lato-bolditalic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/lato/lato-bolditalic.woff
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.eot
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.ttf
--------------------------------------------------------------------------------
/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/YuLin-Coder/No23StudentInformationManagementSystem2/HEAD/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.woff
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mysql_rws/DynamicDataSourceGlobal.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mysql_rws;
2 | /**
3 | * @author fuzui
4 | * @date 2019年3月17日 下午5:29:15
5 | *
6 | */
7 | public enum DynamicDataSourceGlobal {
8 | READ,WRITE;
9 | }
10 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/android.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/ipad.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/iphone.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/magicmouse.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/AdminMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/arrow.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/yinyang.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/android1.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/file.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/macbook.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/egg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/loop.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/paper-bag.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/pc.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/google.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/graph.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/imac.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mapper/GradeMapper.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mapper;
2 |
3 | import java.util.List;
4 | import java.util.Map;
5 |
6 | import net.fuzui.StudentInfo.pojo.Grade;
7 |
8 | public interface GradeMapper {
9 | /**
10 | * 添加成绩
11 | * @param grand 成绩
12 | * @return 插入结果 !=0则插入成功
13 | */
14 | public int insertGrade(Grade grade);
15 |
16 | /**
17 | * 查询学生自己的总学分
18 | */
19 | public String queryCreditsSum(String sid);
20 |
21 | /**
22 | * 学生查看本人已修改课程
23 | */
24 | public List getEedCourseBySid(Map data);
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/service/GradeService.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.service;
2 |
3 | import java.util.List;
4 | import java.util.Map;
5 |
6 | import net.fuzui.StudentInfo.pojo.Grade;
7 |
8 | public interface GradeService {
9 |
10 | /**
11 | * 添加成绩
12 | * @param grand 成绩
13 | * @return 插入结果 !=0则插入成功
14 | */
15 | public int insertGrade(Grade grade);
16 | /**
17 | * 查询学生自己的总学分
18 | */
19 | public String queryCreditsSum(String sid);
20 | /**
21 | * 学生查看本人已修改课程
22 | */
23 | public List getEedCourseBySid(int pageNo, int pageSize, String sid);
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/pojo/CourseGrade.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.pojo;
2 |
3 | public class CourseGrade {
4 |
5 | private String sid;
6 | private String sname;
7 | private String grade;
8 |
9 |
10 | public String getSid() {
11 | return sid;
12 | }
13 | public void setSid(String sid) {
14 | this.sid = sid;
15 | }
16 | public String getSname() {
17 | return sname;
18 | }
19 | public void setSname(String sname) {
20 | this.sname = sname;
21 | }
22 | public String getGrade() {
23 | return grade;
24 | }
25 | public void setGrade(String grade) {
26 | this.grade = grade;
27 | }
28 |
29 |
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/user-interface.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/resources/config/mybatis/mybatis-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/printer.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/card.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/service/AdminService.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.service;
2 |
3 | import org.springframework.stereotype.Service;
4 |
5 | /**
6 | * @ProjectName: StudentInfo
7 | * @Package: net.fuzui.StudentInfo.service
8 | * @ClassName: AdminService
9 | * @Description: 管理员service接口
10 | * @Author: 王泽
11 | * @CreateDate: 2019-04-09 22:03
12 | * @UpdateUser: 王泽
13 | * @UpdateDate: 2019-04-09 22:03
14 | * @UpdateRemark: 新建
15 | * @Version: 1.0
16 | */
17 |
18 | public interface AdminService {
19 |
20 | /**
21 | * 管理员登录设置
22 | * @param aname 管理员账号(唯一)
23 | * @param apassword 密码
24 | * @return
25 | */
26 | public String queryByNamePwd(String aname, String apassword);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/icecream.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mapper/AdminMapper.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mapper;
2 |
3 | import org.apache.ibatis.annotations.Param;
4 |
5 | /**
6 | * @ProjectName: StudentInfo
7 | * @Package: net.fuzui.StudentInfo.mapper
8 | * @ClassName: AdminMapper
9 | * @Description: 管理员数据访问层接口
10 | * @Author: 王泽
11 | * @CreateDate: 2019-04-09 21:59
12 | * @UpdateUser: 王泽
13 | * @UpdateDate: 2019-04-09 21:59
14 | * @UpdateRemark: 新建
15 | * @Version: 1.0
16 | */
17 | public interface AdminMapper {
18 |
19 | /**
20 | * 管理员登录设置
21 | * @param aname 管理员账号(唯一)
22 | * @param apassword 密码
23 | * @return
24 | */
25 | public String queryByNamePwd(@Param("aname") String aname, @Param("apassword") String apassword);
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/flag.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mysql_rws/DynamicDataSourceHolder.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mysql_rws;
2 | /**
3 | * @author fuzui
4 | * @date 2019年3月17日 下午5:47:47
5 | *
6 | */
7 | //使用ThreadLocal技术来记录当前线程中的数据源的key
8 | public class DynamicDataSourceHolder {
9 |
10 | private static final ThreadLocal holder = new ThreadLocal();
11 | private DynamicDataSourceHolder() {
12 |
13 | }
14 |
15 | //设置数据源
16 | public static void putDataSource(DynamicDataSourceGlobal dataSource) {
17 | holder.set(dataSource);
18 | }
19 | //获取数据源
20 | public static DynamicDataSourceGlobal getDataSource() {
21 | return holder.get();
22 | }
23 | //清理数据源
24 | public static void clearDataSource() {
25 | holder.remove();
26 | }
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/toilet-paper.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/box.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ######################################################################
2 | # Build Tools
3 |
4 | .gradle
5 | /build/
6 | !gradle/wrapper/gradle-wrapper.jar
7 |
8 | target/
9 | !.mvn/wrapper/maven-wrapper.jar
10 |
11 | out/
12 |
13 | ######################################################################
14 | # IDE
15 |
16 | ### STS ###
17 | .apt_generated
18 | .classpath
19 | .factorypath
20 | .project
21 | .settings
22 | .springBeans
23 |
24 | ### IntelliJ IDEA ###
25 | .idea
26 | *.iws
27 | *.iml
28 | *.ipr
29 |
30 | ### NetBeans ###
31 | nbproject/private/
32 | build/*
33 | nbbuild/
34 | dist/
35 | nbdist/
36 | .nb-gradle/
37 |
38 | ######################################################################
39 | # Others
40 | *.log
41 | *.xml.versionsBackup
42 | *.swp
43 |
44 | !*/build/*.java
45 | !*/build/*.html
46 | !*/build/*.xml
47 |
--------------------------------------------------------------------------------
/src/test/java/net/fuzui/StudentInfo/AppTest.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for simple App.
9 | */
10 | public class AppTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public AppTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( AppTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/main/resources/config/log/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
7 |
8 |
9 |
10 |
11 |
12 | ./logs/druid_info.log
13 |
14 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
15 |
16 |
17 |
18 | debug
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/camera.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/pills.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/shield.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/clocks.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/medal.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/fit.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/js/timer.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 | Date.prototype.Format = function (fmt) { //author: meizz
3 | var o = {
4 | "M+": this.getMonth() + 1, //月份
5 | "d+": this.getDate(), //日
6 | "h+": this.getHours(), //小时
7 | "m+": this.getMinutes(), //分
8 | "s+": this.getSeconds(), //秒
9 | "q+": Math.floor((this.getMonth() + 3) / 3), //季度
10 | "S": this.getMilliseconds() //毫秒
11 | };
12 | if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
13 | for (var k in o)
14 | if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
15 | return fmt;
16 | }
17 |
18 | var timerEl = $("#timer");
19 | timerEl.text(new Date().Format("yyyy-MM-dd hh:mm:ss"));
20 | setInterval(function(){
21 | timerEl.text(new Date().Format("yyyy-MM-dd hh:mm:ss"));
22 | },1000)
23 |
24 |
25 |
26 | })
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/flower.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/touch.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/chat.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/mail.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/chair.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/search.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/service/impl/AdminServiceImpl.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.service.impl;
2 |
3 | import net.fuzui.StudentInfo.mapper.AdminMapper;
4 | import net.fuzui.StudentInfo.service.AdminService;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | /**
9 | * @ProjectName: StudentInfo
10 | * @Package: net.fuzui.StudentInfo.service.impl
11 | * @ClassName: AdminServiceImpl
12 | * @Description: 管理员service具体实现类
13 | * @Author: 王泽
14 | * @CreateDate: 2019-04-09 22:03
15 | * @UpdateUser: 王泽
16 | * @UpdateDate: 2019-04-09 22:03
17 | * @UpdateRemark: 新建
18 | * @Version: 1.0
19 | */
20 | @Service
21 | public class AdminServiceImpl implements AdminService {
22 | @Autowired
23 | private AdminMapper adminMapper;
24 |
25 | /**
26 | * 管理员登录设置
27 | * @param aname 管理员账号(唯一)
28 | * @param apassword 密码
29 | * @return
30 | */
31 | @Override
32 | public String queryByNamePwd(String aname, String apassword) {
33 | return adminMapper.queryByNamePwd(aname,apassword);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/storage.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/save.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/pencil.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/pojo/Grade.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.pojo;
2 | /**
3 | * 成绩实体类
4 | * @author wangze
5 | *
6 | */
7 | public class Grade {
8 | private String cid;
9 | private String cname;
10 | private String sid;
11 | private Integer grade;
12 | private Integer credits;
13 |
14 | public String getCid() {
15 | return cid;
16 | }
17 | public void setCid(String cid) {
18 | this.cid = cid;
19 | }
20 |
21 | public String getCname() {
22 | return cname;
23 | }
24 | public void setCname(String cname) {
25 | this.cname = cname;
26 | }
27 | public String getSid() {
28 | return sid;
29 | }
30 | public void setSid(String sid) {
31 | this.sid = sid;
32 | }
33 | public Integer getGrade() {
34 | return grade;
35 | }
36 | public void setGrade(Integer grade) {
37 | this.grade = grade;
38 | }
39 | public Integer getCredits() {
40 | return credits;
41 | }
42 | public void setCredits(Integer credits) {
43 | this.credits = credits;
44 | }
45 | @Override
46 | public String toString() {
47 | return "Grade [cid=" + cid + ", sid=" + sid + ", grade=" + grade + ", credits=" + credits + "]";
48 | }
49 |
50 |
51 |
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/ring.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/responsive.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/eye.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/service/impl/GradeServiceImpl.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.service.impl;
2 |
3 | import java.util.HashMap;
4 | import java.util.List;
5 | import java.util.Map;
6 |
7 | import org.springframework.beans.factory.annotation.Autowired;
8 | import org.springframework.stereotype.Service;
9 |
10 | import net.fuzui.StudentInfo.mapper.GradeMapper;
11 | import net.fuzui.StudentInfo.pojo.Grade;
12 | import net.fuzui.StudentInfo.service.GradeService;
13 |
14 | @Service
15 | public class GradeServiceImpl implements GradeService {
16 |
17 | @Autowired
18 | private GradeMapper gradeMapper;
19 |
20 | @Override
21 | public int insertGrade(Grade grade) {
22 |
23 | return gradeMapper.insertGrade(grade);
24 | }
25 |
26 | @Override
27 | public String queryCreditsSum(String sid) {
28 | return gradeMapper.queryCreditsSum(sid);
29 | }
30 |
31 | @Override
32 | public List getEedCourseBySid(int pageNo, int pageSize, String sid) {
33 | Map data = new HashMap();
34 | data.put("pageNo",(pageNo-1) * pageSize);
35 | data.put("pageSize",pageSize);
36 | data.put("sid",sid);
37 | return gradeMapper.getEedCourseBySid(data);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/dude.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/goal.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/lock.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/magic.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/book.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/pojo/SC.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.pojo;
2 |
3 | /**
4 | * @ProjectName: StudentInfo
5 | * @Package: net.fuzui.StudentInfo.pojo
6 | * @ClassName: SC
7 | * @Description: 选课实体类
8 | * @Author: 王泽
9 | * @CreateDate: 2019-04-06 16:39
10 | * @UpdateUser: 王泽
11 | * @UpdateDate: 2019-04-06 16:39
12 | * @UpdateRemark: 新建
13 | * @Version: 1.0
14 | */
15 | public class SC implements java.io.Serializable {
16 | /**
17 | * 序列化
18 | */
19 | private static final long serialVersionUID = 1L;
20 | //id主键
21 | private Integer id;
22 | //学号
23 | private String sid;
24 | //课程编号
25 | private String cid;
26 |
27 | /**
28 | * 默认构造方法
29 | */
30 | public SC() {
31 |
32 | }
33 |
34 | /**
35 | * 置取方法
36 | */
37 | public Integer getId() {
38 | return id;
39 | }
40 |
41 |
42 | public void setId(Integer id) {
43 | this.id = id;
44 | }
45 |
46 |
47 | public String getSid() {
48 | return sid;
49 | }
50 |
51 | public void setSid(String sid) {
52 | this.sid = sid;
53 | }
54 |
55 | public String getCid() {
56 | return cid;
57 | }
58 |
59 | public void setCid(String cid) {
60 | this.cid = cid;
61 | }
62 |
63 |
64 | }
65 |
66 |
67 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/map.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/spray.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mysql_rws/DynamicDataSourceTransactionManager.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mysql_rws;
2 |
3 | import org.springframework.jdbc.datasource.DataSourceTransactionManager;
4 | import org.springframework.transaction.TransactionDefinition;
5 |
6 | /**
7 | * 自定义事务
8 | *
9 | */
10 | public class DynamicDataSourceTransactionManager extends DataSourceTransactionManager {
11 | private static final long serialVersionUID = 1L;
12 |
13 | /**
14 | * 只读事务到读库,读写事务到写库
15 | *
16 | * @param transaction
17 | * @param definition
18 | */
19 | @Override
20 | protected void doBegin(Object transaction, TransactionDefinition definition) {
21 |
22 | // 设置数据源
23 | boolean readOnly = definition.isReadOnly();
24 | if (readOnly) {
25 | DynamicDataSourceHolder.putDataSource(DynamicDataSourceGlobal.READ);
26 | } else {
27 | DynamicDataSourceHolder.putDataSource(DynamicDataSourceGlobal.WRITE);
28 | }
29 | super.doBegin(transaction, definition);
30 | }
31 |
32 | /**
33 | * 清理本地线程的数据源
34 | *
35 | * @param transaction
36 | */
37 | @Override
38 | protected void doCleanupAfterCompletion(Object transaction) {
39 | super.doCleanupAfterCompletion(transaction);
40 | DynamicDataSourceHolder.clearDataSource();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/teacherLeft.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
29 |
30 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/ubmrella.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/girl.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/shirt.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/bulb.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/admin/adminLeft.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/wine.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/converse.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/fail.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 |
7 | 操作失败
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
操作失败!
22 | ${requestScope.msg}
23 |
24 |
25 | 请联系管理员
点击返回
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/main/webapp/success.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 |
8 | 操作成功
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
操作成功!
21 |
22 |
点击返回
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/app-store.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/clipboard.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 23.基于ssm的学生信息管理系统
2 |
3 | - 完整代码获取地址:从戎源码网 ([https://armycodes.com/](https://armycodes.com/))
4 | - 技术探讨、资料分享,请加QQ群:692619798
5 | - 作者微信:19941326836 QQ:952045282
6 | - 承接计算机毕业设计、Java毕业设计、Python毕业设计、深度学习、机器学习
7 | - 选题+开题报告+任务书+程序定制+安装调试+论文+答辩ppt 一条龙服务
8 | - 所有选题地址 ([https://github.com/YuLin-Coder/AllProjectCatalog](https://github.com/YuLin-Coder/AllProjectCatalog))
9 |
10 | ## 项目介绍
11 |
12 | 基于ssm的学生信息管理系统:由SpringMVC+MyBatis为主要框架,mysql配置主从复制实现读写分离。前端主要由bootstrap完成,背景用particles.js插件。数据库交互查询用到pagehelper分页。在添加修改相关功能时通过ajax来验证其主键是否存在可用。代码层次清晰,输入框约束较高,已配置登录拦截。
13 |
14 | ## 主要功能
15 |
16 | ### 学生
17 |
18 | - 选课:按课程编号查询、按课程名称查询、按所属学院查询、按课程类型查询、课程列表、选课操作、确定选课、查看选课结果、退选课程
19 | - 已修课程:已修课程列表(课程编号、课程名、成绩、学分)
20 | - 个人信息管理:个人信息查看、密码修改
21 |
22 | ### 老师
23 |
24 | - 添加教学课程:按课程编号查询、按课程名称查询、按所属学院查询、按课程类型查询、课程列表、选择课程、课程已有老师代课无法选择
25 | - 管理教学课程:教学课程列表、教学课程修改、教学课程删除、每个老师只能查看到自己的教学课程
26 | - 查看选课名单和结果:选课总览列表、查看名单、查看结果、查询成绩、选课学生名单、录入成绩、成绩列表
27 | - 管理本人信息:个人信息查看、密码修改
28 |
29 | ### 管理员
30 |
31 | - 学生管理:学生列表、条件搜索查询、添加学生、学生信息修改、学生信息删除
32 | - 教师管理:教师列表、条件搜索查询、添加教师、教师信息修改、教师信息删除
33 | - 课程管理:课程列表、条件搜索查询、添加课程、课程信息修改、课程信息删除
34 |
35 | ## 环境
36 |
37 | - IntelliJ IDEA 2021.3
38 |
39 | - Mysql 5.7.26
40 |
41 | - Tomcat 7.0.73
42 |
43 | - JDK 1.8
44 |
45 | ## 运行截图
46 | 
47 |
48 | 
49 |
50 | 
51 |
52 | 
53 |
54 | 
55 |
56 | 
57 |
58 | 
59 |
60 | 
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/video.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/mountain.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/retina.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/pojo/StuExitSelect.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.pojo;
2 |
3 | /**
4 | * @ProjectName: StudentInfo
5 | * @Package: net.fuzui.StudentInfo.pojo
6 | * @ClassName: StuExitSelect
7 | * @Description: 选课退选实体类
8 | * @Author: 王泽
9 | * @CreateDate: 2019-04-06 16:43
10 | * @UpdateUser: 王泽
11 | * @UpdateDate: 2019-04-06 16:43
12 | * @UpdateRemark: 新建
13 | * @Version: 1.0
14 | */
15 | public class StuExitSelect implements java.io.Serializable {
16 |
17 |
18 | /**
19 | * 序列化
20 | */
21 | private static final long serialVersionUID = 1L;
22 | //课程编号
23 | private String cid;
24 | //课程名称
25 | private String Cname;
26 | //学号
27 | private String sid;
28 | //总人数
29 | private Integer totalNum;
30 | //学生总数
31 | private Integer stuSum;
32 | public String getCid() {
33 | return cid;
34 | }
35 | public void setCid(String cid) {
36 | this.cid = cid;
37 | }
38 | public String getCname() {
39 | return Cname;
40 | }
41 | public void setCname(String cname) {
42 | Cname = cname;
43 | }
44 | public String getSid() {
45 | return sid;
46 | }
47 | public void setSid(String sid) {
48 | this.sid = sid;
49 | }
50 | public void setStuSum(Integer stuSum) {
51 | this.stuSum = stuSum;
52 | }
53 | public Integer getStuSum() {
54 | return this.stuSum;
55 | }
56 | public void setTotalNum(Integer totalNum) {
57 | this.totalNum = totalNum;
58 | }
59 | public Integer getTotalNum() {
60 | return this.totalNum;
61 | }
62 |
63 | }
64 |
65 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/skateboard.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/lettersymbol.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/GradeMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | insert into grade(cid,sid,grade,credits)
32 | value (#{cid}, #{sid},#{grade},#{credits})
33 |
34 |
35 |
36 |
39 |
40 |
41 |
45 |
46 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/settings.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/handler/MyListTypeHandler.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.handler;
2 |
3 | import org.apache.ibatis.type.BaseTypeHandler;
4 | import org.apache.ibatis.type.JdbcType;
5 | import org.apache.ibatis.type.MappedJdbcTypes;
6 | import org.apache.ibatis.type.MappedTypes;
7 |
8 | import java.sql.CallableStatement;
9 | import java.sql.PreparedStatement;
10 | import java.sql.ResultSet;
11 | import java.sql.SQLException;
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | @MappedTypes(List.class)
16 | @MappedJdbcTypes({JdbcType.VARCHAR})
17 | public class MyListTypeHandler extends BaseTypeHandler> {
18 |
19 | public void setNonNullParameter(PreparedStatement preparedStatement, int i, List strings, JdbcType jdbcType) throws SQLException {
20 | //1.List集合转字符串
21 | StringBuffer sb = new StringBuffer();
22 | for (String string : strings) {
23 | sb.append(string).append(",");
24 | }
25 | //2.设置给ps
26 | preparedStatement.setString(i, sb.toString().substring(0, sb.toString().length() - 1));
27 | }
28 |
29 | public List getNullableResult(ResultSet resultSet, String s) throws SQLException {
30 | String[] split = resultSet.getString(s).split(",");
31 | return Arrays.asList(split);
32 | }
33 |
34 | public List getNullableResult(ResultSet resultSet, int i) throws SQLException {
35 | String[] split = resultSet.getString(i).split(",");
36 | return Arrays.asList(split);
37 | }
38 |
39 | public List getNullableResult(CallableStatement callableStatement, int i) throws SQLException {
40 | String[] split = callableStatement.getString(i).split(",");
41 | return Arrays.asList(split);
42 | }
43 | }
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/interceptor/LoginInterceptor.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.interceptor;
2 |
3 | import javax.servlet.http.HttpServletRequest;
4 | import javax.servlet.http.HttpServletResponse;
5 |
6 | import org.springframework.web.servlet.HandlerInterceptor;
7 | import org.springframework.web.servlet.ModelAndView;
8 |
9 | /**
10 | *
11 | * @ProjectName: StudentInfo
12 | * @Package: net.fuzui.StudentInfo.interceptor
13 | * @ClassName: LoginInterceptor
14 | * @Description: 登录拦截器
15 | * @Author: 王泽
16 | * @CreateDate: 2019年4月12日 下午3:37:19
17 | * @UpdateUser: 王泽
18 | * @UpdateDate: 2019年4月12日 下午3:37:19
19 | * @UpdateRemark: 新建
20 | * @Version: 1.0
21 | */
22 | public class LoginInterceptor implements HandlerInterceptor {
23 |
24 | @Override
25 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
26 | throws Exception {
27 | // TODO Auto-generated method stub
28 | Object admin = request.getSession().getAttribute("aname");
29 | if (admin == null) {
30 | System.out.println("尚未登录,调到登录页面");
31 | response.sendRedirect("/index.jsp");
32 | return false;
33 | }
34 |
35 | return true;
36 | }
37 |
38 | @Override
39 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
40 | ModelAndView modelAndView) throws Exception {
41 | // TODO Auto-generated method stub
42 | System.out.println("postHandle");
43 |
44 | }
45 |
46 | @Override
47 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
48 | throws Exception {
49 | // TODO Auto-generated method stub
50 | System.out.println("afterCompletion");
51 |
52 | }
53 |
54 |
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/art.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/interceptor/StudentLoginInterceptor.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.interceptor;
2 |
3 | import javax.servlet.http.HttpServletRequest;
4 | import javax.servlet.http.HttpServletResponse;
5 |
6 | import org.springframework.web.servlet.HandlerInterceptor;
7 | import org.springframework.web.servlet.ModelAndView;
8 |
9 | /**
10 | *
11 | * @ProjectName: StudentInfo
12 | * @Package: net.fuzui.StudentInfo.interceptor
13 | * @ClassName: StudentLoginInterceptor
14 | * @Description: 学生登录拦截
15 | * @Author: 王泽
16 | * @CreateDate: 2019年4月12日 下午3:51:01
17 | * @UpdateUser: 王泽
18 | * @UpdateDate: 2019年4月12日 下午3:51:01
19 | * @UpdateRemark: 新建
20 | * @Version: 1.0
21 | */
22 | public class StudentLoginInterceptor implements HandlerInterceptor {
23 |
24 | @Override
25 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
26 | throws Exception {
27 | // TODO Auto-generated method stub
28 | Object sid = request.getSession().getAttribute("sid");
29 | if (sid == null) {
30 | System.out.println("尚未登录,调到登录页面");
31 | response.sendRedirect("/index.jsp");
32 | return false;
33 | }
34 |
35 | return true;
36 | }
37 |
38 | @Override
39 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
40 | ModelAndView modelAndView) throws Exception {
41 | // TODO Auto-generated method stub
42 | System.out.println("postHandle");
43 |
44 | }
45 |
46 | @Override
47 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
48 | throws Exception {
49 | // TODO Auto-generated method stub
50 | System.out.println("afterCompletion");
51 |
52 | }
53 |
54 |
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/interceptor/TeacherLoginInterceptor.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.interceptor;
2 |
3 | import javax.servlet.http.HttpServletRequest;
4 | import javax.servlet.http.HttpServletResponse;
5 |
6 | import org.springframework.web.servlet.HandlerInterceptor;
7 | import org.springframework.web.servlet.ModelAndView;
8 |
9 | /**
10 | *
11 | * @ProjectName: StudentInfo
12 | * @Package: net.fuzui.StudentInfo.interceptor
13 | * @ClassName: TeacherLoginInterceptor
14 | * @Description: 教师登录拦截
15 | * @Author: 王泽
16 | * @CreateDate: 2019年4月12日 下午3:52:03
17 | * @UpdateUser: 王泽
18 | * @UpdateDate: 2019年4月12日 下午3:52:03
19 | * @UpdateRemark: 新建
20 | * @Version: 1.0
21 | */
22 | public class TeacherLoginInterceptor implements HandlerInterceptor {
23 |
24 | @Override
25 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
26 | throws Exception {
27 | // TODO Auto-generated method stub
28 | Object sid = request.getSession().getAttribute("tid");
29 | if (sid == null) {
30 | System.out.println("尚未登录,调到登录页面");
31 | response.sendRedirect("/index.jsp");
32 | return false;
33 | }
34 |
35 | return true;
36 | }
37 |
38 | @Override
39 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
40 | ModelAndView modelAndView) throws Exception {
41 | // TODO Auto-generated method stub
42 | System.out.println("postHandle");
43 |
44 | }
45 |
46 | @Override
47 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
48 | throws Exception {
49 | // TODO Auto-generated method stub
50 | System.out.println("afterCompletion");
51 |
52 | }
53 |
54 |
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/pojo/Teacher.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.pojo;
2 |
3 | /**
4 | * @ProjectName: StudentInfo
5 | * @Package: net.fuzui.StudentInfo.pojo
6 | * @ClassName: Teacher
7 | * @Description: 教师实体类
8 | * @Author: 王泽
9 | * @CreateDate: 2019-04-06 16:15
10 | * @UpdateUser: 王泽
11 | * @UpdateDate: 2019-04-06 16:15
12 | * @UpdateRemark: 新建
13 | * @Version: 1.0
14 | */
15 | public class Teacher implements java.io.Serializable{
16 | //序列化
17 | private static final long serialVersionUID = 1L;
18 | //教师编号
19 | private String tid;
20 | //教师姓名
21 | private String tname;
22 | //教师密码
23 | private String tpassword;
24 | //教师性别
25 | private String tsex;
26 | //教师简介
27 | private String introduction;
28 |
29 | /**
30 | * 默认构造方法
31 | */
32 | public Teacher() {
33 |
34 | }
35 |
36 | /**
37 | * 置取方法
38 | */
39 | public String getTid() {
40 | return tid;
41 | }
42 |
43 | public void setTid(String tid) {
44 | this.tid = tid;
45 | }
46 |
47 | public String getTname() {
48 | return tname;
49 | }
50 |
51 | public void setTname(String tname) {
52 | this.tname = tname;
53 | }
54 |
55 | public String getTpassword() {
56 | return tpassword;
57 | }
58 |
59 | public void setTpassword(String tpassword) {
60 | this.tpassword = tpassword;
61 | }
62 |
63 | public String getTsex() {
64 | return tsex;
65 | }
66 |
67 | public void setTsex(String tsex) {
68 | this.tsex = tsex;
69 | }
70 |
71 | public String getIntroduction() {
72 | return introduction;
73 | }
74 |
75 | public void setIntroduction(String introduction) {
76 | this.introduction = introduction;
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/bag.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/brush.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/cup.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/key.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/java/net/fuzui/StudentInfo/service/impl/AdminTestApp.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.service.impl;
2 |
3 | import org.junit.Test;
4 | import org.junit.runner.RunWith;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.test.context.ContextConfiguration;
7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
8 |
9 | /**
10 | * @ProjectName: StudentInfo
11 | * @Package: net.fuzui.StudentInfo.service.impl
12 | * @ClassName: AdminTestApp
13 | * @Description: 管理员相关功能测试类
14 | * @Author: 王泽
15 | * @CreateDate: 2019-04-09 22:11
16 | * @UpdateUser: 王泽
17 | * @UpdateDate: 2019-04-09 22:11
18 | * @UpdateRemark: 新建
19 | * @Version: 1.0
20 | */
21 |
22 | @RunWith(SpringJUnit4ClassRunner.class) // 使用junit4进行测试
23 | @ContextConfiguration(locations = {"classpath:config/spring/applicationContext.xml"}) // 加载配置文件
24 |
25 | // -----------
26 | // 如果加入以下代码,所有继承该类的测试类都会遵循该配置,也可以不加,在测试类的方法上
27 | // 这个非常关键,如果不加入这个注解配置,事务控制就会完全失效!
28 | // @Transactional
29 | // 这里的事务关联到配置文件中的事务控制器(transactionManager = "transactionManager"),同时
30 | // 指定自动回滚(defaultRollback = true)。这样做操作的数据才不会污染数据库!
31 | // @TransactionConfiguration(transactionManager = "transactionManager",
32 | // defaultRollback = true)
33 | // ------------
34 | public class AdminTestApp {
35 | @Autowired
36 | AdminServiceImpl adminServiceImpl;
37 |
38 | /**
39 | *
40 | * 管理员登录测试
41 | */
42 | @Test
43 | // @Transactional //标明此方法需使用事务
44 | // @Rollback(false) //标明使用完此方法后事务不回滚,true时为回滚
45 | public void queryByNamePwd(){
46 | String n = null;
47 | n = adminServiceImpl.queryByNamePwd("admin","admin");
48 | if(n != null && !"".equals(n)){
49 | System.out.println("登录成功");
50 | }else {
51 | System.out.println("登录失败,密码不正确或该管理员不存在");
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/teacherFace.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 |
8 | 学生信息管理系统
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
欢迎 ${sessionScope.tname} 老师
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/main/webapp/student/studentFace.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 |
8 | 学生信息管理系统
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
欢迎 ${sessionScope.sname} 同学
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/pencils.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/rss.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/admin/adminFace.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 |
5 |
6 |
7 |
8 | 网上选课系统
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
欢迎 ${sessionScope.aname} 管理员
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/wi-fi.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/safe.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/pojo/Course.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.pojo;
2 |
3 | /**
4 | * @ProjectName: StudentInfo
5 | * @Package: net.fuzui.StudentInfo.pojo
6 | * @ClassName: Course
7 | * @Description: 课程实体类
8 | * @Author: 王泽
9 | * @CreateDate: 2019-04-06 16:34
10 | * @UpdateUser: 王泽
11 | * @UpdateDate: 2019-04-06 16:34
12 | * @UpdateRemark: 新建
13 | * @Version: 1.0
14 | */
15 | public class Course implements java.io.Serializable{
16 | /**
17 | * 序列化
18 | */
19 | private static final long serialVersionUID = 1L;
20 | //课程编号
21 | private String cid;
22 | //课程名称
23 | private String cname;
24 | //课程介绍
25 | private String cintroduction;
26 | //类型
27 | private String type;
28 | //所属学院
29 | private String belongcoll;
30 | //所属专业
31 | private String belongpro;
32 |
33 | /**
34 | * 默认构造方法
35 | */
36 | public Course() {
37 |
38 | }
39 |
40 | /**
41 | * 置取方法
42 | */
43 | public String getCid() {
44 | return cid;
45 | }
46 | public void setCid(String cid) {
47 | this.cid = cid;
48 | }
49 | public String getCname() {
50 | return cname;
51 | }
52 | public void setCname(String cname) {
53 | this.cname = cname;
54 | }
55 | public String getCintroduction() {
56 | return cintroduction;
57 | }
58 | public void setCintroduction(String cintroduction) {
59 | this.cintroduction = cintroduction;
60 | }
61 | public String getType() {
62 | return type;
63 | }
64 | public void setType(String type) {
65 | this.type = type;
66 | }
67 | public String getBelongcoll() {
68 | return belongcoll;
69 | }
70 | public void setBelongcoll(String belongcoll) {
71 | this.belongcoll = belongcoll;
72 | }
73 | public String getBelongpro() {
74 | return belongpro;
75 | }
76 | public void setBelongpro(String belongpro) {
77 | this.belongpro = belongpro;
78 | }
79 |
80 |
81 | }
82 |
83 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/mortarboard.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/student/studentLeft.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 |
5 |
6 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/dj.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/news.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/picture.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/service/TeacherService.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.service;
2 |
3 | import net.fuzui.StudentInfo.pojo.Teacher;
4 | import org.springframework.stereotype.Service;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * @ProjectName: StudentInfo
10 | * @Package: net.fuzui.StudentInfo.service
11 | * @ClassName: TeacherService
12 | * @Description: 教师service接口类
13 | * @Author: 王泽
14 | * @CreateDate: 2019-04-09 19:58
15 | * @UpdateUser: 王泽
16 | * @UpdateDate: 2019-04-09 19:58
17 | * @UpdateRemark: 新建
18 | * @Version: 1.0
19 | */
20 |
21 | public interface TeacherService {
22 |
23 | /**
24 | * 添加教师
25 | * @param teacher 学生教师
26 | * @return 插入结果 !=0则插入成功
27 | */
28 | public int insertTeacher(Teacher teacher);
29 |
30 | /**
31 | * 根据教师编号删除教师信息
32 | * @param tid 教师编号
33 | * @return 删除结果,!=0则删除成功
34 | */
35 | public int deleteTeacher(String tid);
36 |
37 | /**
38 | * 修改教师信息
39 | * @param teacher 教师信息
40 | * @return 修改结果 !=0则修改成功
41 | */
42 | public int modifyTeacher(Teacher teacher);
43 |
44 | /**
45 | * 修改教师密码
46 | * @param tpassword 修改后的密码
47 | * @param tid 查询条件教师编号
48 | * @return 修改结果 !=0则修改成功
49 | */
50 | public int modifyTeacherPwd(String tpassword, String tid);
51 |
52 | /**
53 | * 根据教师编号查询出教师实体
54 | * @param tid
55 | * @return
56 | */
57 | public Teacher getByTeaTid(String tid);
58 |
59 | /**
60 | * 教师登录设置
61 | * @param tid 教师编号(唯一)
62 | * @param pwd 密码
63 | * @return
64 | */
65 | public String queryByNamePwd(String tid, String pwd);
66 |
67 | /*
68 | * sql后加limit实现分页
69 | * 查询全部教师
70 | * */
71 | public List selectTeacherBySql(int pageNo, int pageSize);
72 |
73 | /**
74 | * 根据教师编号查询教师信息
75 | * @param pageNo
76 | * @param pageSize
77 | * @return 查询结果
78 | */
79 | public List getByTeacherTid(int pageNo, int pageSize,String tid);
80 |
81 | /**
82 | * ajax验证教师是否存在
83 | * @param tid 教师编号
84 | * @return 结果
85 | */
86 | public String ajaxQueryByTid(String tid);
87 |
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/rocket.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mapper/TeacherMapper.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mapper;
2 |
3 | import net.fuzui.StudentInfo.pojo.Teacher;
4 | import org.apache.ibatis.annotations.Param;
5 |
6 | import java.util.List;
7 | import java.util.Map;
8 |
9 | /**
10 | * @ProjectName: StudentInfo
11 | * @Package: net.fuzui.StudentInfo.mapper
12 | * @ClassName: TeacherMapper
13 | * @Description: 教师数据访问层接口
14 | * @Author: 王泽
15 | * @CreateDate: 2019-04-09 19:44
16 | * @UpdateUser: 王泽
17 | * @UpdateDate: 2019-04-09 19:44
18 | * @UpdateRemark: 新建
19 | * @Version: 1.0
20 | */
21 | public interface TeacherMapper {
22 |
23 | /**
24 | * 添加教师
25 | * @param teacher 学生教师
26 | * @return 插入结果 !=0则插入成功
27 | */
28 | public int insertTeacher(Teacher teacher);
29 |
30 | /**
31 | * 根据教师编号删除教师信息
32 | * @param tid 教师编号
33 | * @return 删除结果,!=0则删除成功
34 | */
35 | public int deleteTeacher(String tid);
36 |
37 | /**
38 | * 修改学生信息
39 | * @param teacher 学生信息
40 | * @return 修改结果 !=0则修改成功
41 | */
42 | public int modifyTeacher(Teacher teacher);
43 |
44 | /**
45 | * 修改教师密码
46 | * @param tpassword 修改后的密码
47 | * @param tid 查询条件教师编号
48 | * @return 修改结果 !=0则修改成功
49 | */
50 | public int modifyTeacherPwd(@Param("tpassword") String tpassword, @Param("tid") String tid);
51 |
52 | /**
53 | * 根据教师编号查询出教师实体
54 | * @param tid
55 | * @return
56 | */
57 | public Teacher getByTeaTid(String tid);
58 |
59 | /**
60 | * 教师登录设置
61 | * @param tid 教师编号(唯一)
62 | * @param tpassword 密码
63 | * @return
64 | */
65 | public String queryByNamePwd(@Param("tid") String tid, @Param("tpassword") String tpassword);
66 |
67 | /*
68 | * sql后加limit实现分页
69 | * 查询全部教师
70 | * */
71 | public List selectTeacherBySql(Map data);
72 |
73 | /**
74 | * 根据学号查询教师信息
75 | * @param data
76 | * @return 查询结果
77 | */
78 | public List getByTeacherTid(Map data);
79 |
80 | /**
81 | * ajax验证教师是否存在
82 | * @param tid 教师编号
83 | * @return 结果
84 | */
85 | public String ajaxQueryByTid(String tid);
86 |
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mapper/CourseMapper.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mapper;
2 |
3 | import net.fuzui.StudentInfo.pojo.Course;
4 |
5 | import java.util.List;
6 | import java.util.Map;
7 |
8 | /**
9 | * @ProjectName: StudentInfo
10 | * @Package: net.fuzui.StudentInfo.mapper
11 | * @ClassName: CourseMapper
12 | * @Description: 课程数据访问层接口类
13 | * @Author: 王泽
14 | * @CreateDate: 2019-04-10 12:04
15 | * @UpdateUser: 王泽
16 | * @UpdateDate: 2019-04-10 12:04
17 | * @UpdateRemark: 新建
18 | * @Version: 1.0
19 | */
20 | public interface CourseMapper {
21 |
22 | /**
23 | * 添加课程
24 | * @param course 课程信息
25 | * @return 插入结果 !=0则插入成功
26 | */
27 | public int insertCourse(Course course);
28 |
29 | /**
30 | * 根据课程编号删除课程信息信息
31 | * @param cid 课程编号
32 | * @return 删除结果,!=0则删除成功
33 | */
34 | public int deleteCourse(String cid);
35 |
36 | /**
37 | * 修改课程信息
38 | * @param course 课程信息
39 | * @return 修改结果 !=0则修改成功
40 | */
41 | public int modifyCourse(Course course);
42 |
43 | /**
44 | * 根据课程编号查询出课程实体
45 | * @param cid
46 | * @return
47 | */
48 | public Course getByCouCid(String cid);
49 |
50 |
51 | /**
52 | * 查询全部课程,接住sql语句进行分页
53 | * @param data
54 | * @return 查询结果
55 | */
56 | public List selectCourseBySql(Map data);
57 |
58 | /**
59 | * 根据课程编号查询课程信息
60 | * @param data
61 | * @return 查询结果
62 | */
63 | public List getByCourseCid(Map data);
64 |
65 | /**
66 | * 根据课程名称查询课程信息
67 | * @param data
68 | * @return 查询结果
69 | */
70 | public List getByCourseCname(Map data);
71 |
72 | /**
73 | * 根据学院查询课程信息
74 | * @param data
75 | * @return 结果
76 | */
77 | public List getByCourseCol(Map data);
78 |
79 | /**
80 | * 根据课程类型查询课程信息
81 | * @param data
82 | * @return 结果
83 | */
84 | public List getByCourseType(Map data);
85 |
86 |
87 |
88 | /**
89 | * ajax验证课程编号是否存在
90 | * @param cid 课程编号
91 | * @return 结果
92 | */
93 | public String ajaxQueryByCid(String cid);
94 | }
95 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/modityPw.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 |
8 | 学生信息管理系统
9 |
10 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
47 |
48 |
--------------------------------------------------------------------------------
/src/main/webapp/student/modityPwStu.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 |
8 | 学生信息管理系统
9 |
10 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
修改密码
32 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/support.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/webapp/utils/image/icons/earth.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/main/java/net/fuzui/StudentInfo/mysql_rws/DynamicDataSource.java:
--------------------------------------------------------------------------------
1 | package net.fuzui.StudentInfo.mysql_rws;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | import javax.sql.DataSource;
7 |
8 | import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
9 |
10 | /**
11 | * @author fuzui
12 | * @date 2019年3月17日 下午5:32:02
13 | *
14 | */
15 | /**
16 | * 获取数据源,用于动态切换数据源
17 | * 实现Spring提供的AbstractRoutingDataSource,只需要实现determineCurrentLookupKey方法即可,
18 | * 由于DynamicDataSource是单例的,线程不安全的,所以采用ThreadLocal保证线程安全,
19 | * 由DynamicDataSourceHolder完成。
20 | *
21 | */
22 | public class DynamicDataSource extends AbstractRoutingDataSource {
23 |
24 | //写数据源
25 | private Object writeDataSource;
26 | //读数据源
27 | private Object readDataSource;
28 |
29 | @Override
30 | public void afterPropertiesSet() {
31 | // TODO Auto-generated method stub
32 | if(this.writeDataSource == null) {
33 | throw new IllegalArgumentException("Property writeDataSource is required");
34 | }
35 | setDefaultTargetDataSource(writeDataSource);
36 | Map