├── .classpath ├── .mymetadata ├── .project ├── .settings ├── .jsdtscope ├── com.genuitec.eclipse.core.prefs ├── com.genuitec.eclipse.j2eedt.core.prefs ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.m2e.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container └── org.eclipse.wst.jsdt.ui.superType.name ├── README.md ├── pom.xml ├── src ├── main │ ├── java │ │ └── com │ │ │ └── qypt │ │ │ └── backstage │ │ │ ├── controller │ │ │ ├── ClassesController.java │ │ │ ├── CourseinformationController.java │ │ │ ├── DepartmentController.java │ │ │ ├── PeAdminController.java │ │ │ ├── ScoreController.java │ │ │ ├── ScoreInfoController.java │ │ │ ├── StudentController.java │ │ │ ├── TeacherController.java │ │ │ ├── UploadController.java │ │ │ └── admin │ │ │ │ └── AdminController.java │ │ │ ├── dao │ │ │ ├── classes │ │ │ │ ├── ClassesCustomMapper.java │ │ │ │ └── ClassesMapper.java │ │ │ ├── course │ │ │ │ ├── CourseMapper.java │ │ │ │ ├── CourseinformationCustomMapper.java │ │ │ │ └── CourseinformationMapper.java │ │ │ ├── department │ │ │ │ └── DepartmentMapper.java │ │ │ ├── peadmin │ │ │ │ └── PeAdminMapper.java │ │ │ ├── score │ │ │ │ ├── ScoreInfoCustomMapper.java │ │ │ │ ├── ScoreInfoMapper.java │ │ │ │ └── ScoreMapper.java │ │ │ ├── student │ │ │ │ ├── StudentCustomMapper.java │ │ │ │ └── StudentMapper.java │ │ │ └── teacher │ │ │ │ ├── TeacherCustomMapper.java │ │ │ │ └── TeacherMapper.java │ │ │ ├── entity │ │ │ ├── classes │ │ │ │ ├── Classes.java │ │ │ │ ├── ClassesCustom.java │ │ │ │ └── ClassesExample.java │ │ │ ├── course │ │ │ │ ├── Course.java │ │ │ │ ├── CourseExample.java │ │ │ │ ├── Courseinformation.java │ │ │ │ ├── CourseinformationCustom.java │ │ │ │ └── CourseinformationExample.java │ │ │ ├── department │ │ │ │ ├── Department.java │ │ │ │ └── DepartmentExample.java │ │ │ ├── peadmin │ │ │ │ ├── PeAdmin.java │ │ │ │ └── PeAdminExample.java │ │ │ ├── score │ │ │ │ ├── Score.java │ │ │ │ ├── ScoreCustom.java │ │ │ │ ├── ScoreExample.java │ │ │ │ ├── ScoreInfo.java │ │ │ │ ├── ScoreInfoCustom.java │ │ │ │ └── ScoreInfoExample.java │ │ │ ├── student │ │ │ │ ├── Student.java │ │ │ │ ├── StudentCustom.java │ │ │ │ └── StudentExample.java │ │ │ └── teacher │ │ │ │ ├── Teacher.java │ │ │ │ ├── TeacherCustom.java │ │ │ │ └── TeacherExample.java │ │ │ ├── mapping │ │ │ ├── ClassesCustomMapper.xml │ │ │ ├── ClassesMapper.xml │ │ │ ├── CourseMapper.xml │ │ │ ├── CourseinformationCustomMapper.xml │ │ │ ├── CourseinformationMapper.xml │ │ │ ├── DepartmentMapper.xml │ │ │ ├── PeAdminMapper.xml │ │ │ ├── ScoreInfoCustomMapper.xml │ │ │ ├── ScoreInfoMapper.xml │ │ │ ├── ScoreMapper.xml │ │ │ ├── StudentCustomMapper.xml │ │ │ ├── StudentMapper.xml │ │ │ ├── TeacherCustomMapper.xml │ │ │ └── TeacherMapper.xml │ │ │ ├── service │ │ │ ├── ClassesService.java │ │ │ ├── CourseService.java │ │ │ ├── CourseinfomationService.java │ │ │ ├── DepartmentService.java │ │ │ ├── PeAdminService.java │ │ │ ├── ScoreInfoService.java │ │ │ ├── ScoreService.java │ │ │ ├── StudentService.java │ │ │ ├── TeacherService.java │ │ │ └── impl │ │ │ │ ├── ClassesServiceImpl.java │ │ │ │ ├── CourseServiceImpl.java │ │ │ │ ├── CourseinformationServiceImpl.java │ │ │ │ ├── DepartmentServiceImpl.java │ │ │ │ ├── PeAdminServiceImpl.java │ │ │ │ ├── ScoreInfoServiceImple.java │ │ │ │ ├── ScoreServiceImple.java │ │ │ │ ├── StudentServiceImpl.java │ │ │ │ └── TeacherServiceImpl.java │ │ │ └── util │ │ │ ├── Md5Util.java │ │ │ └── UserInterceptor.java │ ├── resources │ │ ├── generatorConfig.xml │ │ ├── jdbc.properties │ │ ├── log4j.properties │ │ └── spring │ │ │ ├── applicationContext-service.xml │ │ │ ├── applicationContext-transaction.xml │ │ │ ├── applicationContext.xml │ │ │ ├── spring-mybatis.xml │ │ │ └── springmvc.xml │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ ├── jsp │ │ │ ├── classes │ │ │ │ ├── classesIndex.jsp │ │ │ │ ├── index.jsp │ │ │ │ └── update.jsp │ │ │ ├── course │ │ │ │ ├── courseIndex.jsp │ │ │ │ └── index.jsp │ │ │ ├── department │ │ │ │ ├── departmentIndex.jsp │ │ │ │ └── index.jsp │ │ │ ├── login │ │ │ │ ├── login.jsp │ │ │ │ └── qyptIndex.jsp │ │ │ ├── score │ │ │ │ ├── index.jsp │ │ │ │ ├── scoreIndex.jsp │ │ │ │ └── score_depart │ │ │ │ │ ├── add.jsp │ │ │ │ │ ├── hl.jsp │ │ │ │ │ ├── jd.jsp │ │ │ │ │ ├── ly.jsp │ │ │ │ │ ├── sp.jsp │ │ │ │ │ ├── wy.jsp │ │ │ │ │ ├── xx.jsp │ │ │ │ │ └── xxIndex.jsp │ │ │ ├── student │ │ │ │ ├── add.jsp │ │ │ │ ├── edit.jsp │ │ │ │ ├── index.jsp │ │ │ │ ├── studentIndex.jsp │ │ │ │ └── uploadPhoto.jsp │ │ │ └── teacher │ │ │ │ ├── index.jsp │ │ │ │ └── teacherIndex.jsp │ │ └── web.xml │ │ ├── css │ │ ├── dashboard.css │ │ └── signin.css │ │ ├── dist │ │ ├── css │ │ │ ├── bootstrap-theme.css │ │ │ ├── bootstrap-theme.css.map │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap.css │ │ │ ├── bootstrap.css.map │ │ │ └── bootstrap.min.css │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ ├── jquery │ │ │ ├── jquery.js │ │ │ ├── jquery.min.js │ │ │ └── jquery.min.map │ │ └── js │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.min.js │ │ │ ├── ie-emulation-modes-warning.js │ │ │ ├── ie10-viewport-bug-workaround.js │ │ │ └── npm.js │ │ ├── style │ │ └── jquery.js │ │ └── test.jsp └── test │ └── java │ └── com │ └── qypt │ └── test │ └── MybatisTest.java ├── target ├── classes │ ├── com │ │ └── qypt │ │ │ └── backstage │ │ │ ├── controller │ │ │ ├── ClassesController.class │ │ │ ├── CourseinformationController.class │ │ │ ├── DepartmentController.class │ │ │ ├── PeAdminController.class │ │ │ ├── ScoreController.class │ │ │ ├── ScoreInfoController.class │ │ │ ├── StudentController.class │ │ │ ├── TeacherController.class │ │ │ ├── UploadController.class │ │ │ └── admin │ │ │ │ └── AdminController.class │ │ │ ├── dao │ │ │ ├── classes │ │ │ │ ├── ClassesCustomMapper.class │ │ │ │ └── ClassesMapper.class │ │ │ ├── course │ │ │ │ ├── CourseMapper.class │ │ │ │ ├── CourseinformationCustomMapper.class │ │ │ │ └── CourseinformationMapper.class │ │ │ ├── department │ │ │ │ └── DepartmentMapper.class │ │ │ ├── peadmin │ │ │ │ └── PeAdminMapper.class │ │ │ ├── score │ │ │ │ ├── ScoreInfoCustomMapper.class │ │ │ │ ├── ScoreInfoMapper.class │ │ │ │ └── ScoreMapper.class │ │ │ ├── student │ │ │ │ ├── StudentCustomMapper.class │ │ │ │ └── StudentMapper.class │ │ │ └── teacher │ │ │ │ ├── TeacherCustomMapper.class │ │ │ │ └── TeacherMapper.class │ │ │ ├── entity │ │ │ ├── classes │ │ │ │ ├── Classes.class │ │ │ │ ├── ClassesCustom.class │ │ │ │ ├── ClassesExample$Criteria.class │ │ │ │ ├── ClassesExample$Criterion.class │ │ │ │ ├── ClassesExample$GeneratedCriteria.class │ │ │ │ └── ClassesExample.class │ │ │ ├── course │ │ │ │ ├── Course.class │ │ │ │ ├── CourseExample$Criteria.class │ │ │ │ ├── CourseExample$Criterion.class │ │ │ │ ├── CourseExample$GeneratedCriteria.class │ │ │ │ ├── CourseExample.class │ │ │ │ ├── Courseinformation.class │ │ │ │ ├── CourseinformationCustom.class │ │ │ │ ├── CourseinformationExample$Criteria.class │ │ │ │ ├── CourseinformationExample$Criterion.class │ │ │ │ ├── CourseinformationExample$GeneratedCriteria.class │ │ │ │ └── CourseinformationExample.class │ │ │ ├── department │ │ │ │ ├── Department.class │ │ │ │ ├── DepartmentExample$Criteria.class │ │ │ │ ├── DepartmentExample$Criterion.class │ │ │ │ ├── DepartmentExample$GeneratedCriteria.class │ │ │ │ └── DepartmentExample.class │ │ │ ├── peadmin │ │ │ │ ├── PeAdmin.class │ │ │ │ ├── PeAdminExample$Criteria.class │ │ │ │ ├── PeAdminExample$Criterion.class │ │ │ │ ├── PeAdminExample$GeneratedCriteria.class │ │ │ │ └── PeAdminExample.class │ │ │ ├── score │ │ │ │ ├── Score.class │ │ │ │ ├── ScoreCustom.class │ │ │ │ ├── ScoreExample$Criteria.class │ │ │ │ ├── ScoreExample$Criterion.class │ │ │ │ ├── ScoreExample$GeneratedCriteria.class │ │ │ │ ├── ScoreExample.class │ │ │ │ ├── ScoreInfo.class │ │ │ │ ├── ScoreInfoCustom.class │ │ │ │ ├── ScoreInfoExample$Criteria.class │ │ │ │ ├── ScoreInfoExample$Criterion.class │ │ │ │ ├── ScoreInfoExample$GeneratedCriteria.class │ │ │ │ └── ScoreInfoExample.class │ │ │ ├── student │ │ │ │ ├── Student.class │ │ │ │ ├── StudentCustom.class │ │ │ │ ├── StudentExample$Criteria.class │ │ │ │ ├── StudentExample$Criterion.class │ │ │ │ ├── StudentExample$GeneratedCriteria.class │ │ │ │ └── StudentExample.class │ │ │ └── teacher │ │ │ │ ├── Teacher.class │ │ │ │ ├── TeacherCustom.class │ │ │ │ ├── TeacherExample$Criteria.class │ │ │ │ ├── TeacherExample$Criterion.class │ │ │ │ ├── TeacherExample$GeneratedCriteria.class │ │ │ │ └── TeacherExample.class │ │ │ ├── mapping │ │ │ ├── ClassesCustomMapper.xml │ │ │ ├── ClassesMapper.xml │ │ │ ├── CourseMapper.xml │ │ │ ├── CourseinformationCustomMapper.xml │ │ │ ├── CourseinformationMapper.xml │ │ │ ├── DepartmentMapper.xml │ │ │ ├── PeAdminMapper.xml │ │ │ ├── ScoreInfoCustomMapper.xml │ │ │ ├── ScoreInfoMapper.xml │ │ │ ├── ScoreMapper.xml │ │ │ ├── StudentCustomMapper.xml │ │ │ ├── StudentMapper.xml │ │ │ ├── TeacherCustomMapper.xml │ │ │ └── TeacherMapper.xml │ │ │ ├── service │ │ │ ├── ClassesService.class │ │ │ ├── CourseService.class │ │ │ ├── CourseinfomationService.class │ │ │ ├── DepartmentService.class │ │ │ ├── PeAdminService.class │ │ │ ├── ScoreInfoService.class │ │ │ ├── ScoreService.class │ │ │ ├── StudentService.class │ │ │ ├── TeacherService.class │ │ │ └── impl │ │ │ │ ├── ClassesServiceImpl.class │ │ │ │ ├── CourseServiceImpl.class │ │ │ │ ├── CourseinformationServiceImpl.class │ │ │ │ ├── DepartmentServiceImpl.class │ │ │ │ ├── PeAdminServiceImpl.class │ │ │ │ ├── ScoreInfoServiceImple.class │ │ │ │ ├── ScoreServiceImple.class │ │ │ │ ├── StudentServiceImpl.class │ │ │ │ └── TeacherServiceImpl.class │ │ │ └── util │ │ │ ├── Md5Util.class │ │ │ └── UserInterceptor.class │ ├── generatorConfig.xml │ ├── jdbc.properties │ ├── log4j.properties │ └── spring │ │ ├── applicationContext-service.xml │ │ ├── applicationContext-transaction.xml │ │ ├── applicationContext.xml │ │ ├── spring-mybatis.xml │ │ └── springmvc.xml ├── m2e-jee │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── RedisTest │ │ └── RedisTest │ │ ├── pom.properties │ │ └── pom.xml └── test-classes │ └── com │ └── qypt │ └── test │ └── MybatisTest.class └── 清远职业技术学院Sql.sql /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.mymetadata: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | RedisTest 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator 25 | 26 | 27 | 28 | 29 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator 30 | 31 | 32 | 33 | 34 | org.eclipse.wst.common.project.facet.core.builder 35 | 36 | 37 | 38 | 39 | org.eclipse.wst.validation.validationbuilder 40 | 41 | 42 | 43 | 44 | com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder 45 | 46 | 47 | 48 | 49 | org.eclipse.m2e.core.maven2Builder 50 | 51 | 52 | 53 | 54 | 55 | com.genuitec.eclipse.ast.deploy.core.deploymentnature 56 | com.genuitec.eclipse.j2eedt.core.webnature 57 | org.eclipse.jem.workbench.JavaEMFNature 58 | org.eclipse.wst.common.modulecore.ModuleCoreNature 59 | org.eclipse.jdt.core.javanature 60 | org.eclipse.m2e.core.maven2Nature 61 | org.eclipse.wst.common.project.facet.core.nature 62 | org.eclipse.wst.jsdt.core.jsNature 63 | 64 | 65 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/com.genuitec.eclipse.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | validator.Checked=src/main/webapp/dist/jquery/jquery.js,src/main/webapp/dist/jquery/jquery.min.js 3 | validator.Unchecked= 4 | -------------------------------------------------------------------------------- /.settings/com.genuitec.eclipse.j2eedt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | useAssemblyMapping=true 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/main/webapp/WEB-INF/jsp/department/index.jsp=UTF-8 5 | encoding//src/test/java=UTF-8 6 | encoding/=UTF-8 7 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.7 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 这是模仿学院设置的校园管理系统,进行了对部门 老师 学生 以及学生成绩 建设的校园管理系统 2 | 3 | 清远职业技术学院sql.sql是数据库 4 | 5 | 开发环境:windows10 myeclipse tomcat7 mysql   6 | 框架技术:spring springmvc mybaits 7 | 主要技术:分页查询,ajax,登录拦截器,文件上传 8 | 前台技术:bootstarp 9 | 10 | 在开发中 sql语句是使用了 mybatis的逆向工程 来完成的 部分mapping 是自己实现 自己实现的mapping 加了Custom 后缀 11 | 12 | 图片展示 13 | 14 | 登录界面: 用户的登录 账号 密码 均为 admin 15 | ![image](https://github.com/fzgood/qyptimg/blob/master/denglu.png) 16 | 公告栏: 17 | ![image](https://github.com/fzgood/qyptimg/blob/master/gonggao.png) 18 | 院系: 19 | ![image](https://github.com/fzgood/qyptimg/blob/master/yuanxi.png) 20 | 班级: 21 | ![image](https://github.com/fzgood/qyptimg/blob/master/banji.png) 22 | 课程: 23 | ![image](https://github.com/fzgood/qyptimg/blob/master/kecheng.png) 24 | 老师: 25 | ![image](https://github.com/fzgood/qyptimg/blob/master/laoshi.png) 26 | 学生: 27 | ![image](https://github.com/fzgood/qyptimg/blob/master/xuesheng.png) 28 | 系部学生成绩表 29 | ![image](https://github.com/fzgood/qyptimg/blob/master/xbchengji.png) 30 | 学生成就 31 | ![image](https://github.com/fzgood/qyptimg/blob/master/xueshengcj.png) 32 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/ClassesController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.servlet.ModelAndView; 9 | 10 | import com.qypt.backstage.entity.classes.Classes; 11 | import com.qypt.backstage.entity.classes.ClassesCustom; 12 | import com.qypt.backstage.entity.department.Department; 13 | import com.qypt.backstage.service.ClassesService; 14 | import com.qypt.backstage.service.DepartmentService; 15 | 16 | @Controller 17 | @RequestMapping(value = "/classes") 18 | public class ClassesController { 19 | @Autowired 20 | private ClassesService classesService; 21 | @Autowired 22 | private DepartmentService departmentService; 23 | 24 | @RequestMapping(value = "index") 25 | public ModelAndView index(ClassesCustom classesCustom) { 26 | if(classesCustom.getPageCurrent()==null){ 27 | classesCustom.setPageCurrent(1); 28 | } 29 | classesCustom.setPageIndex((classesCustom.getPageCurrent()-1)*10); 30 | ModelAndView modelAndView = new ModelAndView(); 31 | try { 32 | Integer count = classesService.findCount(classesCustom); 33 | if(count%10!=0){ 34 | classesCustom.setPageNum((count/10)+1); 35 | }else{ 36 | classesCustom.setPageNum(count/10); 37 | } 38 | List departmentAll = departmentService.findDepartmentAll(); 39 | modelAndView.setViewName("classes/classesIndex"); 40 | List classesAll = classesService.findClassesAll(classesCustom); 41 | modelAndView.addObject("classesCustom", classesCustom); 42 | modelAndView.addObject("departmentAll", departmentAll); 43 | modelAndView.addObject("classesAll", classesAll); 44 | return modelAndView; 45 | } catch (Exception e) { 46 | // TODO Auto-generated catch block 47 | e.printStackTrace(); 48 | return modelAndView; 49 | } 50 | } 51 | 52 | @RequestMapping(value = "add") 53 | public String add(Classes classes) { 54 | try { 55 | classes.setState("未毕业"); 56 | classesService.addClasses(classes); 57 | return "redirect:/classes/index"; 58 | } catch (Exception e) { 59 | // TODO Auto-generated catch block 60 | e.printStackTrace(); 61 | return "redirect:/error"; 62 | } 63 | } 64 | 65 | @RequestMapping(value="update") 66 | public ModelAndView update(Integer classId){ 67 | ModelAndView modelAndView = new ModelAndView(); 68 | try { 69 | Classes classes2 = classesService.findClasses(classId); 70 | Integer departmentId = classes2.getDepartmentId(); 71 | Department department = departmentService.findDepartmentById(departmentId); 72 | modelAndView.addObject("classes2", classes2); 73 | modelAndView.addObject("department", department); 74 | modelAndView.setViewName("classes/update"); 75 | return modelAndView; 76 | } catch (Exception e) { 77 | // TODO Auto-generated catch block 78 | e.printStackTrace(); 79 | return modelAndView; 80 | } 81 | } 82 | @RequestMapping(value="editover") 83 | public String editOver(Classes classes){ 84 | try { 85 | classesService.editClasses(classes); 86 | return "redirect:/classes/index"; 87 | } catch (Exception e) { 88 | // TODO Auto-generated catch block 89 | e.printStackTrace(); 90 | return "/error"; 91 | } 92 | } 93 | 94 | } 95 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/CourseinformationController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.servlet.ModelAndView; 9 | 10 | import com.qypt.backstage.entity.course.Courseinformation; 11 | import com.qypt.backstage.entity.course.CourseinformationCustom; 12 | import com.qypt.backstage.entity.department.Department; 13 | import com.qypt.backstage.service.CourseinfomationService; 14 | import com.qypt.backstage.service.DepartmentService; 15 | 16 | @Controller 17 | @RequestMapping(value="/course") 18 | public class CourseinformationController { 19 | @Autowired 20 | private CourseinfomationService courseinfomationService; 21 | @Autowired 22 | private DepartmentService departmentService; 23 | 24 | @RequestMapping(value="/index") 25 | public ModelAndView index(CourseinformationCustom course){ 26 | ModelAndView modelAndView = new ModelAndView(); 27 | try { 28 | List departmentAll = departmentService.findDepartmentAll(); 29 | List CIAll = courseinfomationService.findCIAll(course); 30 | modelAndView.setViewName("course/courseIndex"); 31 | modelAndView.addObject("departmentAll", departmentAll); 32 | modelAndView.addObject("CIAll", CIAll); 33 | return modelAndView ; 34 | } catch (Exception e) { 35 | e.printStackTrace(); 36 | return modelAndView; 37 | } 38 | } 39 | @RequestMapping(value="add") 40 | public String add(Courseinformation course){ 41 | try { 42 | courseinfomationService.addCI(course); 43 | return "redirect:/course/index"; 44 | } catch (Exception e) { 45 | e.printStackTrace(); 46 | return "redirect:/error"; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/DepartmentController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.servlet.ModelAndView; 9 | 10 | import com.qypt.backstage.entity.department.Department; 11 | import com.qypt.backstage.service.DepartmentService; 12 | 13 | /** 14 | * @author fz 15 | */ 16 | @Controller 17 | @RequestMapping(value = "/department") 18 | public class DepartmentController { 19 | @Autowired 20 | private DepartmentService departmentService; 21 | 22 | @RequestMapping(value = "/index") 23 | public ModelAndView index() { 24 | ModelAndView modelAndView = new ModelAndView(); 25 | List departmentAll; 26 | try { 27 | departmentAll = departmentService.findDepartmentAll(); 28 | modelAndView.addObject("departmentAll", departmentAll); 29 | modelAndView.setViewName("department/departmentIndex"); 30 | return modelAndView; 31 | } catch (Exception e) { 32 | e.printStackTrace(); 33 | return modelAndView; 34 | } 35 | } 36 | @RequestMapping(value = "/add") 37 | public String add(Department department) { 38 | try { 39 | departmentService.addDepartment(department); 40 | return "redirect:/department/index"; 41 | } catch (Exception e) { 42 | e.printStackTrace(); 43 | return "redirect:/error"; 44 | } 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/PeAdminController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | 5 | @Controller 6 | public class PeAdminController { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/ScoreController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.servlet.ModelAndView; 9 | 10 | import com.qypt.backstage.entity.score.Score; 11 | import com.qypt.backstage.entity.score.ScoreInfoCustom; 12 | import com.qypt.backstage.service.ScoreInfoService; 13 | import com.qypt.backstage.service.ScoreService; 14 | 15 | @Controller 16 | @RequestMapping(value = "/score") 17 | public class ScoreController { 18 | @Autowired 19 | private ScoreService scoreService; 20 | @Autowired 21 | private ScoreInfoService scoreInfoService; 22 | @RequestMapping(value = "/add") 23 | public String add(Score score) { 24 | try { 25 | scoreService.add(score); 26 | } catch (Exception e) { 27 | e.printStackTrace(); 28 | return "redirect:/error"; 29 | } 30 | return "redirect:/score/index"; 31 | } 32 | 33 | @RequestMapping(value = "/index") 34 | public ModelAndView index() { 35 | ModelAndView modelAndView = new ModelAndView(); 36 | try { 37 | List findScore = scoreService.findScore(); 38 | modelAndView.addObject("scoreAll", findScore); 39 | modelAndView.setViewName("score/scoreIndex"); 40 | return modelAndView; 41 | } catch (Exception e) { 42 | e.printStackTrace(); 43 | return modelAndView; 44 | } 45 | } 46 | 47 | @RequestMapping(value = "/goscoreinfo") 48 | public ModelAndView goscoreinfo(Integer departmentId,Integer scoreId) { 49 | ModelAndView modelAndView = new ModelAndView(); 50 | try { 51 | List scoreInfoAll = scoreInfoService.findScoreDepartment(scoreId); 52 | String uri = getUri(departmentId); 53 | modelAndView.addObject("score", scoreId); 54 | modelAndView.addObject("scoreInfoAll", scoreInfoAll); 55 | modelAndView.setViewName(uri); 56 | return modelAndView; 57 | } catch (Exception e) { 58 | e.printStackTrace(); 59 | modelAndView.setViewName("/error"); 60 | return modelAndView; 61 | } 62 | } 63 | 64 | public static String getUri(Integer id) { 65 | String uri; 66 | switch (id) { 67 | case 1: 68 | uri = "score/score_depart/hl"; 69 | break; 70 | case 2: 71 | uri = "score/score_depart/jd"; 72 | break; 73 | case 3: 74 | uri = "score/score_depart/ly"; 75 | break; 76 | case 4: 77 | uri = "score/score_depart/xxIndex"; 78 | break; 79 | case 5: 80 | uri = "score/score_depart/wy"; 81 | break; 82 | case 6: 83 | uri = "score/score_depart/sp"; 84 | break; 85 | default: 86 | uri = "error"; 87 | break; 88 | } 89 | return uri; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/ScoreInfoController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.servlet.ModelAndView; 12 | 13 | import com.qypt.backstage.entity.course.Courseinformation; 14 | import com.qypt.backstage.entity.course.CourseinformationCustom; 15 | import com.qypt.backstage.entity.score.ScoreInfo; 16 | import com.qypt.backstage.entity.student.Student; 17 | import com.qypt.backstage.service.CourseinfomationService; 18 | import com.qypt.backstage.service.ScoreInfoService; 19 | import com.qypt.backstage.service.StudentService; 20 | 21 | @Controller 22 | @RequestMapping(value = "/scoreinfo") 23 | public class ScoreInfoController { 24 | @Autowired 25 | private CourseinfomationService courseinfomationService; 26 | @Autowired 27 | private StudentService studentService; 28 | @Autowired 29 | private ScoreInfoService scoreInfoService; 30 | 31 | @RequestMapping(value = "/add") 32 | public ModelAndView add(Integer departmentId,Integer scoreId) { 33 | ModelAndView modelAndView = new ModelAndView(); 34 | CourseinformationCustom course = new CourseinformationCustom(); 35 | course.setDepartmentId(departmentId); 36 | try { 37 | List ciAll = courseinfomationService 38 | .findCIAll(course); 39 | modelAndView.addObject("ciAll", ciAll); 40 | modelAndView.addObject("scoreId", scoreId); 41 | modelAndView.setViewName("score/score_depart/add"); 42 | return modelAndView; 43 | } catch (Exception e) { 44 | e.printStackTrace(); 45 | modelAndView.setViewName("/error"); 46 | return modelAndView; 47 | } 48 | } 49 | 50 | @RequestMapping(value = "/addStudentScore") 51 | public String addStudentScore(String studentName,Integer[] ciId, Double[] fraction,Integer scoreId,HttpServletRequest request) { 52 | List findStudentByName = studentService.findStudentByName(studentName); 53 | if (findStudentByName.size()==0) { 54 | request.setAttribute("studentNull", "找不到此学生信息,请重新填写"); 55 | return "forward:/scoreinfo/add"; 56 | } 57 | Student student = findStudentByName.get(0); 58 | List scoreInfo=new ArrayList(); 59 | for(int i=0;i teacherAll = teacherService.findTeacher(teacherCustom); 43 | List departmentAll = departmentService.findDepartmentAll(); 44 | if(!(teacherCustom.getDepartmentId()==null)){ 45 | Department department = departmentService.findDepartmentById(teacherCustom.getDepartmentId()); 46 | modelAndView.addObject("department", department); 47 | } 48 | modelAndView.setViewName("teacher/teacherIndex"); 49 | modelAndView.addObject("teacherAll", teacherAll); 50 | modelAndView.addObject("departmentAll", departmentAll); 51 | modelAndView.addObject("teacherCustom", teacherCustom); 52 | return modelAndView; 53 | } catch (Exception e) { 54 | // TODO Auto-generated catch block 55 | e.printStackTrace(); 56 | return modelAndView; 57 | } 58 | } 59 | @RequestMapping(value="/add") 60 | public String add(HttpServletRequest request,Teacher teacher){ 61 | if(!"0".equals(teacher.getDepartmentId())&&"".equals(teacher.getTeacherName())){ 62 | request.setAttribute("error", "请输入部门和老师姓名"); 63 | return "forward:/teacher/index"; 64 | } 65 | try { 66 | teacherService.addTeacher(teacher); 67 | return "redirect:/teacher/index"; 68 | } catch (Exception e) { 69 | e.printStackTrace(); 70 | return "redirect:/error"; 71 | } 72 | } 73 | 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/UploadController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller; 2 | 3 | import java.io.File; 4 | 5 | import javax.servlet.http.HttpServletRequest; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.ui.ModelMap; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.RequestParam; 12 | import org.springframework.web.multipart.MultipartFile; 13 | 14 | import com.qypt.backstage.entity.student.Student; 15 | import com.qypt.backstage.service.StudentService; 16 | 17 | @Controller 18 | @RequestMapping(value = "/upload") 19 | public class UploadController { 20 | @Autowired 21 | private StudentService studentService; 22 | @RequestMapping("/studentPhoto") 23 | public String upload(@RequestParam("photo") MultipartFile[] files, 24 | HttpServletRequest request, ModelMap model,String studentId) { 25 | if (files != null && files.length > 0) { 26 | for (int i = 0; i < files.length; i++) { 27 | MultipartFile file = files[i]; 28 | // 调用储存file的函数 29 | saveFile(request, file,studentId); 30 | model.put("name", file.getOriginalFilename()); 31 | } 32 | } 33 | return "redirect:/student/index"; 34 | } 35 | /* 36 | * 存储file的函数 37 | */ 38 | private boolean saveFile(HttpServletRequest request, MultipartFile file,String studentId) { 39 | if (!file.isEmpty()) { 40 | try { 41 | //存储路径设置 42 | String realPath = request.getSession().getServletContext().getRealPath(""); 43 | String path="upload\\"+studentId+"\\"+ file.getOriginalFilename(); 44 | String filePath = realPath+"\\"+path; 45 | Student student=new Student(); 46 | student.setStudentId(studentId); 47 | student.setImgUrl(path); 48 | studentService.editStudentPhoto(student); 49 | File saveDir = new File(filePath); 50 | if (!saveDir.getParentFile().exists()) { 51 | saveDir.getParentFile().mkdirs(); 52 | } 53 | // 文件转存 54 | file.transferTo(saveDir); 55 | return true; 56 | } catch (Exception e) { 57 | e.printStackTrace(); 58 | } 59 | } 60 | return false; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/controller/admin/AdminController.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.controller.admin; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpSession; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | 10 | import com.qypt.backstage.entity.peadmin.PeAdmin; 11 | import com.qypt.backstage.service.PeAdminService; 12 | import com.qypt.backstage.util.Md5Util; 13 | 14 | @Controller 15 | public class AdminController { 16 | @Autowired 17 | private PeAdminService peAdminService; 18 | 19 | @RequestMapping("/verification") 20 | public String verification(PeAdmin admin, HttpServletRequest request) { 21 | admin.setAdminPass(Md5Util.getMD5(admin.getAdminPass())); 22 | try { 23 | PeAdmin peAdmin = peAdminService.findAdminUserPass(admin); 24 | if (peAdmin != null) { 25 | request.getSession().setAttribute("user", admin); 26 | return "redirect:/index"; 27 | } 28 | } catch (Exception e) { 29 | e.printStackTrace(); 30 | return "/error"; 31 | } 32 | request.setAttribute("noUserAndPass", "账号密码错误,请重新输入"); 33 | return "forward:/login"; 34 | } 35 | 36 | @RequestMapping(value = "/login") 37 | public String login() { 38 | return "login/login"; 39 | } 40 | @RequestMapping(value="/index") 41 | public String index(){ 42 | return "/login/qyptIndex"; 43 | } 44 | @RequestMapping(value="/over") 45 | public String over(HttpServletRequest request){ 46 | HttpSession session = request.getSession(); 47 | session.removeAttribute("user"); 48 | return "redirect:/login"; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/classes/ClassesCustomMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.classes; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.classes.Classes; 6 | 7 | /** 8 | * @author fz 9 | */ 10 | public interface ClassesCustomMapper { 11 | /** 12 | * 条件分页查询 13 | * 14 | * @param classes 15 | * 查询对象 16 | * @return 返回集合对象 17 | * @throws Exception 18 | * 异常处理 19 | */ 20 | public List selectClasses(Classes classes) throws Exception; 21 | 22 | /** 23 | * 查询记录数 24 | * 25 | * @param classes 26 | * 条件 27 | * @return 返回记录数 28 | */ 29 | public Integer selectCount(Classes classes); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/classes/ClassesMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.classes; 2 | 3 | import com.qypt.backstage.entity.classes.Classes; 4 | import com.qypt.backstage.entity.classes.ClassesExample; 5 | 6 | import java.util.List; 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | public interface ClassesMapper { 10 | int countByExample(ClassesExample example); 11 | 12 | int deleteByExample(ClassesExample example); 13 | 14 | int deleteByPrimaryKey(Integer classId); 15 | 16 | int insert(Classes record); 17 | 18 | int insertSelective(Classes record); 19 | 20 | List selectByExample(ClassesExample example); 21 | 22 | Classes selectByPrimaryKey(Integer classId); 23 | 24 | int updateByExampleSelective(@Param("record") Classes record, @Param("example") ClassesExample example); 25 | 26 | int updateByExample(@Param("record") Classes record, @Param("example") ClassesExample example); 27 | 28 | int updateByPrimaryKeySelective(Classes record); 29 | 30 | int updateByPrimaryKey(Classes record); 31 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/course/CourseMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.course; 2 | 3 | import com.qypt.backstage.entity.course.Course; 4 | import com.qypt.backstage.entity.course.CourseExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface CourseMapper { 9 | int countByExample(CourseExample example); 10 | 11 | int deleteByExample(CourseExample example); 12 | 13 | int insert(Course record); 14 | 15 | int insertSelective(Course record); 16 | 17 | List selectByExample(CourseExample example); 18 | 19 | int updateByExampleSelective(@Param("record") Course record, @Param("example") CourseExample example); 20 | 21 | int updateByExample(@Param("record") Course record, @Param("example") CourseExample example); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/course/CourseinformationCustomMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.course; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.course.Courseinformation; 6 | import com.qypt.backstage.entity.course.CourseinformationCustom; 7 | 8 | public interface CourseinformationCustomMapper { 9 | /** 10 | * 查询所有课程信息 11 | * @return 12 | * @throws Exception 13 | */ 14 | public List selectCIAll(CourseinformationCustom course) throws Exception; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/course/CourseinformationMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.course; 2 | 3 | import com.qypt.backstage.entity.course.Courseinformation; 4 | import com.qypt.backstage.entity.course.CourseinformationExample; 5 | 6 | import java.util.List; 7 | import org.apache.ibatis.annotations.Param; 8 | import org.springframework.stereotype.Component; 9 | @Component 10 | public interface CourseinformationMapper { 11 | int countByExample(CourseinformationExample example); 12 | 13 | int deleteByExample(CourseinformationExample example); 14 | 15 | int deleteByPrimaryKey(Integer ciId); 16 | 17 | int insert(Courseinformation record); 18 | 19 | int insertSelective(Courseinformation record); 20 | 21 | List selectByExample(CourseinformationExample example); 22 | 23 | Courseinformation selectByPrimaryKey(Integer ciId); 24 | 25 | int updateByExampleSelective(@Param("record") Courseinformation record, @Param("example") CourseinformationExample example); 26 | 27 | int updateByExample(@Param("record") Courseinformation record, @Param("example") CourseinformationExample example); 28 | 29 | int updateByPrimaryKeySelective(Courseinformation record); 30 | 31 | int updateByPrimaryKey(Courseinformation record); 32 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/department/DepartmentMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.department; 2 | 3 | import com.qypt.backstage.entity.department.Department; 4 | import com.qypt.backstage.entity.department.DepartmentExample; 5 | 6 | import java.util.List; 7 | import org.apache.ibatis.annotations.Param; 8 | import org.springframework.stereotype.Component; 9 | @Component 10 | public interface DepartmentMapper { 11 | int countByExample(DepartmentExample example); 12 | 13 | int deleteByExample(DepartmentExample example); 14 | 15 | int deleteByPrimaryKey(Integer departmentId); 16 | 17 | int insert(Department record); 18 | 19 | int insertSelective(Department record); 20 | 21 | List selectByExample(DepartmentExample example); 22 | 23 | Department selectByPrimaryKey(Integer departmentId); 24 | 25 | int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example); 26 | 27 | int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example); 28 | 29 | int updateByPrimaryKeySelective(Department record); 30 | 31 | int updateByPrimaryKey(Department record); 32 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/peadmin/PeAdminMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.peadmin; 2 | 3 | import com.qypt.backstage.entity.peadmin.PeAdmin; 4 | import com.qypt.backstage.entity.peadmin.PeAdminExample; 5 | 6 | import java.util.List; 7 | import org.apache.ibatis.annotations.Param; 8 | import org.springframework.stereotype.Component; 9 | @Component 10 | public interface PeAdminMapper { 11 | int countByExample(PeAdminExample example); 12 | 13 | int deleteByExample(PeAdminExample example); 14 | 15 | int deleteByPrimaryKey(Integer adminId); 16 | 17 | int insert(PeAdmin record); 18 | 19 | int insertSelective(PeAdmin record); 20 | 21 | List selectByExample(PeAdminExample example); 22 | 23 | PeAdmin selectByPrimaryKey(Integer adminId); 24 | 25 | int updateByExampleSelective(@Param("record") PeAdmin record, @Param("example") PeAdminExample example); 26 | 27 | int updateByExample(@Param("record") PeAdmin record, @Param("example") PeAdminExample example); 28 | 29 | int updateByPrimaryKeySelective(PeAdmin record); 30 | 31 | int updateByPrimaryKey(PeAdmin record); 32 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/score/ScoreInfoCustomMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.score; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.score.ScoreInfo; 6 | import com.qypt.backstage.entity.score.ScoreInfoCustom; 7 | 8 | public interface ScoreInfoCustomMapper { 9 | /** 10 | * 查询成绩明细 11 | * @param scoreId 成绩表ID 12 | * @return 返回集合 13 | * @throws Exception 异常处理 14 | */ 15 | public List selectScoreDepartment(Integer scoreId) throws Exception; 16 | /** 17 | * 插入学生成绩 18 | * @param scoreInfo 19 | * @throws Exception 20 | */ 21 | public void insertStudentScoreInfo(List scoreInfo) throws Exception; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/score/ScoreInfoMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.score; 2 | 3 | import com.qypt.backstage.entity.score.ScoreInfo; 4 | import com.qypt.backstage.entity.score.ScoreInfoExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface ScoreInfoMapper { 9 | int countByExample(ScoreInfoExample example); 10 | 11 | int deleteByExample(ScoreInfoExample example); 12 | 13 | int insert(ScoreInfo record); 14 | 15 | int insertSelective(ScoreInfo record); 16 | 17 | List selectByExample(ScoreInfoExample example); 18 | 19 | int updateByExampleSelective(@Param("record") ScoreInfo record, @Param("example") ScoreInfoExample example); 20 | 21 | int updateByExample(@Param("record") ScoreInfo record, @Param("example") ScoreInfoExample example); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/score/ScoreMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.score; 2 | 3 | import com.qypt.backstage.entity.score.Score; 4 | import com.qypt.backstage.entity.score.ScoreExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface ScoreMapper { 9 | int countByExample(ScoreExample example); 10 | 11 | int deleteByExample(ScoreExample example); 12 | 13 | int deleteByPrimaryKey(Integer scoreId); 14 | 15 | int insert(Score record); 16 | 17 | int insertSelective(Score record); 18 | 19 | List selectByExample(ScoreExample example); 20 | 21 | Score selectByPrimaryKey(Integer scoreId); 22 | 23 | int updateByExampleSelective(@Param("record") Score record, @Param("example") ScoreExample example); 24 | 25 | int updateByExample(@Param("record") Score record, @Param("example") ScoreExample example); 26 | 27 | int updateByPrimaryKeySelective(Score record); 28 | 29 | int updateByPrimaryKey(Score record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/student/StudentCustomMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.student; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.student.Student; 6 | import com.qypt.backstage.entity.student.StudentCustom; 7 | 8 | public interface StudentCustomMapper { 9 | /** 10 | * 根据系部ID查询学生ID 11 | * 12 | * @param id 13 | * 系部iD 14 | * @return 返回学生ID 15 | * @throws Exception 16 | * 异常处理 17 | */ 18 | public String selectStudentById(Integer id) throws Exception; 19 | 20 | /** 21 | * 查询所有学生 22 | * 23 | * @param student 24 | * 学生条件 25 | * @return 返回集合 26 | * @throws Exception 27 | * 异常处理 28 | */ 29 | public List selectStudentAll(StudentCustom student) 30 | throws Exception; 31 | 32 | /** 33 | * 根据对象ID进行上传照片 34 | * 35 | * @param s 36 | * 对象 37 | */ 38 | public void updateStudentPhoto(Student s) throws Exception; 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/student/StudentMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.student; 2 | 3 | import com.qypt.backstage.entity.student.Student; 4 | import com.qypt.backstage.entity.student.StudentExample; 5 | 6 | import java.util.List; 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | public interface StudentMapper { 10 | int countByExample(StudentExample example); 11 | 12 | int deleteByExample(StudentExample example); 13 | 14 | int deleteByPrimaryKey(String studentId); 15 | 16 | int insert(Student record); 17 | 18 | int insertSelective(Student record); 19 | 20 | List selectByExample(StudentExample example); 21 | 22 | Student selectByPrimaryKey(String studentId); 23 | 24 | int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example); 25 | 26 | int updateByExample(@Param("record") Student record, @Param("example") StudentExample example); 27 | 28 | int updateByPrimaryKeySelective(Student record); 29 | 30 | int updateByPrimaryKey(Student record); 31 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/teacher/TeacherCustomMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.teacher; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.teacher.TeacherCustom; 6 | 7 | /** 8 | * @author fz 9 | */ 10 | public interface TeacherCustomMapper { 11 | /** 12 | * 查询所有 13 | * @param teacherCustom 14 | * @return 15 | * @throws Exception 16 | */ 17 | public List selectTeacher(TeacherCustom teacherCustom) throws Exception; 18 | /** 19 | * 查询多少条记录 20 | * @param teacherCustom 查询对象 21 | * @return 返回长度 22 | * @throws Exception 异常处理 23 | */ 24 | public Integer selectCount(TeacherCustom teacherCustom) throws Exception; 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/dao/teacher/TeacherMapper.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.dao.teacher; 2 | 3 | import com.qypt.backstage.entity.teacher.Teacher; 4 | import com.qypt.backstage.entity.teacher.TeacherExample; 5 | 6 | import java.util.List; 7 | import org.apache.ibatis.annotations.Param; 8 | import org.springframework.stereotype.Component; 9 | @Component 10 | public interface TeacherMapper { 11 | int countByExample(TeacherExample example); 12 | 13 | int deleteByExample(TeacherExample example); 14 | 15 | int deleteByPrimaryKey(Integer teacherId); 16 | 17 | int insert(Teacher record); 18 | 19 | int insertSelective(Teacher record); 20 | 21 | List selectByExample(TeacherExample example); 22 | 23 | Teacher selectByPrimaryKey(Integer teacherId); 24 | 25 | int updateByExampleSelective(@Param("record") Teacher record, @Param("example") TeacherExample example); 26 | 27 | int updateByExample(@Param("record") Teacher record, @Param("example") TeacherExample example); 28 | 29 | int updateByPrimaryKeySelective(Teacher record); 30 | 31 | int updateByPrimaryKey(Teacher record); 32 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/classes/Classes.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.classes; 2 | 3 | public class Classes { 4 | private Integer classId; 5 | 6 | private String className; 7 | 8 | private Integer departmentId; 9 | 10 | private String state; 11 | 12 | public Integer getClassId() { 13 | return classId; 14 | } 15 | 16 | public void setClassId(Integer classId) { 17 | this.classId = classId; 18 | } 19 | 20 | public String getClassName() { 21 | return className; 22 | } 23 | 24 | public void setClassName(String className) { 25 | this.className = className == null ? null : className.trim(); 26 | } 27 | 28 | public Integer getDepartmentId() { 29 | return departmentId; 30 | } 31 | 32 | public void setDepartmentId(Integer departmentId) { 33 | this.departmentId = departmentId; 34 | } 35 | 36 | public String getState() { 37 | return state; 38 | } 39 | 40 | public void setState(String state) { 41 | this.state = state == null ? null : state.trim(); 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/classes/ClassesCustom.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.classes; 2 | 3 | import com.qypt.backstage.entity.department.Department; 4 | 5 | public class ClassesCustom extends Classes { 6 | 7 | private Department department; 8 | //当前页 9 | private Integer pageCurrent; 10 | //索引值 11 | private Integer pageIndex; 12 | //每页显示多少 13 | private Integer pageSize; 14 | //总页 15 | private Integer pageNum; 16 | public Integer getPageCurrent() { 17 | return pageCurrent; 18 | } 19 | public void setPageCurrent(Integer pageCurrent) { 20 | this.pageCurrent = pageCurrent; 21 | } 22 | public Integer getPageIndex() { 23 | return pageIndex; 24 | } 25 | public void setPageIndex(Integer pageIndex) { 26 | this.pageIndex = pageIndex; 27 | } 28 | public Integer getPageSize() { 29 | return pageSize; 30 | } 31 | public void setPageSize(Integer pageSize) { 32 | this.pageSize = pageSize; 33 | } 34 | public Integer getPageNum() { 35 | return pageNum; 36 | } 37 | public void setPageNum(Integer pageNum) { 38 | this.pageNum = pageNum; 39 | } 40 | public Department getDepartment() { 41 | return department; 42 | } 43 | public void setDepartment(Department department) { 44 | this.department = department; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/course/Course.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.course; 2 | 3 | public class Course { 4 | private Integer classId; 5 | 6 | private Integer ciId; 7 | 8 | public Integer getClassId() { 9 | return classId; 10 | } 11 | 12 | public void setClassId(Integer classId) { 13 | this.classId = classId; 14 | } 15 | 16 | public Integer getCiId() { 17 | return ciId; 18 | } 19 | 20 | public void setCiId(Integer ciId) { 21 | this.ciId = ciId; 22 | } 23 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/course/Courseinformation.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.course; 2 | 3 | public class Courseinformation { 4 | private Integer ciId; 5 | 6 | private String ciName; 7 | 8 | private Integer departmentId; 9 | 10 | public Integer getCiId() { 11 | return ciId; 12 | } 13 | 14 | public void setCiId(Integer ciId) { 15 | this.ciId = ciId; 16 | } 17 | 18 | public String getCiName() { 19 | return ciName; 20 | } 21 | 22 | public void setCiName(String ciName) { 23 | this.ciName = ciName == null ? null : ciName.trim(); 24 | } 25 | 26 | public Integer getDepartmentId() { 27 | return departmentId; 28 | } 29 | 30 | public void setDepartmentId(Integer departmentId) { 31 | this.departmentId = departmentId; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/course/CourseinformationCustom.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.course; 2 | 3 | import com.qypt.backstage.entity.department.Department; 4 | 5 | public class CourseinformationCustom extends Courseinformation { 6 | 7 | private Department department; 8 | 9 | public Department getDepartment() { 10 | return department; 11 | } 12 | 13 | public void setDepartment(Department department) { 14 | this.department = department; 15 | } 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/department/Department.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.department; 2 | 3 | public class Department { 4 | private Integer departmentId; 5 | 6 | private String departmentName; 7 | 8 | public Integer getDepartmentId() { 9 | return departmentId; 10 | } 11 | 12 | public void setDepartmentId(Integer departmentId) { 13 | this.departmentId = departmentId; 14 | } 15 | 16 | public String getDepartmentName() { 17 | return departmentName; 18 | } 19 | 20 | public void setDepartmentName(String departmentName) { 21 | this.departmentName = departmentName == null ? null : departmentName.trim(); 22 | } 23 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/peadmin/PeAdmin.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.peadmin; 2 | 3 | public class PeAdmin { 4 | private Integer adminId; 5 | 6 | private String adminName; 7 | 8 | private String adminPass; 9 | 10 | public Integer getAdminId() { 11 | return adminId; 12 | } 13 | 14 | public void setAdminId(Integer adminId) { 15 | this.adminId = adminId; 16 | } 17 | 18 | public String getAdminName() { 19 | return adminName; 20 | } 21 | 22 | public void setAdminName(String adminName) { 23 | this.adminName = adminName == null ? null : adminName.trim(); 24 | } 25 | 26 | public String getAdminPass() { 27 | return adminPass; 28 | } 29 | 30 | public void setAdminPass(String adminPass) { 31 | this.adminPass = adminPass == null ? null : adminPass.trim(); 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/score/Score.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.score; 2 | 3 | public class Score { 4 | private Integer scoreId; 5 | 6 | private String scoreName; 7 | 8 | public Integer getScoreId() { 9 | return scoreId; 10 | } 11 | 12 | public void setScoreId(Integer scoreId) { 13 | this.scoreId = scoreId; 14 | } 15 | 16 | public String getScoreName() { 17 | return scoreName; 18 | } 19 | 20 | public void setScoreName(String scoreName) { 21 | this.scoreName = scoreName == null ? null : scoreName.trim(); 22 | } 23 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/score/ScoreCustom.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.score; 2 | 3 | public class ScoreCustom extends Score { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/score/ScoreInfo.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.score; 2 | 3 | public class ScoreInfo { 4 | private String studentId; 5 | 6 | private Integer ciId; 7 | 8 | private Double fraction; 9 | 10 | private Integer scoreId; 11 | 12 | public String getStudentId() { 13 | return studentId; 14 | } 15 | 16 | public void setStudentId(String studentId) { 17 | this.studentId = studentId == null ? null : studentId.trim(); 18 | } 19 | 20 | public Integer getCiId() { 21 | return ciId; 22 | } 23 | 24 | public void setCiId(Integer ciId) { 25 | this.ciId = ciId; 26 | } 27 | 28 | public Double getFraction() { 29 | return fraction; 30 | } 31 | 32 | public void setFraction(Double fraction) { 33 | this.fraction = fraction; 34 | } 35 | 36 | public Integer getScoreId() { 37 | return scoreId; 38 | } 39 | 40 | public void setScoreId(Integer scoreId) { 41 | this.scoreId = scoreId; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/score/ScoreInfoCustom.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.score; 2 | 3 | import com.qypt.backstage.entity.classes.ClassesCustom; 4 | import com.qypt.backstage.entity.course.Courseinformation; 5 | import com.qypt.backstage.entity.student.StudentCustom; 6 | 7 | public class ScoreInfoCustom extends ScoreInfo { 8 | private Score score; 9 | private StudentCustom student; 10 | private ClassesCustom classes; 11 | private Courseinformation courseinformation; 12 | 13 | private String linux; 14 | private String php; 15 | private String java; 16 | private String jquery; 17 | private String wlyx; 18 | private String hkgf; 19 | 20 | public ClassesCustom getClasses() { 21 | return classes; 22 | } 23 | 24 | public void setClasses(ClassesCustom classes) { 25 | this.classes = classes; 26 | } 27 | 28 | public Score getScore() { 29 | return score; 30 | } 31 | 32 | public void setScore(Score score) { 33 | this.score = score; 34 | } 35 | 36 | public StudentCustom getStudent() { 37 | return student; 38 | } 39 | 40 | public void setStudent(StudentCustom student) { 41 | this.student = student; 42 | } 43 | 44 | public Courseinformation getCourseinformation() { 45 | return courseinformation; 46 | } 47 | 48 | public void setCourseinformation(Courseinformation courseinformation) { 49 | this.courseinformation = courseinformation; 50 | } 51 | 52 | public String getLinux() { 53 | return linux; 54 | } 55 | 56 | public void setLinux(String linux) { 57 | this.linux = linux; 58 | } 59 | 60 | public String getPhp() { 61 | return php; 62 | } 63 | 64 | public void setPhp(String php) { 65 | this.php = php; 66 | } 67 | 68 | public String getJava() { 69 | return java; 70 | } 71 | 72 | public void setJava(String java) { 73 | this.java = java; 74 | } 75 | 76 | public String getJquery() { 77 | return jquery; 78 | } 79 | 80 | public void setJquery(String jquery) { 81 | this.jquery = jquery; 82 | } 83 | 84 | public String getWlyx() { 85 | return wlyx; 86 | } 87 | 88 | public void setWlyx(String wlyx) { 89 | this.wlyx = wlyx; 90 | } 91 | 92 | public String getHkgf() { 93 | return hkgf; 94 | } 95 | 96 | public void setHkgf(String hkgf) { 97 | this.hkgf = hkgf; 98 | } 99 | 100 | } 101 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/student/Student.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.student; 2 | 3 | import java.util.Date; 4 | 5 | public class Student { 6 | private String studentId; 7 | 8 | private String studentName; 9 | 10 | private String sex; 11 | 12 | private Integer departmentId; 13 | 14 | private Integer classId; 15 | 16 | private String phone; 17 | 18 | private String address; 19 | 20 | private Date entranceTime; 21 | 22 | private String imgUrl; 23 | 24 | public String getStudentId() { 25 | return studentId; 26 | } 27 | 28 | public void setStudentId(String studentId) { 29 | this.studentId = studentId == null ? null : studentId.trim(); 30 | } 31 | 32 | public String getStudentName() { 33 | return studentName; 34 | } 35 | 36 | public void setStudentName(String studentName) { 37 | this.studentName = studentName == null ? null : studentName.trim(); 38 | } 39 | 40 | public String getSex() { 41 | return sex; 42 | } 43 | 44 | public void setSex(String sex) { 45 | this.sex = sex == null ? null : sex.trim(); 46 | } 47 | 48 | public Integer getDepartmentId() { 49 | return departmentId; 50 | } 51 | 52 | public void setDepartmentId(Integer departmentId) { 53 | this.departmentId = departmentId; 54 | } 55 | 56 | public Integer getClassId() { 57 | return classId; 58 | } 59 | 60 | public void setClassId(Integer classId) { 61 | this.classId = classId; 62 | } 63 | 64 | public String getPhone() { 65 | return phone; 66 | } 67 | 68 | public void setPhone(String phone) { 69 | this.phone = phone == null ? null : phone.trim(); 70 | } 71 | 72 | public String getAddress() { 73 | return address; 74 | } 75 | 76 | public void setAddress(String address) { 77 | this.address = address == null ? null : address.trim(); 78 | } 79 | 80 | public Date getEntranceTime() { 81 | return entranceTime; 82 | } 83 | 84 | public void setEntranceTime(Date entranceTime) { 85 | this.entranceTime = entranceTime; 86 | } 87 | 88 | public String getImgUrl() { 89 | return imgUrl; 90 | } 91 | 92 | public void setImgUrl(String imgUrl) { 93 | this.imgUrl = imgUrl == null ? null : imgUrl.trim(); 94 | } 95 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/student/StudentCustom.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.student; 2 | 3 | import com.qypt.backstage.entity.classes.Classes; 4 | import com.qypt.backstage.entity.department.Department; 5 | 6 | public class StudentCustom extends Student { 7 | 8 | private Department department; 9 | private Classes classes; 10 | 11 | public Department getDepartment() { 12 | return department; 13 | } 14 | 15 | public void setDepartment(Department department) { 16 | this.department = department; 17 | } 18 | 19 | public Classes getClasses() { 20 | return classes; 21 | } 22 | 23 | public void setClasses(Classes classes) { 24 | this.classes = classes; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/teacher/Teacher.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.teacher; 2 | 3 | public class Teacher { 4 | private Integer teacherId; 5 | 6 | private String teacherName; 7 | 8 | private Integer departmentId; 9 | 10 | public Integer getTeacherId() { 11 | return teacherId; 12 | } 13 | 14 | public void setTeacherId(Integer teacherId) { 15 | this.teacherId = teacherId; 16 | } 17 | 18 | public String getTeacherName() { 19 | return teacherName; 20 | } 21 | 22 | public void setTeacherName(String teacherName) { 23 | this.teacherName = teacherName == null ? null : teacherName.trim(); 24 | } 25 | 26 | public Integer getDepartmentId() { 27 | return departmentId; 28 | } 29 | 30 | public void setDepartmentId(Integer departmentId) { 31 | this.departmentId = departmentId; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/entity/teacher/TeacherCustom.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.entity.teacher; 2 | 3 | import com.qypt.backstage.entity.department.Department; 4 | 5 | /** 6 | * @author fz 7 | */ 8 | public class TeacherCustom extends Teacher { 9 | 10 | private Department department; 11 | private Integer pageUp; 12 | private Integer pageDown; 13 | private Integer pageCurrrnt; 14 | private int pageNum; 15 | 16 | public void setDepartment(Department department) { 17 | this.department = department; 18 | } 19 | 20 | public Department getDepartment() { 21 | return department; 22 | } 23 | 24 | public Integer getPageUp() { 25 | return pageUp; 26 | } 27 | 28 | public void setPageUp(Integer pageUp) { 29 | this.pageUp = pageUp; 30 | } 31 | 32 | public Integer getPageDown() { 33 | return pageDown; 34 | } 35 | 36 | public void setPageDown(Integer pageDown) { 37 | this.pageDown = pageDown; 38 | } 39 | 40 | public Integer getPageCurrrnt() { 41 | return pageCurrrnt; 42 | } 43 | 44 | public void setPageCurrrnt(Integer pageCurrrnt) { 45 | this.pageCurrrnt = pageCurrrnt; 46 | } 47 | 48 | public Integer getPageNum() { 49 | return pageNum; 50 | } 51 | 52 | public void setPageNum(Integer pageNum) { 53 | this.pageNum = pageNum; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/mapping/ClassesCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | d.department_id = c.department_id and 1=1 7 | 8 | and c.class_id LIKE '%${classId}%' 9 | 10 | 11 | and c.class_name LIKE '%${className}%' 12 | 13 | 14 | and d.department_id = #{departmentId} 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 41 | 42 | 51 | 52 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/mapping/CourseinformationCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | d.department_id = c.department_id and 1=1 7 | 8 | and c.department_id = #{departmentId} 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/mapping/ScoreInfoCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | s.`student_id` = st.`student_id` 7 | AND c.`class_id` = 8 | st.`class_id` 9 | AND st.`department_id` = 4 10 | and s.score_id = #{scoreId} 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 96 | 97 | 98 | insert into 99 | score_info(student_id,ci_id,fraction,score_id)values 100 | 101 | (#{item.studentId},#{item.ciId},#{item.fraction},#{item.scoreId}) 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/mapping/StudentCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | s.`department_id` = d.`department_id` 7 | and s.`class_id` = c.`class_id` 8 | and 1=1 9 | 10 | and d.`department_id` = #{departmentId} 11 | 12 | 13 | and c.class_id = #{classId} 14 | 15 | 16 | and s.`student_id` = #{studentId} 17 | 18 | 19 | and s.student_name LIKE '%${studentName}%' 20 | 21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 38 | 39 | 40 | 42 | 43 | 44 | 45 | 46 | 47 | 58 | 59 | 70 | 71 | 72 | UPDATE student SET img_url=#{imgUrl} WHERE student_id=#{studentId} 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/mapping/TeacherCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | d.department_id = t.department_id and 1=1 7 | 8 | and t.teacher_name LIKE '%${teacherName}%' 9 | 10 | 11 | and d.department_id = #{departmentId} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 37 | 38 | 46 | 47 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/ClassesService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.classes.Classes; 6 | import com.qypt.backstage.entity.classes.ClassesCustom; 7 | 8 | public interface ClassesService { 9 | /** 10 | * 添加班级 11 | * 12 | * @param record 13 | * 班级对象 14 | * @return 返回成功值 15 | * @throws Expception 16 | * 异常处理 17 | */ 18 | public int addClasses(Classes record) throws Exception; 19 | 20 | /** 21 | * 22 | * @param classesCustom 23 | * @return 24 | * @throws Exception 25 | */ 26 | public List findClassesAll(ClassesCustom classesCustom) 27 | throws Exception; 28 | 29 | /** 30 | * 查询记录数量 31 | * 32 | * @param classesCustom 33 | * 查询对象 34 | * @return 返回数量 35 | * @throws Exception 36 | * 异常处理 37 | */ 38 | public Integer findCount(ClassesCustom classesCustom) throws Exception; 39 | 40 | /** 41 | * 修改班级信息 42 | * 43 | * @param classes 44 | * 修改对象 45 | * @throws Exception 46 | * 异常处理 47 | */ 48 | public void editClasses(Classes classes) throws Exception; 49 | 50 | /** 51 | * 52 | * @param id 主键 53 | * @return 返回对象 54 | * @throws Exception 异常处理 55 | */ 56 | public Classes findClasses(Integer id) throws Exception; 57 | /** 58 | * 根据院系ID 查找院系所有班级 59 | * @param id 60 | * @return 61 | * @throws Exception 62 | */ 63 | public List findClassByDepartmentId(Integer id) throws Exception; 64 | /** 65 | * 查询所有班级 66 | * @return 返回班级集合 67 | * @throws Exception 异常处理 68 | */ 69 | public List findClassAll() throws Exception; 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/CourseService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import com.qypt.backstage.entity.course.Course; 4 | 5 | public interface CourseService { 6 | /** 7 | * 添加班级的课程 8 | * @param course 课程对象 9 | * @throws Exception 10 | */ 11 | public void addCourse(Course course) throws Exception; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/CourseinfomationService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.course.Courseinformation; 6 | import com.qypt.backstage.entity.course.CourseinformationCustom; 7 | 8 | public interface CourseinfomationService { 9 | /** 10 | * 查询所有课程信息 11 | * @param id 系部ID 12 | * @return 返回所有集合对象 13 | * @throws Exception 异常处理 14 | */ 15 | public List findCIAll(CourseinformationCustom course) throws Exception; 16 | /** 17 | * 添加课程信息 18 | * @param courseinformation 19 | * @throws Exception 20 | */ 21 | public void addCI(Courseinformation courseinformation) throws Exception; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/DepartmentService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import java.util.List; 4 | 5 | 6 | import com.qypt.backstage.entity.department.Department; 7 | 8 | /** 9 | * @author fz 10 | */ 11 | public interface DepartmentService { 12 | /** 13 | * 查询所有部门 14 | * @return 返回一个集合对象 15 | * @throws Exception 异常处理 16 | */ 17 | public List findDepartmentAll() throws Exception; 18 | /** 19 | * 添加部门信息 20 | * @param department 部门对象 21 | * @return 返回是否成功 22 | * @throws Exception 异常处理 23 | */ 24 | public int addDepartment(Department department) throws Exception; 25 | /** 26 | * 根据ID 查询部门 27 | * @param id 部门ID 28 | * @return 返回部门对象 29 | * @throws Exception 30 | */ 31 | public Department findDepartmentById(Integer id) throws Exception; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/PeAdminService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import com.qypt.backstage.entity.peadmin.PeAdmin; 4 | 5 | public interface PeAdminService { 6 | /** 7 | * 根据账号密码 登录 8 | * @param admin 账号对象 9 | * @return 返回对象 10 | * @throws Exception 异常处理 11 | */ 12 | public PeAdmin findAdminUserPass(PeAdmin admin) throws Exception; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/ScoreInfoService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.score.ScoreInfo; 6 | import com.qypt.backstage.entity.score.ScoreInfoCustom; 7 | 8 | public interface ScoreInfoService { 9 | /** 10 | * 查询成绩明细 11 | * @param scoreId 上学期还是下学期 12 | * @return 返回集合 13 | * @throws Exception 异常处理 14 | */ 15 | public List findScoreDepartment(Integer scoreId) throws Exception; 16 | /** 17 | * 添加学生成绩 18 | * @param scoreInfo 学生集合 19 | * @throws Exception 20 | */ 21 | public void addStudentScoreInfo(List scoreInfo) throws Exception; 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/ScoreService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.score.Score; 6 | 7 | public interface ScoreService { 8 | /** 9 | * 添加一个成绩表 10 | * @param score 成绩表对象 11 | * @throws Expcetion 异常处理 12 | */ 13 | public void add(Score score) throws Exception; 14 | /** 15 | * 查询所有成绩表 16 | * @return 返回集合 17 | * @throws Exception 异常处理 18 | */ 19 | public List findScore() throws Exception; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/StudentService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import java.util.List; 4 | 5 | import com.qypt.backstage.entity.student.Student; 6 | import com.qypt.backstage.entity.student.StudentCustom; 7 | 8 | 9 | public interface StudentService { 10 | /** 11 | * 根据院系ID查询该院系有没有学生 12 | * @param id 院系ID 13 | * @return 返回一个学生ID 14 | * @throws Exception 异常处理 15 | */ 16 | public String findStudentById(Integer id) throws Exception; 17 | 18 | /** 19 | * 添加学生 20 | * @param student 学生对象 21 | */ 22 | public void addStudent(Student student); 23 | /** 24 | * 查询所有学生 25 | * @param student 学生条件 26 | * @return 返回集合 27 | * @throws Exception 异常处理 28 | */ 29 | public List findStudentAll(StudentCustom student) throws Exception; 30 | /** 31 | * 修改学生信息 32 | * @param student 学生条件 33 | */ 34 | public void editStudent(Student student); 35 | /** 36 | * 根据名字查询学生是否存在 37 | * @param name 学生名字 38 | * @return 返回学生对象 39 | */ 40 | public List findStudentByName(String name); 41 | /** 42 | * 根据学生对象上传图片 43 | * @param s 学生对象 44 | * @throws Exception 45 | */ 46 | public void editStudentPhoto(Student s) throws Exception; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/TeacherService.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service; 2 | 3 | import java.util.List; 4 | 5 | 6 | import com.qypt.backstage.entity.teacher.Teacher; 7 | import com.qypt.backstage.entity.teacher.TeacherCustom; 8 | 9 | /** 10 | * @author fz 11 | */ 12 | public interface TeacherService { 13 | /** 14 | * 查询所有老师信息 15 | * 16 | * @return 返回集合对象 17 | * @throws Exception 18 | * 异常处理 19 | */ 20 | public List findTeacher(TeacherCustom teacherCustom) throws Exception; 21 | 22 | /** 23 | * 添加老师 24 | * 25 | * @param teaher 26 | * 老师对象 27 | * @return 返回成功值 28 | * @throws Exception 29 | * 异常处理 30 | */ 31 | public int addTeacher(Teacher teaher) throws Exception; 32 | /** 33 | * 34 | * @param teacherCustom 35 | * @return 36 | * @throws Exception 37 | */ 38 | public Integer findCount(TeacherCustom teacherCustom) throws Exception; 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/ClassesServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | import com.qypt.backstage.dao.classes.ClassesCustomMapper; 8 | import com.qypt.backstage.dao.classes.ClassesMapper; 9 | import com.qypt.backstage.entity.classes.Classes; 10 | import com.qypt.backstage.entity.classes.ClassesCustom; 11 | import com.qypt.backstage.entity.classes.ClassesExample; 12 | import com.qypt.backstage.entity.classes.ClassesExample.Criteria; 13 | import com.qypt.backstage.service.ClassesService; 14 | 15 | public class ClassesServiceImpl implements ClassesService { 16 | @Autowired 17 | private ClassesMapper classesMapper; 18 | @Autowired 19 | private ClassesCustomMapper cCustomMapper; 20 | @Override 21 | public int addClasses(Classes record) throws Exception { 22 | return classesMapper.insert(record); 23 | } 24 | 25 | @Override 26 | public List findClassesAll(ClassesCustom classesCustom) throws Exception { 27 | return cCustomMapper.selectClasses(classesCustom); 28 | } 29 | 30 | @Override 31 | public Integer findCount(ClassesCustom classesCustom) throws Exception { 32 | return cCustomMapper.selectCount(classesCustom); 33 | } 34 | 35 | @Override 36 | public void editClasses(Classes classes) throws Exception { 37 | classesMapper.updateByPrimaryKey(classes); 38 | } 39 | 40 | @Override 41 | public Classes findClasses(Integer id) throws Exception { 42 | return classesMapper.selectByPrimaryKey(id); 43 | } 44 | 45 | @Override 46 | public List findClassByDepartmentId(Integer id) throws Exception { 47 | ClassesExample example = new ClassesExample(); 48 | Criteria criteria = example.createCriteria(); 49 | criteria.andDepartmentIdEqualTo(id); 50 | return classesMapper.selectByExample(example); 51 | } 52 | 53 | @Override 54 | public List findClassAll() throws Exception { 55 | ClassesExample example=new ClassesExample(); 56 | return classesMapper.selectByExample(example); 57 | } 58 | 59 | 60 | 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/CourseServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import com.qypt.backstage.entity.course.Course; 4 | import com.qypt.backstage.service.CourseService; 5 | 6 | public class CourseServiceImpl implements CourseService { 7 | 8 | @Override 9 | public void addCourse(Course course) throws Exception { 10 | // TODO Auto-generated method stub 11 | 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/CourseinformationServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | import com.qypt.backstage.dao.course.CourseinformationCustomMapper; 8 | import com.qypt.backstage.dao.course.CourseinformationMapper; 9 | import com.qypt.backstage.entity.course.Courseinformation; 10 | import com.qypt.backstage.entity.course.CourseinformationCustom; 11 | import com.qypt.backstage.service.CourseinfomationService; 12 | 13 | public class CourseinformationServiceImpl implements CourseinfomationService { 14 | @Autowired 15 | private CourseinformationMapper ciMapper; 16 | @Autowired 17 | private CourseinformationCustomMapper customMapper; 18 | @Override 19 | public List findCIAll(CourseinformationCustom course) throws Exception { 20 | return customMapper.selectCIAll(course); 21 | } 22 | @Override 23 | public void addCI(Courseinformation courseinformation) throws Exception { 24 | ciMapper.insert(courseinformation); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/DepartmentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | import com.qypt.backstage.dao.department.DepartmentMapper; 8 | import com.qypt.backstage.entity.department.Department; 9 | import com.qypt.backstage.entity.department.DepartmentExample; 10 | import com.qypt.backstage.service.DepartmentService; 11 | /** 12 | * @author fz 13 | */ 14 | public class DepartmentServiceImpl implements DepartmentService { 15 | @Autowired 16 | private DepartmentMapper departmentMapper; 17 | @Override 18 | public List findDepartmentAll() throws Exception { 19 | DepartmentExample example = null; 20 | return departmentMapper.selectByExample(example); 21 | } 22 | 23 | @Override 24 | public int addDepartment(Department department) throws Exception { 25 | return departmentMapper.insert(department); 26 | } 27 | 28 | @Override 29 | public Department findDepartmentById(Integer id) throws Exception { 30 | return departmentMapper.selectByPrimaryKey(id); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/PeAdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | import com.qypt.backstage.dao.peadmin.PeAdminMapper; 8 | import com.qypt.backstage.entity.peadmin.PeAdmin; 9 | import com.qypt.backstage.entity.peadmin.PeAdminExample; 10 | import com.qypt.backstage.entity.peadmin.PeAdminExample.Criteria; 11 | import com.qypt.backstage.service.PeAdminService; 12 | 13 | public class PeAdminServiceImpl implements PeAdminService { 14 | @Autowired 15 | private PeAdminMapper peAdminMapper; 16 | @Override 17 | public PeAdmin findAdminUserPass(PeAdmin admin) throws Exception { 18 | PeAdminExample example=new PeAdminExample(); 19 | Criteria createCriteria = example.createCriteria(); 20 | createCriteria.andAdminNameEqualTo(admin.getAdminName()); 21 | createCriteria.andAdminPassEqualTo(admin.getAdminPass()); 22 | List peAdminList = peAdminMapper.selectByExample(example); 23 | if(peAdminList.size()>0){ 24 | return peAdminList.get(0); 25 | } 26 | return null; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/ScoreInfoServiceImple.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | import com.qypt.backstage.dao.score.ScoreInfoCustomMapper; 8 | import com.qypt.backstage.entity.score.ScoreInfo; 9 | import com.qypt.backstage.entity.score.ScoreInfoCustom; 10 | import com.qypt.backstage.service.ScoreInfoService; 11 | 12 | public class ScoreInfoServiceImple implements ScoreInfoService { 13 | @Autowired 14 | private ScoreInfoCustomMapper customMapper; 15 | 16 | @Override 17 | public List findScoreDepartment(Integer scoreId) 18 | throws Exception { 19 | return customMapper.selectScoreDepartment(scoreId); 20 | } 21 | 22 | @Override 23 | public void addStudentScoreInfo(List scoreInfo) throws Exception { 24 | customMapper.insertStudentScoreInfo(scoreInfo); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/ScoreServiceImple.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | import com.qypt.backstage.dao.score.ScoreMapper; 8 | import com.qypt.backstage.entity.score.Score; 9 | import com.qypt.backstage.entity.score.ScoreExample; 10 | import com.qypt.backstage.service.ScoreService; 11 | 12 | public class ScoreServiceImple implements ScoreService { 13 | @Autowired 14 | private ScoreMapper scoreMapper; 15 | 16 | @Override 17 | public void add(Score score) throws Exception { 18 | scoreMapper.insert(score); 19 | } 20 | 21 | @Override 22 | public List findScore() throws Exception { 23 | ScoreExample example=new ScoreExample(); 24 | return scoreMapper.selectByExample(example); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/StudentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | 8 | import com.qypt.backstage.dao.student.StudentCustomMapper; 9 | import com.qypt.backstage.dao.student.StudentMapper; 10 | import com.qypt.backstage.entity.student.Student; 11 | import com.qypt.backstage.entity.student.StudentCustom; 12 | import com.qypt.backstage.entity.student.StudentExample; 13 | import com.qypt.backstage.service.StudentService; 14 | 15 | public class StudentServiceImpl implements StudentService { 16 | @Autowired 17 | private StudentMapper studentMapper; 18 | @Autowired 19 | private StudentCustomMapper customMapper; 20 | @Override 21 | public String findStudentById(Integer id) throws Exception { 22 | return customMapper.selectStudentById(id); 23 | } 24 | @Override 25 | public void addStudent(Student student) { 26 | studentMapper.insert(student); 27 | } 28 | @Override 29 | public List findStudentAll(StudentCustom student) 30 | throws Exception { 31 | return customMapper.selectStudentAll(student); 32 | } 33 | @Override 34 | public void editStudent(Student student) { 35 | studentMapper.updateByPrimaryKey(student); 36 | } 37 | @Override 38 | public List findStudentByName(String name) { 39 | StudentExample example=new StudentExample(); 40 | example.createCriteria().andStudentNameEqualTo(name); 41 | return studentMapper.selectByExample(example); 42 | } 43 | @Override 44 | public void editStudentPhoto(Student s) throws Exception { 45 | customMapper.updateStudentPhoto(s); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/service/impl/TeacherServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | 7 | import com.qypt.backstage.dao.teacher.TeacherCustomMapper; 8 | import com.qypt.backstage.dao.teacher.TeacherMapper; 9 | import com.qypt.backstage.entity.teacher.Teacher; 10 | import com.qypt.backstage.entity.teacher.TeacherCustom; 11 | import com.qypt.backstage.service.TeacherService; 12 | 13 | public class TeacherServiceImpl implements TeacherService { 14 | @Autowired 15 | private TeacherCustomMapper tCustomMapper; 16 | @Autowired 17 | private TeacherMapper teacherMapper; 18 | @Override 19 | public List findTeacher(TeacherCustom teacherCustom) throws Exception { 20 | return tCustomMapper.selectTeacher(teacherCustom); 21 | } 22 | @Override 23 | public int addTeacher(Teacher teacher) throws Exception { 24 | return teacherMapper.insert(teacher); 25 | } 26 | @Override 27 | public Integer findCount(TeacherCustom teacherCustom) throws Exception { 28 | return tCustomMapper.selectCount(teacherCustom); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/util/Md5Util.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.util; 2 | 3 | import java.math.BigInteger; 4 | import java.security.MessageDigest; 5 | import java.security.NoSuchAlgorithmException; 6 | 7 | public class Md5Util { 8 | public static String getMD5(String str) { 9 | // 生成一个MD5加密计算摘要 10 | MessageDigest md; 11 | try { 12 | md = MessageDigest.getInstance("MD5"); 13 | md.update(str.getBytes()); 14 | return new BigInteger(1, md.digest()).toString(16); 15 | } catch (NoSuchAlgorithmException e) { 16 | e.printStackTrace(); 17 | } 18 | return str; 19 | 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/qypt/backstage/util/UserInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.qypt.backstage.util; 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 | public class UserInterceptor implements HandlerInterceptor { 10 | 11 | private final String ADMINSESSION = "user"; 12 | //拦截前处理 13 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object obj) throws Exception { 14 | Object sessionObj = request.getSession().getAttribute(ADMINSESSION); 15 | if(sessionObj!=null) { 16 | return true; 17 | } 18 | response.sendRedirect(request.getContextPath()+"/login"); 19 | return false; 20 | } 21 | //拦截后处理 22 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object obj, ModelAndView mav) throws Exception { } 23 | //全部完成后处理 24 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object obj, Exception e) throws Exception { } 25 | } -------------------------------------------------------------------------------- /src/main/resources/generatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/resources/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.driverClassName=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc\:mysql\://localhost\:3306/qingyuan?useUnicode=true&characterEncoding=UTF-8 3 | jdbc.username=root 4 | jdbc.password=123 5 | c3p0.pool.size.max=20 6 | c3p0.pool.size.min=5 7 | c3p0.pool.size.ini=3 8 | c3p0.pool.size.increment=2 -------------------------------------------------------------------------------- /src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info, console, debug, app, error 2 | 3 | ###Console ### 4 | log4j.appender.console = org.apache.log4j.ConsoleAppender 5 | log4j.appender.console.Target = System.out 6 | log4j.appender.console.layout = org.apache.log4j.PatternLayout 7 | log4j.appender.console.layout.ConversionPattern = %d %p[%C:%L]- %m%n 8 | 9 | ### debug ### 10 | log4j.appender.debug = org.apache.log4j.DailyRollingFileAppender 11 | log4j.appender.debug.File = log/debug.log 12 | log4j.appender.debug.Append = true 13 | log4j.appender.debug.Threshold = DEBUG 14 | log4j.appender.debug.DatePattern='.'yyyy-MM-dd 15 | log4j.appender.debug.layout = org.apache.log4j.PatternLayout 16 | log4j.appender.debug.layout.ConversionPattern = %d %p[%c:%L] - %m%n 17 | 18 | ### app ### 19 | log4j.appender.app = org.apache.log4j.DailyRollingFileAppender 20 | log4j.appender.app.File = log/app.log 21 | log4j.appender.app.Append = true 22 | log4j.appender.app.Threshold = INFO 23 | log4j.appender.app.DatePattern='.'yyyy-MM-dd 24 | log4j.appender.app.layout = org.apache.log4j.PatternLayout 25 | log4j.appender.app.layout.ConversionPattern = %d %p[%c:%L] - %m%n 26 | 27 | ### Error ### 28 | log4j.appender.error = org.apache.log4j.DailyRollingFileAppender 29 | log4j.appender.error.File = log/error.log 30 | log4j.appender.error.Append = true 31 | log4j.appender.error.Threshold = ERROR 32 | log4j.appender.error.DatePattern='.'yyyy-MM-dd 33 | log4j.appender.error.layout = org.apache.log4j.PatternLayout 34 | log4j.appender.error.layout.ConversionPattern =%d %p[%c:%L] - %m%n -------------------------------------------------------------------------------- /src/main/resources/spring/applicationContext-service.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/main/resources/spring/applicationContext-transaction.xml: -------------------------------------------------------------------------------- 1 | 2 | 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 | 46 | 48 | 49 | -------------------------------------------------------------------------------- /src/main/resources/spring/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 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 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /src/main/resources/spring/spring-mybatis.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/spring/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/classes/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 清远职业技术学院班级信息 8 | 9 | 10 | 11 | 13 | 20 | 21 |
22 | 24 | 查询班级信息: 32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 48 | 49 | 50 |
院系名班级名是否毕业编辑
${classesAll.department.departmentName}${classesAll.className}${classesAll.state}修改 47 |
51 | 52 | 上一页 54 | 55 | 当前第${classesCustom.pageCurrent}页 56 | 57 | 下一页 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/classes/update.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 清远职业技术学院班级信息修改 8 | 9 | 10 |
11 | 12 |
13 | 院系: 14 | 24 |
25 | 班级信息修改: 26 |
27 | checked="checked">未毕业 28 | checked="checked">毕业 29 |
30 | 31 |
32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/course/courseIndex.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 19 | 21 | 23 | 24 | 清远职业技术学院首页 25 | 26 | 27 | 28 | 29 | 30 | 59 | 60 |
61 |
62 | 86 |
87 | 88 | 89 | 90 |

