├── .gitattributes ├── README.md └── StudentInfo ├── .gitignore ├── README.md ├── pom.xml ├── sql └── selc.sql └── src ├── main ├── java │ └── net │ │ └── fuzui │ │ └── StudentInfo │ │ ├── handler │ │ ├── AdminHandler.java │ │ ├── AjaxHandler.java │ │ ├── CourseHandler.java │ │ ├── CoursePlanHandler.java │ │ ├── LoginHandler.java │ │ ├── MyListTypeHandler.java │ │ ├── StudentHandler.java │ │ └── TeacherHandler.java │ │ ├── interceptor │ │ ├── LoginInterceptor.java │ │ ├── StudentLoginInterceptor.java │ │ └── TeacherLoginInterceptor.java │ │ ├── mapper │ │ ├── AdminMapper.java │ │ ├── CourseMapper.java │ │ ├── CoursePlanMapper.java │ │ ├── GradeMapper.java │ │ ├── SelectCourseMapper.java │ │ ├── StudentMapper.java │ │ └── TeacherMapper.java │ │ ├── mysql_rws │ │ ├── DynamicDataSource.java │ │ ├── DynamicDataSourceGlobal.java │ │ ├── DynamicDataSourceHolder.java │ │ ├── DynamicDataSourceTransactionManager.java │ │ └── DynamicPlugin.java │ │ ├── pojo │ │ ├── Course.java │ │ ├── CourseGrade.java │ │ ├── CoursePlan.java │ │ ├── EndCourseResult.java │ │ ├── Grade.java │ │ ├── SC.java │ │ ├── StuExitSelect.java │ │ ├── StuSelectResult.java │ │ ├── Student.java │ │ └── Teacher.java │ │ └── service │ │ ├── AdminService.java │ │ ├── CoursePlanService.java │ │ ├── CourseService.java │ │ ├── GradeService.java │ │ ├── SelectCourseService.java │ │ ├── StudentService.java │ │ ├── TeacherService.java │ │ └── impl │ │ ├── AdminServiceImpl.java │ │ ├── CoursePlanServiceImpl.java │ │ ├── CourseServiceImpl.java │ │ ├── GradeServiceImpl.java │ │ ├── SelectCourseServiceImpl.java │ │ ├── StudentServiceImpl.java │ │ └── TeacherServiceImpl.java ├── resources │ ├── config │ │ ├── log │ │ │ └── logback.xml │ │ ├── mybatis │ │ │ └── mybatis-config.xml │ │ └── spring │ │ │ ├── applicationContext.xml │ │ │ └── springMVC.xml │ └── mapper │ │ ├── AdminMapper.xml │ │ ├── CourseMapper.xml │ │ ├── CoursePlanMapper.xml │ │ ├── GradeMapper.xml │ │ ├── SelectCourseMapper.xml │ │ ├── StudentMapper.xml │ │ └── TeacherMapper.xml └── webapp │ ├── Introduction.jsp │ ├── WEB-INF │ └── web.xml │ ├── admin │ ├── addCourse.jsp │ ├── addStudent.jsp │ ├── addTeacher.jsp │ ├── adminFace.jsp │ ├── adminLeft.jsp │ ├── modiCourse.jsp │ ├── modiStudent.jsp │ ├── modiTeacher.jsp │ ├── queryCourse.jsp │ ├── queryStudent.jsp │ └── queryTeacher.jsp │ ├── fail.jsp │ ├── index.jsp │ ├── student │ ├── endCourse.jsp │ ├── exitSel.jsp │ ├── modityPwStu.jsp │ ├── noseling.jsp │ ├── queryVitaStu.jsp │ ├── selCourse.jsp │ ├── selectedCourse.jsp │ ├── seling.jsp │ ├── studentFace.jsp │ └── studentLeft.jsp │ ├── success.jsp │ ├── teacher │ ├── addCou.jsp │ ├── doAddCou.jsp │ ├── endCourse.jsp │ ├── endCourseGrade.jsp │ ├── manageCourse.jsp │ ├── modCouPlan.jsp │ ├── modityPw.jsp │ ├── printStudent.jsp │ ├── queryVita.jsp │ ├── serchSC.jsp │ ├── teacherFace.jsp │ └── teacherLeft.jsp │ └── utils │ ├── css │ ├── animate.css │ ├── flat-ui.css │ ├── flat-ui.min.css │ ├── main.css │ └── vendor │ │ └── bootstrap.min.css │ ├── fonts │ ├── glyphicons │ │ ├── flat-ui-pro-icons-regular.eot │ │ ├── flat-ui-pro-icons-regular.svg │ │ ├── flat-ui-pro-icons-regular.ttf │ │ ├── flat-ui-pro-icons-regular.woff │ │ └── selection.json │ └── lato │ │ ├── lato-black.eot │ │ ├── lato-black.svg │ │ ├── lato-black.ttf │ │ ├── lato-black.woff │ │ ├── lato-bold.eot │ │ ├── lato-bold.svg │ │ ├── lato-bold.ttf │ │ ├── lato-bold.woff │ │ ├── lato-bolditalic.eot │ │ ├── lato-bolditalic.svg │ │ ├── lato-bolditalic.ttf │ │ ├── lato-bolditalic.woff │ │ ├── lato-italic.eot │ │ ├── lato-italic.svg │ │ ├── lato-italic.ttf │ │ ├── lato-italic.woff │ │ ├── lato-light.eot │ │ ├── lato-light.svg │ │ ├── lato-light.ttf │ │ ├── lato-light.woff │ │ ├── lato-regular.eot │ │ ├── lato-regular.svg │ │ ├── lato-regular.ttf │ │ └── lato-regular.woff │ ├── image │ ├── background.jpg │ ├── carousel │ │ ├── image-01.jpg │ │ ├── image-02.jpg │ │ ├── image-03.jpg │ │ └── img001.png │ ├── favicon.ico │ ├── icons │ │ ├── android.svg │ │ ├── android1.svg │ │ ├── app-store.svg │ │ ├── arrow.svg │ │ ├── art.svg │ │ ├── bag.svg │ │ ├── basket.svg │ │ ├── book.svg │ │ ├── bowling.svg │ │ ├── box.svg │ │ ├── brush.svg │ │ ├── building.svg │ │ ├── bulb.svg │ │ ├── button.svg │ │ ├── calculator.svg │ │ ├── calendar.svg │ │ ├── camera.svg │ │ ├── car.svg │ │ ├── card.svg │ │ ├── chair.svg │ │ ├── chat.svg │ │ ├── clipboard.svg │ │ ├── clocks.svg │ │ ├── compas.svg │ │ ├── converse.svg │ │ ├── cup.svg │ │ ├── dj.svg │ │ ├── donut.svg │ │ ├── dude.svg │ │ ├── dynamite.svg │ │ ├── earth.svg │ │ ├── egg.svg │ │ ├── eye.svg │ │ ├── file.svg │ │ ├── fit.svg │ │ ├── flag.svg │ │ ├── flask.svg │ │ ├── flower.svg │ │ ├── games.svg │ │ ├── gift-box.svg │ │ ├── girl.svg │ │ ├── goal.svg │ │ ├── google.svg │ │ ├── graph.svg │ │ ├── icecream.svg │ │ ├── imac.svg │ │ ├── ipad.svg │ │ ├── iphone.svg │ │ ├── key.svg │ │ ├── lettersymbol.svg │ │ ├── lock.svg │ │ ├── loop.svg │ │ ├── macbook.svg │ │ ├── magic.svg │ │ ├── magicmouse.svg │ │ ├── mail.svg │ │ ├── map.svg │ │ ├── medal.svg │ │ ├── mic.svg │ │ ├── money.svg │ │ ├── mortarboard.svg │ │ ├── mountain.svg │ │ ├── news.svg │ │ ├── paper-bag.svg │ │ ├── pc.svg │ │ ├── pencil.svg │ │ ├── pencils.svg │ │ ├── picture.svg │ │ ├── pig.svg │ │ ├── pills.svg │ │ ├── play.svg │ │ ├── printer.svg │ │ ├── responsive.svg │ │ ├── retina.svg │ │ ├── ribbon.svg │ │ ├── ring.svg │ │ ├── rocket.svg │ │ ├── rss.svg │ │ ├── safe.svg │ │ ├── save.svg │ │ ├── search.svg │ │ ├── settings.svg │ │ ├── shield.svg │ │ ├── shirt.svg │ │ ├── skateboard.svg │ │ ├── spray.svg │ │ ├── storage.svg │ │ ├── support.svg │ │ ├── ticket.svg │ │ ├── toilet-paper.svg │ │ ├── touch.svg │ │ ├── trash.svg │ │ ├── trip-bag.svg │ │ ├── trunk.svg │ │ ├── ubmrella.svg │ │ ├── user-interface.svg │ │ ├── video.svg │ │ ├── weather.svg │ │ ├── wi-fi.svg │ │ ├── wine.svg │ │ └── yinyang.svg │ ├── login │ │ ├── icon.png │ │ ├── imac-2x.png │ │ └── imac.png │ ├── tile │ │ ├── ribbon-2x.png │ │ └── ribbon.png │ └── video │ │ └── poster.jpg │ ├── js │ ├── bootstrap.min.js │ ├── jquery-3.3.1.min.js │ └── timer.js │ └── scripts │ ├── application.js │ ├── bganimation.js │ ├── flat-ui.js │ ├── flat-ui.min.js │ ├── jquery.particleground.js │ └── particles.js └── test └── java └── net └── fuzui └── StudentInfo ├── AppTest.java └── service └── impl ├── AdminTestApp.java ├── CoursePlanTestApp.java ├── CourseTestApp.java ├── SCTestApp.java ├── StudentTestApp.java └── TeacherTestApp.java /.gitattributes: -------------------------------------------------------------------------------- 1 | *.js linguist-language=java 2 | *.css linguist-language=java 3 | *.html linguist-language=java 4 | *.jsp linguist-language=java 5 | -------------------------------------------------------------------------------- /StudentInfo/.gitignore: -------------------------------------------------------------------------------- 1 | /.metadata/ 2 | 3 | /.recommenders/ 4 | /word/ 5 | ### gradle ### 6 | .gradle 7 | /build/ 8 | !gradle/wrapper/gradle-wrapper.jar 9 | 10 | ### STS ### 11 | .settings/ 12 | .apt_generated 13 | .classpath 14 | .factorypath 15 | .project 16 | .settings 17 | .springBeans 18 | bin/ 19 | 20 | ### IntelliJ IDEA ### 21 | .idea 22 | *.iws 23 | *.iml 24 | *.ipr 25 | rebel.xml 26 | 27 | ### NetBeans ### 28 | nbproject/private/ 29 | build/ 30 | nbbuild/ 31 | nbdist/ 32 | .nb-gradle/ 33 | 34 | ### maven ### 35 | target/ 36 | *.war 37 | *.ear 38 | *.zip 39 | *.tar 40 | *.tar.gz 41 | *.gz 42 | 43 | ### logs #### 44 | *.log.gz 45 | logs/ 46 | /logs 47 | /logs/ 48 | *.log 49 | 50 | ### temp ignore ### 51 | *.cache 52 | *.diff 53 | *.patch 54 | *.tmp 55 | *.java~ 56 | *.properties~ 57 | *.xml~ 58 | 59 | ### system ignore ### 60 | .DS_Store 61 | Thumbs.db 62 | Servers 63 | .metadata 64 | upload 65 | gen_code 66 | 67 | .DS_Store 68 | node_modules 69 | 70 | 71 | /tests/e2e/videos/ 72 | /tests/e2e/screenshots/ 73 | 74 | # local env files 75 | .env.local 76 | .env.*.local 77 | 78 | # Log files 79 | npm-debug.log* 80 | yarn-debug.log* 81 | yarn-error.log* 82 | 83 | # Editor directories and files 84 | .idea 85 | .vscode 86 | *.suo 87 | *.ntvs* 88 | *.njsproj 89 | *.sln 90 | *.sw* 91 | # See http://help.github.com/ignore-files/ for more about ignoring files. 92 | 93 | # compiled output 94 | /tmp 95 | /out-tsc 96 | 97 | # dependencies 98 | /node_modules 99 | 100 | # IDEs and editors 101 | /.idea 102 | .project 103 | .classpath 104 | .c9/ 105 | *.launch 106 | .settings/ 107 | *.sublime-workspace 108 | 109 | # IDE - VSCode 110 | .vscode/* 111 | !.vscode/settings.json 112 | !.vscode/tasks.json 113 | !.vscode/launch.json 114 | !.vscode/extensions.json 115 | 116 | # misc 117 | /.sass-cache 118 | /connect.lock 119 | /coverage 120 | /libpeerconnection.log 121 | npm-debug.log 122 | yarn-error.log 123 | testem.log 124 | /typings 125 | 126 | # System Files 127 | .DS_Store 128 | Thumbs.db 129 | 130 | package-lock.json 131 | # Lock File 132 | package-lock.json 133 | yarn.lock 134 | 135 | 136 | -------------------------------------------------------------------------------- /StudentInfo/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 | } -------------------------------------------------------------------------------- /StudentInfo/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("/StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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("/StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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("/StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/src/main/java/net/fuzui/StudentInfo/mapper/SelectCourseMapper.java: -------------------------------------------------------------------------------- 1 | package net.fuzui.StudentInfo.mapper; 2 | 3 | import net.fuzui.StudentInfo.pojo.SC; 4 | import net.fuzui.StudentInfo.pojo.StuExitSelect; 5 | import net.fuzui.StudentInfo.pojo.StuSelectResult; 6 | import net.fuzui.StudentInfo.pojo.Student; 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | import java.util.List; 10 | import java.util.Map; 11 | 12 | /** 13 | * @ProjectName: StudentInfo 14 | * @Package: net.fuzui.StudentInfo.mapper 15 | * @ClassName: SelectCourseMapper 16 | * @Description: 选课数据访问接口 17 | * @Author: 王泽 18 | * @CreateDate: 2019-04-10 19:54 19 | * @UpdateUser: 王泽 20 | * @UpdateDate: 2019-04-10 19:54 21 | * @UpdateRemark: 接口 22 | * @Version: 1.0 23 | */ 24 | public interface SelectCourseMapper { 25 | 26 | /** 27 | * 选课 28 | * @return 选课结果 29 | */ 30 | public int selectCourse(@Param("cid") String cid, @Param("sid") String sid); 31 | 32 | /** 33 | * 判断是否加入过此课程 34 | * @param cid 课程编号 35 | * @param sid 学号 36 | * @return 37 | */ 38 | public String existCourse(@Param("cid") String cid, @Param("sid") String sid); 39 | 40 | /** 41 | * 查询全部 42 | * @param data 43 | * @return 查询结果 44 | */ 45 | public List getAllSC(Map data); 46 | 47 | /** 48 | * 根据课程编号查询课程选课信息 49 | * @param data 50 | * @return 查询结果 51 | */ 52 | public List getSCByCid(Map data); 53 | 54 | /** 55 | * 根据学号查询本人已选课程 56 | * @param data 57 | * @return 查询结果 58 | */ 59 | public List getSCBySid(Map data); 60 | 61 | /** 62 | * 根据学号退选(待确定··) 63 | * @param data 64 | * @return 查询结果 65 | */ 66 | public List getExitBysid(Map data); 67 | 68 | /** 69 | * 退选 70 | * @param cid 71 | * @return 72 | */ 73 | public int deleteSC(@Param("cid") String cid,@Param("sid") String sid); 74 | 75 | /** 76 | * 查看课程已选人数 77 | * @param data 78 | * @return 79 | */ 80 | public List getLookByTid(Map data); 81 | 82 | /** 83 | * 查看课程的学生详细信息 84 | * @param data 85 | * @return 86 | */ 87 | public List getByStuSid(Map data); 88 | 89 | } 90 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 targetDataSource = new HashMap<>(); 37 | targetDataSource.put(DynamicDataSourceGlobal.WRITE.name(), writeDataSource); 38 | if(readDataSource != null) { 39 | targetDataSource.put(DynamicDataSourceGlobal.READ.name(), readDataSource); 40 | } 41 | setTargetDataSources(targetDataSource); 42 | super.afterPropertiesSet(); 43 | } 44 | 45 | //确定当前查找键 46 | @Override 47 | protected Object determineCurrentLookupKey() { 48 | // TODO Auto-generated method stub 49 | //使用DynamicDataSourceHolder保证线程安全,并且得到当前线程中的数据源key 50 | DynamicDataSourceGlobal dataSourceGlobal = DynamicDataSourceHolder.getDataSource(); 51 | if(dataSourceGlobal == null || dataSourceGlobal == DynamicDataSourceGlobal.WRITE) { 52 | return DynamicDataSourceGlobal.WRITE.name(); 53 | } 54 | return DynamicDataSourceGlobal.READ.name(); 55 | } 56 | 57 | public Object getWriteDataSource() { 58 | return writeDataSource; 59 | } 60 | 61 | public void setWriteDataSource(Object writeDataSource) { 62 | this.writeDataSource = writeDataSource; 63 | } 64 | 65 | public Object getReadDataSource() { 66 | return readDataSource; 67 | } 68 | 69 | public void setReadDataSource(Object readDataSource) { 70 | this.readDataSource = readDataSource; 71 | } 72 | 73 | 74 | 75 | 76 | } 77 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/src/main/java/net/fuzui/StudentInfo/pojo/EndCourseResult.java: -------------------------------------------------------------------------------- 1 | package net.fuzui.StudentInfo.pojo; 2 | 3 | public class EndCourseResult { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/src/main/java/net/fuzui/StudentInfo/pojo/StuSelectResult.java: -------------------------------------------------------------------------------- 1 | package net.fuzui.StudentInfo.pojo; 2 | 3 | /** 4 | * @ProjectName: StudentInfo 5 | * @Package: net.fuzui.StudentInfo.pojo 6 | * @ClassName: StuSelectResult 7 | * @Description: 选课结果实体类 8 | * @Author: 王泽 9 | * @CreateDate: 2019-04-06 16:47 10 | * @UpdateUser: 王泽 11 | * @UpdateDate: 2019-04-06 16:47 12 | * @UpdateRemark: 新建 13 | * @Version: 1.0 14 | */ 15 | public class StuSelectResult implements java.io.Serializable{ 16 | /** 17 | * 序列化 18 | */ 19 | private static final long serialVersionUID = 1L; 20 | //学生班级 21 | private String classr; 22 | //上课时间 23 | private String coursetime; 24 | //上课周 25 | private String courseweek; 26 | //课程名称 27 | private String cname; 28 | //课程教室 29 | private String classroom; 30 | //学分 31 | private String credits; 32 | //学时 33 | private String period; 34 | //任课教师姓名 35 | private String tname; 36 | 37 | /** 38 | * 置取方法 39 | */ 40 | public String getClassr() { 41 | return classr; 42 | } 43 | public void setClassr(String classr) { 44 | this.classr = classr; 45 | } 46 | public String getCoursetime() { 47 | return coursetime; 48 | } 49 | public void setCoursetime(String coursetime) { 50 | this.coursetime = coursetime; 51 | } 52 | public String getCourseweek() { 53 | return courseweek; 54 | } 55 | public void setCourseweek(String courseweek) { 56 | this.courseweek = courseweek; 57 | } 58 | public String getCname() { 59 | return cname; 60 | } 61 | public void setCname(String cname) { 62 | this.cname = cname; 63 | } 64 | public String getClassroom() { 65 | return classroom; 66 | } 67 | public void setClassroom(String classroom) { 68 | this.classroom = classroom; 69 | } 70 | public String getCredits() { 71 | return credits; 72 | } 73 | public void setCredits(String credits) { 74 | this.credits = credits; 75 | } 76 | public String getPeriod() { 77 | return period; 78 | } 79 | public void setPeriod(String period) { 80 | this.period = period; 81 | } 82 | public String getTname() { 83 | return tname; 84 | } 85 | public void setTname(String tname) { 86 | this.tname = tname; 87 | } 88 | 89 | 90 | } 91 | 92 | -------------------------------------------------------------------------------- /StudentInfo/src/main/java/net/fuzui/StudentInfo/pojo/Student.java: -------------------------------------------------------------------------------- 1 | package net.fuzui.StudentInfo.pojo; 2 | /** 3 | * @ProjectName: StudentInfo 4 | * @Package: net.fuzui.StudentInfo.pojo 5 | * @ClassName: Student 6 | * @Description: 学生实体类 7 | * @Author: 王泽 8 | * @CreateDate: 2019-04-06 16:11 9 | * @UpdateUser: 王泽 10 | * @UpdateDate: 2019-04-06 16:11 11 | * @UpdateRemark: 新建 12 | * @Version: 1.0 13 | */ 14 | 15 | public class Student implements java.io.Serializable{ 16 | 17 | //序列化 18 | private static final long serialVersionUID = 1L; 19 | //学号 20 | private String sid; 21 | //姓名 22 | private String sname; 23 | //身份证号 24 | private String sidcard; 25 | //性别 26 | private String ssex; 27 | //密码 28 | private String spassword; 29 | //年龄 30 | private String sage; 31 | //班级 32 | private String classr; 33 | //专业 34 | private String profession; 35 | //学院 36 | private String college; 37 | 38 | /** 39 | * 默认构造方法 40 | * */ 41 | public Student() { 42 | 43 | } 44 | 45 | 46 | /** 47 | * 置取方法 48 | * */ 49 | public String getSid() { 50 | return sid; 51 | } 52 | public void setSid(String sid) { 53 | this.sid = sid; 54 | } 55 | public String getSname() { 56 | return sname; 57 | } 58 | public void setSname(String sname) { 59 | this.sname = sname; 60 | } 61 | public String getSidcard() { 62 | return sidcard; 63 | } 64 | public void setSidcard(String sidcard) { 65 | this.sidcard = sidcard; 66 | } 67 | public String getSsex() { 68 | return ssex; 69 | } 70 | public void setSsex(String ssex) { 71 | this.ssex = ssex; 72 | } 73 | public String getSpassword() { 74 | return spassword; 75 | } 76 | public void setSpassword(String spassword) { 77 | this.spassword = spassword; 78 | } 79 | public String getSage() { 80 | return sage; 81 | } 82 | public void setSage(String sage) { 83 | this.sage = sage; 84 | } 85 | public String getClassr() { 86 | return classr; 87 | } 88 | public void setClassr(String classr) { 89 | this.classr = classr; 90 | } 91 | public String getProfession() { 92 | return profession; 93 | } 94 | public void setProfession(String profession) { 95 | this.profession = profession; 96 | } 97 | public String getCollege() { 98 | return college; 99 | } 100 | public void setCollege(String college) { 101 | this.college = college; 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/src/main/java/net/fuzui/StudentInfo/service/CourseService.java: -------------------------------------------------------------------------------- 1 | package net.fuzui.StudentInfo.service; 2 | 3 | import net.fuzui.StudentInfo.pojo.Course; 4 | import org.springframework.stereotype.Service; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | /** 10 | * @ProjectName: StudentInfo 11 | * @Package: net.fuzui.StudentInfo.service 12 | * @ClassName: CourseService 13 | * @Description: 课程service接口层 14 | * @Author: 王泽 15 | * @CreateDate: 2019-04-10 13:27 16 | * @UpdateUser: 王泽 17 | * @UpdateDate: 2019-04-10 13:27 18 | * @UpdateRemark: 新建 19 | * @Version: 1.0 20 | */ 21 | 22 | public interface CourseService { 23 | 24 | /** 25 | * 添加课程 26 | * @param course 课程信息 27 | * @return 插入结果 !=0则插入成功 28 | */ 29 | public int insertCourse(Course course); 30 | 31 | /** 32 | * 根据课程编号删除课程信息信息 33 | * @param cid 课程编号 34 | * @return 删除结果,!=0则删除成功 35 | */ 36 | public int deleteCourse(String cid); 37 | 38 | /** 39 | * 修改课程信息 40 | * @param course 课程信息 41 | * @return 修改结果 !=0则修改成功 42 | */ 43 | public int modifyCourse(Course course); 44 | 45 | /** 46 | * 根据课程编号查询出课程实体 47 | * @param cid 48 | * @return 49 | */ 50 | public Course getByCouCid(String cid); 51 | 52 | 53 | /** 54 | * 查询全部课程,接住sql语句进行分页 55 | * @param pageNo 56 | * @param pageSize 57 | * @return 查询结果 58 | */ 59 | public List selectCourseBySql(int pageNo, int pageSize); 60 | 61 | /** 62 | * 根据课程编号查询课程信息 63 | * @param pageNo 64 | * @param pageSize 65 | * @return 查询结果 66 | */ 67 | public List getByCourseCid(int pageNo, int pageSize,String cid); 68 | 69 | /** 70 | * 根据课程名称查询课程信息 71 | * @param pageNo 72 | * @param pageSize 73 | * @param cname 课程名称 74 | * @return 查询结果 75 | */ 76 | public List getByCourseCname(int pageNo, int pageSize,String cname); 77 | 78 | /** 79 | * 根据学院查询课程信息 80 | * @param pageNo 81 | * @param pageSize 82 | * @param belongcoll 所属学院 83 | * @return 结果 84 | */ 85 | public List getByCourseCol(int pageNo, int pageSize,String belongcoll); 86 | 87 | /** 88 | * 根据课程类型查询课程信息 89 | * @param pageNo 90 | * @param pageSize 91 | * @param type 课程类型 92 | * @return 结果 93 | */ 94 | public List getByCourseType(int pageNo, int pageSize,String type); 95 | 96 | 97 | 98 | /** 99 | * ajax验证课程编号是否存在 100 | * @param cid 课程编号 101 | * @return 结果 102 | */ 103 | public String ajaxQueryByCid(String cid); 104 | 105 | } 106 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/src/main/resources/mapper/AdminMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/src/main/resources/mapper/TeacherMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | insert into teacher(tid,tname,tpassword,tsex,introduction) 23 | value (#{tid}, #{tname},#{tpassword},#{tsex},#{introduction}) 24 | 25 | 26 | 27 | 28 | delete from teacher where tid=#{tid} 29 | 30 | 31 | 32 | 33 | update teacher set 34 | tname=#{tname},tpassword=#{tpassword},tsex=#{tsex},introduction=#{introduction} 35 | where tid =#{tid} 36 | 37 | 38 | 39 | 40 | update teacher set tpassword=#{tpassword} where tid =#{tid} 41 | 42 | 43 | 44 | 47 | 48 | 49 | 52 | 53 | 54 | 57 | 58 | 59 | 62 | 63 | 64 | 67 | 68 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | StudentInfo 4 | 5 | 6 | index.jsp 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | contextConfigLocation 15 | classpath:config/spring/applicationContext.xml 16 | 17 | 18 | org.springframework.web.context.ContextLoaderListener 19 | 20 | 21 | 22 | 23 | 24 | 25 | springDispatcherServlet 26 | org.springframework.web.servlet.DispatcherServlet 27 | 28 | contextConfigLocation 29 | classpath:config/spring/springMVC.xml 30 | 31 | 1 32 | 33 | 34 | 35 | 36 | springDispatcherServlet 37 | / 38 | 39 | 40 | 41 | 42 | CharacterEncodingFilter 43 | org.springframework.web.filter.CharacterEncodingFilter 44 | 45 | encoding 46 | UTF-8 47 | 48 | 49 | forceEncoding 50 | true 51 | 52 | 53 | 54 | CharacterEncodingFilter 55 | /* 56 | 57 | 58 | 59 | HiddenHttpMethodFilter 60 | org.springframework.web.filter.HiddenHttpMethodFilter 61 | 62 | 63 | 64 | HiddenHttpMethodFilter 65 | /* 66 | 67 | 68 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 |
35 |
36 | 37 |
38 |
39 | 40 |
41 |
42 | 43 | 44 | 45 | 46 | 47 | 48 |
49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/student/noseling.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 |
33 |
34 |
35 |
36 | 37 | 38 | 39 |
40 |
41 |
42 |
43 | 44 |
45 |
46 |
47 |
48 | 49 | 50 | 51 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 |
31 |
32 |
33 |
修改密码
34 |
35 | 36 |
37 | 38 |
39 |
40 | 41 |
42 | 43 |
44 |
45 |
46 |
47 | 48 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.eot -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.ttf -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/glyphicons/flat-ui-pro-icons-regular.woff -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-black.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-black.eot -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-black.ttf -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-black.woff -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-bold.eot -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-bold.ttf -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-bold.woff -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-bolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-bolditalic.eot -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-bolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-bolditalic.ttf -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-bolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-bolditalic.woff -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-italic.eot -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-italic.ttf -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-italic.woff -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-light.eot -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-light.ttf -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-light.woff -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-regular.eot -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-regular.ttf -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/fonts/lato/lato-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/fonts/lato/lato-regular.woff -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/background.jpg -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/carousel/image-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/carousel/image-01.jpg -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/carousel/image-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/carousel/image-02.jpg -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/carousel/image-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/carousel/image-03.jpg -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/carousel/img001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/carousel/img001.png -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/favicon.ico -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/android.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/android1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/app-store.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/arrow.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/art.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/bag.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/book.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/bowling.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/box.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/brush.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/building.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/bulb.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/calculator.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/camera.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/card.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/chair.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/chat.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/clipboard.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/clocks.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/compas.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/converse.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/cup.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/dj.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/dude.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/earth.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/egg.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/eye.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/file.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/fit.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/flag.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/flask.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/flower.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/girl.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/goal.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/google.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/graph.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/icecream.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/imac.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/ipad.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/iphone.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/key.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/lettersymbol.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/lock.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/loop.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/macbook.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/magic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/magicmouse.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/mail.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/map.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/medal.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/mic.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/mortarboard.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/mountain.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/news.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/paper-bag.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/pc.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/pencil.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/pencils.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/picture.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/pig.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/pills.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/printer.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/responsive.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/retina.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/ring.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/rocket.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/rss.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/safe.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/save.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/search.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/settings.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/shield.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/shirt.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/skateboard.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/spray.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/storage.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/support.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/toilet-paper.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/touch.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/trash.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/trip-bag.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/trunk.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/ubmrella.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/user-interface.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/video.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/wi-fi.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/wine.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/icons/yinyang.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/login/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/login/icon.png -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/login/imac-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/login/imac-2x.png -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/login/imac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/login/imac.png -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/tile/ribbon-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/tile/ribbon-2x.png -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/tile/ribbon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/tile/ribbon.png -------------------------------------------------------------------------------- /StudentInfo/src/main/webapp/utils/image/video/poster.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fuzui/StudentInfo/fcc42a639ec7cef620651bfd0f07ebb660529e3f/StudentInfo/src/main/webapp/utils/image/video/poster.jpg -------------------------------------------------------------------------------- /StudentInfo/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 | }) -------------------------------------------------------------------------------- /StudentInfo/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 | -------------------------------------------------------------------------------- /StudentInfo/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 | --------------------------------------------------------------------------------