课程信息

91 |
93 | 添加课程信息: 请输入课程名称: 100 |
101 |
102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 |
系部名称课程名称
${CIAll.department.departmentName }${CIAll.ciName }
118 |
119 |
120 |
121 | 122 |
123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/course/index.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 | <%@ page isELIgnored="false"%> 5 | 6 | 7 | 8 | 清远职业技术学院系部浏览 9 | 10 | 11 | 12 |
14 | 添加课程信息: 请输入课程名称: 21 |
22 |
23 |
24 | 添加课程信息: 30 | 31 |
32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 |
系部名称课程名称
${CIAll.department.departmentName }${CIAll.ciName }
44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/department/departmentIndex.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 19 | 21 | 23 | 24 | 清远职业技术学院首页 25 | 26 | 27 | 28 | 29 | 30 | 57 | 58 |
59 |
60 | 84 |
85 | 86 | 87 | 88 |

院系部门信息

89 |
90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 |
编号系部名称
${department.departmentId }${department.departmentName }
106 |
107 |
108 |
109 | 110 |
111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/department/index.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 | <%@ page isELIgnored="false" %> 5 | 6 | 7 | 8 | 清远职业技术学院系部浏览 9 | 10 | 11 | 12 |
14 | 请输入系部名称: 16 |
17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
编号系部名称
${department.departmentId }${department.departmentName }
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/login/login.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 | <%@ page isELIgnored="false"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 20 | 22 | 23 | 24 | 清远职业技术学院后台登录 25 | 26 | 27 | 28 |
29 | 44 |
45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/login/qyptIndex.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 19 | 21 | 23 | 24 | 清远职业技术学院首页 25 | 26 | 27 | 28 | 29 | 30 | 59 | 60 |
61 |
62 | 87 |
88 | 89 | 90 |

公告栏

91 | 92 | 107 |
108 |
109 | 110 |
111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 清远职业技术学院成绩管理 8 | 9 | 10 | 11 | 12 | 13 |
14 | 添加新的学生成绩记录表: 友情提示:格式如 2016-2017-1 或 2016-2017-2 (1:上半年;2:下半年) 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 |
序号成绩日期编辑
${score.scoreId }${score.scoreName}护理学院机电与汽车工程学院外语与经贸学院信息技术与创意设计学院旅游家政与艺术学院食品药品学院修改名字
44 | 45 | 46 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 信息技术与设计学院成绩添加 8 | 9 | 10 |
11 | 学生姓名: ${studentNull} 12 |
13 | 温馨提示:0代表0分 -1代表缺考 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
${ci.ciName}
22 | 23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/hl.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 护理学院 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/jd.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 机电与汽车工程学院 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/ly.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 旅游家政与艺术学院 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/sp.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 食品药品学院 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/wy.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 外语与经贸学院 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/xx.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 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 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 42 |
班级姓名linuxphpjavajquery网络营销黑客攻防编辑
${score.classes.className}${score.student.studentName}${score.linux}${score.php}${score.java}${score.jquery}${score.wlyx}${score.hkgf}修改成绩 39 |
43 | 44 | 45 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/score/score_depart/xxIndex.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 19 | 21 | 23 | 24 | 清远职业技术学院首页 25 | 26 | 27 | 28 | 29 | 30 | 57 | 58 |
59 |
60 | 84 |
85 | 86 | 87 |

学生成绩明细

88 | 添加学生信息 90 |
91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 119 | 120 | 121 | 122 |
班级姓名linuxphpjavajquery网络营销黑客攻防编辑
${score.classes.className}${score.student.studentName}${score.linux}${score.php}${score.java}${score.jquery}${score.wlyx}${score.hkgf}修改成绩 118 |
123 |
124 |
125 |
126 | 127 |
128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/student/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | <% 4 | String path = request.getContextPath(); 5 | String basePath = request.getScheme() + "://" 6 | + request.getServerName() + ":" + request.getServerPort() 7 | + path + "/"; 8 | %> 9 | 10 | 11 | 12 | 清远职业技术学院学生信息添加 13 | 14 | 15 | 16 | 61 | 62 | 学生信息添加 63 |
64 |
65 | 院系:
班级:
姓名:
73 | 性别:
75 | 手机:
76 | 家庭地址:
78 | 79 |
80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/student/edit.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 3 | 4 | 5 | 6 | 7 | 清远职业技术学院学生信息修改 8 | 9 | 10 |
11 | 12 |
13 | 院系: 14 | 24 |
25 | 32 |
33 | 学生姓名: 34 |
35 | checked="checked">男 36 | checked="checked">女 37 |
38 | 联系方式: 39 |
40 | 家庭地址: 41 |
42 | 43 | 44 |
45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/student/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 | 4 | 5 | 6 | 清远职业技术学院学生管理 7 | 8 | 9 | 10 | 57 | 58 | 欢迎您管理员:${user.adminName } 59 |
60 | 学生信息查询: 61 |
62 | 院系:
班级:
姓名:
72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 |
院系班级学生学号学生名字性别手机家庭地址入学时间编辑
${s.department.departmentName }${s.classes.className }${s.studentId }${s.studentName }${s.sex }${s.phone }${s.address }${s.entranceTime }编辑
99 | 100 | 101 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/student/uploadPhoto.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 学生相片上传 8 | 9 | 10 |
11 | 输入学生学号:
12 | File to upload:
13 | 14 |
15 | 16 | ${name} 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/teacher/index.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 | <%@ page isELIgnored="false"%> 5 | 6 | 7 | 8 | 清远职业技术学老师浏览 9 | 10 | 11 | 12 |
14 | 添加老师信息: 请输入老师名称: ${error } 21 |
22 |
23 | 查询老师信息: 老师名字: 32 |
33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
系部名称编号老师名称
${t.department.departmentName }${t.teacherId }${t.teacherName }
47 | 48 | 上一页 49 | 50 | 当前第 ${teacherCustom.pageCurrrnt} 页 51 | 52 | 下一页 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | encodingFilter 10 | org.springframework.web.filter.CharacterEncodingFilter 11 | 12 | encoding 13 | UTF-8 14 | 15 | 16 | forceEncoding 17 | true 18 | 19 | 20 | 21 | 22 | 23 | contextConfigLocation 24 | classpath:spring/applicationContext*.xml 25 | 26 | 27 | org.springframework.web.context.ContextLoaderListener 28 | 29 | 30 | 31 | org.springframework.web.util.IntrospectorCleanupListener 32 | 33 | 34 | encodingFilter 35 | /* 36 | 37 | 38 | default 39 | *.js 40 | 41 | 42 | default 43 | *.jpg 44 | 45 | 46 | default 47 | *.JPG 48 | 49 | 50 | default 51 | *.png 52 | 53 | 54 | default 55 | *.PNG 56 | 57 | 58 | default 59 | *.css 60 | 61 | 62 | 63 | springMVC 64 | org.springframework.web.servlet.DispatcherServlet 65 | 66 | contextConfigLocation 67 | classpath:spring/springmvc.xml 68 | 69 | 1 70 | 71 | 72 | springMVC 73 | / 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /src/main/webapp/css/dashboard.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Base structure 3 | */ 4 | 5 | /* Move down content because we have a fixed navbar that is 50px tall */ 6 | body { 7 | padding-top: 50px; 8 | } 9 | 10 | /* 11 | * Global add-ons 12 | */ 13 | .sub-header { 14 | padding-bottom: 10px; 15 | border-bottom: 1px solid #eee; 16 | } 17 | 18 | /* 19 | * Top navigation 20 | * Hide default border to remove 1px line. 21 | */ 22 | .navbar-fixed-top { 23 | border: 0; 24 | } 25 | 26 | /* 27 | * Sidebar 28 | */ 29 | 30 | /* Hide for mobile, show later */ 31 | .sidebar { 32 | display: none; 33 | } 34 | 35 | @media ( min-width : 768px) { 36 | .sidebar { 37 | position: fixed; 38 | top: 51px; 39 | bottom: 0; 40 | left: 0; 41 | z-index: 1000; 42 | display: block; 43 | padding: 20px; 44 | overflow-x: hidden; 45 | overflow-y: auto; 46 | /* Scrollable contents if viewport is shorter than content. */ 47 | background-color: #f5f5f5; 48 | border-right: 1px solid #eee; 49 | } 50 | } 51 | 52 | /* Sidebar navigation */ 53 | .nav-sidebar { 54 | margin-right: -21px; /* 20px padding + 1px border */ 55 | margin-bottom: 20px; 56 | margin-left: -20px; 57 | } 58 | 59 | .nav-sidebar>li>a { 60 | padding-right: 20px; 61 | padding-left: 20px; 62 | } 63 | 64 | .nav-sidebar>.active>a,.nav-sidebar>.active>a:hover,.nav-sidebar>.active>a:focus 65 | { 66 | color: #fff; 67 | background-color: #428bca; 68 | } 69 | 70 | /* 71 | * Main content 72 | */ 73 | .main { 74 | padding: 20px; 75 | } 76 | 77 | @media ( min-width : 768px) { 78 | .main { 79 | padding-right: 40px; 80 | padding-left: 40px; 81 | } 82 | } 83 | 84 | .main .page-header { 85 | margin-top: 0; 86 | } 87 | 88 | /* 89 | * Placeholder dashboard ideas 90 | */ 91 | .placeholders { 92 | margin-bottom: 30px; 93 | text-align: center; 94 | } 95 | 96 | .placeholders h4 { 97 | margin-bottom: 0; 98 | } 99 | 100 | .placeholder { 101 | margin-bottom: 20px; 102 | } 103 | 104 | .placeholder img { 105 | display: inline-block; 106 | border-radius: 50%; 107 | } -------------------------------------------------------------------------------- /src/main/webapp/css/signin.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 40px; 3 | padding-bottom: 40px; 4 | background-color: #eee; 5 | } 6 | 7 | .form-signin { 8 | max-width: 330px; 9 | padding: 15px; 10 | margin: 0 auto; 11 | } 12 | .form-signin .form-signin-heading, 13 | .form-signin .checkbox { 14 | margin-bottom: 10px; 15 | } 16 | .form-signin .checkbox { 17 | font-weight: normal; 18 | } 19 | .form-signin .form-control { 20 | position: relative; 21 | height: auto; 22 | -webkit-box-sizing: border-box; 23 | -moz-box-sizing: border-box; 24 | box-sizing: border-box; 25 | padding: 10px; 26 | font-size: 16px; 27 | } 28 | .form-signin .form-control:focus { 29 | z-index: 2; 30 | } 31 | .form-signin input[type="email"] { 32 | margin-bottom: -1px; 33 | border-bottom-right-radius: 0; 34 | border-bottom-left-radius: 0; 35 | } 36 | .form-signin input[type="password"] { 37 | margin-bottom: 10px; 38 | border-top-left-radius: 0; 39 | border-top-right-radius: 0; 40 | } -------------------------------------------------------------------------------- /src/main/webapp/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/src/main/webapp/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/src/main/webapp/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/src/main/webapp/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/dist/js/ie-emulation-modes-warning.js: -------------------------------------------------------------------------------- 1 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT 2 | // IT'S JUST JUNK FOR OUR DOCS! 3 | // ++++++++++++++++++++++++++++++++++++++++++ 4 | /*! 5 | * Copyright 2014 Twitter, Inc. 6 | * 7 | * Licensed under the Creative Commons Attribution 3.0 Unported License. For 8 | * details, see http://creativecommons.org/licenses/by/3.0/. 9 | */ 10 | // Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes. 11 | (function () { 12 | 'use strict'; 13 | 14 | function emulatedIEMajorVersion() { 15 | var groups = /MSIE ([0-9.]+)/.exec(window.navigator.userAgent) 16 | if (groups === null) { 17 | return null 18 | } 19 | var ieVersionNum = parseInt(groups[1], 10) 20 | var ieMajorVersion = Math.floor(ieVersionNum) 21 | return ieMajorVersion 22 | } 23 | 24 | function actualNonEmulatedIEMajorVersion() { 25 | // Detects the actual version of IE in use, even if it's in an older-IE emulation mode. 26 | // IE JavaScript conditional compilation docs: http://msdn.microsoft.com/en-us/library/ie/121hztk3(v=vs.94).aspx 27 | // @cc_on docs: http://msdn.microsoft.com/en-us/library/ie/8ka90k2e(v=vs.94).aspx 28 | var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')() // jshint ignore:line 29 | if (jscriptVersion === undefined) { 30 | return 11 // IE11+ not in emulation mode 31 | } 32 | if (jscriptVersion < 9) { 33 | return 8 // IE8 (or lower; haven't tested on IE<8) 34 | } 35 | return jscriptVersion // IE9 or IE10 in any mode, or IE11 in non-IE11 mode 36 | } 37 | 38 | var ua = window.navigator.userAgent 39 | if (ua.indexOf('Opera') > -1 || ua.indexOf('Presto') > -1) { 40 | return // Opera, which might pretend to be IE 41 | } 42 | var emulated = emulatedIEMajorVersion() 43 | if (emulated === null) { 44 | return // Not IE 45 | } 46 | var nonEmulated = actualNonEmulatedIEMajorVersion() 47 | 48 | if (emulated !== nonEmulated) { 49 | window.alert('WARNING: You appear to be using IE' + nonEmulated + ' in IE' + emulated + ' emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON\'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!') 50 | } 51 | })(); -------------------------------------------------------------------------------- /src/main/webapp/dist/js/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * IE10 viewport hack for Surface/desktop Windows 8 bug 3 | * Copyright 2014 Twitter, Inc. 4 | * Licensed under the Creative Commons Attribution 3.0 Unported License. For 5 | * details, see http://creativecommons.org/licenses/by/3.0/. 6 | */ 7 | 8 | // See the Getting Started docs for more information: 9 | // http://getbootstrap.com/getting-started/#support-ie10-width 10 | 11 | (function () { 12 | 'use strict'; 13 | if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 14 | var msViewportStyle = document.createElement('style') 15 | msViewportStyle.appendChild( 16 | document.createTextNode( 17 | '@-ms-viewport{width:auto!important}' 18 | ) 19 | ) 20 | document.querySelector('head').appendChild(msViewportStyle) 21 | } 22 | })(); -------------------------------------------------------------------------------- /src/main/webapp/dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /src/main/webapp/test.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | My JSP 'test.jsp' starting page 9 | 10 | 11 | 12 | 13 | hello 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/test/java/com/qypt/test/MybatisTest.java: -------------------------------------------------------------------------------- 1 | package com.qypt.test; 2 | 3 | public class MybatisTest { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/ClassesController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/ClassesController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/CourseinformationController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/CourseinformationController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/DepartmentController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/DepartmentController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/PeAdminController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/PeAdminController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/ScoreController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/ScoreController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/ScoreInfoController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/ScoreInfoController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/StudentController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/StudentController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/TeacherController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/TeacherController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/UploadController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/UploadController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/controller/admin/AdminController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/controller/admin/AdminController.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/classes/ClassesCustomMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/classes/ClassesCustomMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/classes/ClassesMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/classes/ClassesMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/course/CourseMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/course/CourseMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/course/CourseinformationCustomMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/course/CourseinformationCustomMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/course/CourseinformationMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/course/CourseinformationMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/department/DepartmentMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/department/DepartmentMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/peadmin/PeAdminMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/peadmin/PeAdminMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/score/ScoreInfoCustomMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/score/ScoreInfoCustomMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/score/ScoreInfoMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/score/ScoreInfoMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/score/ScoreMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/score/ScoreMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/student/StudentCustomMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/student/StudentCustomMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/student/StudentMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/student/StudentMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/teacher/TeacherCustomMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/teacher/TeacherCustomMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/dao/teacher/TeacherMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/dao/teacher/TeacherMapper.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/classes/Classes.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/classes/Classes.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/classes/ClassesCustom.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/classes/ClassesCustom.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/classes/ClassesExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/classes/ClassesExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/classes/ClassesExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/classes/ClassesExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/classes/ClassesExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/classes/ClassesExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/classes/ClassesExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/classes/ClassesExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/Course.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/Course.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/Courseinformation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/Courseinformation.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseinformationCustom.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseinformationCustom.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseinformationExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseinformationExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseinformationExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseinformationExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseinformationExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseinformationExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/course/CourseinformationExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/course/CourseinformationExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/department/Department.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/department/Department.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/department/DepartmentExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/department/DepartmentExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/department/DepartmentExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/department/DepartmentExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/department/DepartmentExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/department/DepartmentExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/department/DepartmentExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/department/DepartmentExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/peadmin/PeAdmin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/peadmin/PeAdmin.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/peadmin/PeAdminExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/Score.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/Score.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreCustom.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreCustom.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreInfo.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreInfoCustom.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreInfoCustom.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreInfoExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreInfoExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreInfoExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreInfoExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreInfoExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreInfoExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/score/ScoreInfoExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/score/ScoreInfoExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/student/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/student/Student.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/student/StudentCustom.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/student/StudentCustom.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/student/StudentExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/student/StudentExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/student/StudentExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/student/StudentExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/student/StudentExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/student/StudentExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/student/StudentExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/student/StudentExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/teacher/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/teacher/Teacher.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/teacher/TeacherCustom.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/teacher/TeacherCustom.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/teacher/TeacherExample$Criteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/teacher/TeacherExample$Criteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/teacher/TeacherExample$Criterion.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/teacher/TeacherExample$Criterion.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/teacher/TeacherExample$GeneratedCriteria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/teacher/TeacherExample$GeneratedCriteria.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/entity/teacher/TeacherExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/entity/teacher/TeacherExample.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/mapping/ClassesCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | d.department_id = c.department_id and 1=1 7 | 8 | and c.class_id LIKE '%${classId}%' 9 | 10 | 11 | and c.class_name LIKE '%${className}%' 12 | 13 | 14 | and d.department_id = #{departmentId} 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 41 | 42 | 51 | 52 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/mapping/CourseinformationCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | d.department_id = c.department_id and 1=1 7 | 8 | and c.department_id = #{departmentId} 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/mapping/ScoreInfoCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | s.`student_id` = st.`student_id` 7 | AND c.`class_id` = 8 | st.`class_id` 9 | AND st.`department_id` = 4 10 | and s.score_id = #{scoreId} 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 96 | 97 | 98 | insert into 99 | score_info(student_id,ci_id,fraction,score_id)values 100 | 101 | (#{item.studentId},#{item.ciId},#{item.fraction},#{item.scoreId}) 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/mapping/StudentCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | s.`department_id` = d.`department_id` 7 | and s.`class_id` = c.`class_id` 8 | and 1=1 9 | 10 | and d.`department_id` = #{departmentId} 11 | 12 | 13 | and c.class_id = #{classId} 14 | 15 | 16 | and s.`student_id` = #{studentId} 17 | 18 | 19 | and s.student_name LIKE '%${studentName}%' 20 | 21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 38 | 39 | 40 | 42 | 43 | 44 | 45 | 46 | 47 | 58 | 59 | 70 | 71 | 72 | UPDATE student SET img_url=#{imgUrl} WHERE student_id=#{studentId} 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/mapping/TeacherCustomMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | d.department_id = t.department_id and 1=1 7 | 8 | and t.teacher_name LIKE '%${teacherName}%' 9 | 10 | 11 | and d.department_id = #{departmentId} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 37 | 38 | 46 | 47 | -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/ClassesService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/ClassesService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/CourseService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/CourseService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/CourseinfomationService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/CourseinfomationService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/DepartmentService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/DepartmentService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/PeAdminService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/PeAdminService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/ScoreInfoService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/ScoreInfoService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/ScoreService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/ScoreService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/StudentService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/StudentService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/TeacherService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/TeacherService.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/ClassesServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/ClassesServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/CourseServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/CourseServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/CourseinformationServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/CourseinformationServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/DepartmentServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/DepartmentServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/PeAdminServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/PeAdminServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/ScoreInfoServiceImple.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/ScoreInfoServiceImple.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/ScoreServiceImple.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/ScoreServiceImple.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/StudentServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/StudentServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/service/impl/TeacherServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/service/impl/TeacherServiceImpl.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/util/Md5Util.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/util/Md5Util.class -------------------------------------------------------------------------------- /target/classes/com/qypt/backstage/util/UserInterceptor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/classes/com/qypt/backstage/util/UserInterceptor.class -------------------------------------------------------------------------------- /target/classes/generatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /target/classes/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.driverClassName=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc\:mysql\://localhost\:3306/qingyuan?useUnicode=true&characterEncoding=UTF-8 3 | jdbc.username=root 4 | jdbc.password=123 5 | c3p0.pool.size.max=20 6 | c3p0.pool.size.min=5 7 | c3p0.pool.size.ini=3 8 | c3p0.pool.size.increment=2 -------------------------------------------------------------------------------- /target/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=info, console, debug, app, error 2 | 3 | ###Console ### 4 | log4j.appender.console = org.apache.log4j.ConsoleAppender 5 | log4j.appender.console.Target = System.out 6 | log4j.appender.console.layout = org.apache.log4j.PatternLayout 7 | log4j.appender.console.layout.ConversionPattern = %d %p[%C:%L]- %m%n 8 | 9 | ### debug ### 10 | log4j.appender.debug = org.apache.log4j.DailyRollingFileAppender 11 | log4j.appender.debug.File = log/debug.log 12 | log4j.appender.debug.Append = true 13 | log4j.appender.debug.Threshold = DEBUG 14 | log4j.appender.debug.DatePattern='.'yyyy-MM-dd 15 | log4j.appender.debug.layout = org.apache.log4j.PatternLayout 16 | log4j.appender.debug.layout.ConversionPattern = %d %p[%c:%L] - %m%n 17 | 18 | ### app ### 19 | log4j.appender.app = org.apache.log4j.DailyRollingFileAppender 20 | log4j.appender.app.File = log/app.log 21 | log4j.appender.app.Append = true 22 | log4j.appender.app.Threshold = INFO 23 | log4j.appender.app.DatePattern='.'yyyy-MM-dd 24 | log4j.appender.app.layout = org.apache.log4j.PatternLayout 25 | log4j.appender.app.layout.ConversionPattern = %d %p[%c:%L] - %m%n 26 | 27 | ### Error ### 28 | log4j.appender.error = org.apache.log4j.DailyRollingFileAppender 29 | log4j.appender.error.File = log/error.log 30 | log4j.appender.error.Append = true 31 | log4j.appender.error.Threshold = ERROR 32 | log4j.appender.error.DatePattern='.'yyyy-MM-dd 33 | log4j.appender.error.layout = org.apache.log4j.PatternLayout 34 | log4j.appender.error.layout.ConversionPattern =%d %p[%c:%L] - %m%n -------------------------------------------------------------------------------- /target/classes/spring/applicationContext-service.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /target/classes/spring/applicationContext-transaction.xml: -------------------------------------------------------------------------------- 1 | 2 | 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 | 46 | 48 | 49 | -------------------------------------------------------------------------------- /target/classes/spring/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 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 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /target/classes/spring/spring-mybatis.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /target/classes/spring/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /target/m2e-jee/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: fz 3 | Build-Jdk: 1.6.0_13 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /target/m2e-jee/web-resources/META-INF/maven/RedisTest/RedisTest/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Thu Feb 16 15:13:48 CST 2017 3 | version=0.0.1-SNAPSHOT 4 | groupId=RedisTest 5 | m2e.projectName=RedisTest 6 | m2e.projectLocation=F\:\\svn_repository\\qypt 7 | artifactId=RedisTest 8 | -------------------------------------------------------------------------------- /target/test-classes/com/qypt/test/MybatisTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fzgood/qypt/08f568fc3844b3b57175d3a03d9f73236f6aa59d/target/test-classes/com/qypt/test/MybatisTest.class --------------------------------------------------------------------------------