From bed6e1fc9e2b1cf87efc7aa4a16448b37c32e506 Mon Sep 17 00:00:00 2001 From: Elvis Date: Thu, 24 May 2018 16:53:16 +0800 Subject: [PATCH] 添加其他功能 --- WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_edit.jsp | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_list.jsp | 368 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_edit.jsp | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_list.jsp | 368 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_edit.jsp | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_list.jsp | 370 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_edit.jsp | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_list.jsp | 372 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_edit.jsp | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_list.jsp | 366 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/paper/paper_edit.jsp | 234 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/paper/paper_list.jsp | 384 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_edit.jsp | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_list.jsp | 368 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_edit.jsp | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_list.jsp | 374 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/question/question_edit.jsp | 346 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/question/question_list.jsp | 401 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_edit.jsp | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_list.jsp | 370 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_edit.jsp | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_list.jsp | 368 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/term/term_edit.jsp | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/term/term_list.jsp | 370 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_edit.jsp | 248 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_list.jsp | 386 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_edit.jsp | 276 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_list.jsp | 390 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WebRoot/WEB-INF/tld/elfun.tld | 8 ++++++++ resources/dbconfig.properties | 1 + resources/log4j.properties | 4 ++-- resources/mybatis1/api/V1Mapper.xml | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/ClassBasetationMapper.xml | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/ClassRosterMapper.xml | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/KeypadCheckMapper.xml | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/KnowledgeChapterMapper.xml | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/KnowledgeMapper.xml | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/PaperClassTeacherMapper.xml | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/PaperMapper.xml | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/PaperQuestionMapper.xml | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/QuestionMapper.xml | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/QuestionTypeMapper.xml | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/SchoolGradeSubjectMapper.xml | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/TeacherMapper.xml | 18 ++++++++++++++++++ resources/mybatis1/sunvote/TermMapper.xml | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/TestPaperInfoMapper.xml | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ resources/mybatis1/sunvote/TestPaperMapper.xml | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/api/ApiServer.java | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/api/ResponseGson.java | 9 +++++++-- src/com/fh/controller/api/V1.java | 261 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/api/sql.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/Myelfun.java | 19 +++++++++++++++++++ src/com/fh/controller/sunvote/classbasetation/ClassBasetationController.java | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/classroster/ClassRosterController.java | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/keypadcheck/KeypadCheckController.java | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/knowledge/KnowledgeController.java | 212 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/knowledgechapter/KnowledgeChapterController.java | 206 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/paper/PaperController.java | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/paperclassteacher/PaperClassTeacherController.java | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/paperquestion/PaperQuestionController.java | 214 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/question/QuestionController.java | 345 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/questiontype/QuestionTypeController.java | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/schoolgradesubject/SchoolGradeSubjectController.java | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/teacher/TeacherController.java | 36 ++++++++++++++++++++++++++++++++---- src/com/fh/controller/sunvote/term/TermController.java | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/testpaper/TestPaperController.java | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/sunvote/testpaperinfo/TestPaperInfoController.java | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/controller/system/login/LoginController.java | 527 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/com/fh/service/api/V1Manager.java | 18 ++++++++++++++++++ src/com/fh/service/api/impl/V1Service.java | 39 +++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/classbasetation/ClassBasetationManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/classbasetation/impl/ClassBasetationService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/classroster/ClassRosterManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/classroster/impl/ClassRosterService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/keypadcheck/KeypadCheckManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/keypadcheck/impl/KeypadCheckService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/knowledge/KnowledgeManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/knowledge/impl/KnowledgeService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/knowledgechapter/KnowledgeChapterManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/knowledgechapter/impl/KnowledgeChapterService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/paper/PaperManager.java | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/paper/impl/PaperService.java | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/paperclassteacher/PaperClassTeacherManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/paperclassteacher/impl/PaperClassTeacherService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/paperquestion/PaperQuestionManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/paperquestion/impl/PaperQuestionService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/papertype/impl/PaperTypeService.java | 1 - src/com/fh/service/sunvote/question/QuestionManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/question/impl/QuestionService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/questiontype/QuestionTypeManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/questiontype/impl/QuestionTypeService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/school/SchoolManager.java | 1 - src/com/fh/service/sunvote/school/impl/SchoolService.java | 1 - src/com/fh/service/sunvote/schoolgradesubject/SchoolGradeSubjectManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/schoolgradesubject/impl/SchoolGradeSubjectService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/teacher/TeacherManager.java | 6 ++++++ src/com/fh/service/sunvote/teacher/impl/TeacherService.java | 11 +++++++++++ src/com/fh/service/sunvote/term/TermManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/term/impl/TermService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/testpaper/TestPaperManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/testpaper/impl/TestPaperService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/testpaperinfo/TestPaperInfoManager.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/com/fh/service/sunvote/testpaperinfo/impl/TestPaperInfoService.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 轻松考-网络版-概要设计 .doc | Bin 2046976 -> 0 bytes 104 files changed, 15301 insertions(+), 249 deletions(-) create mode 100644 WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/paper/paper_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/paper/paper_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/question/question_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/question/question_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/term/term_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/term/term_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_list.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_edit.jsp create mode 100644 WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_list.jsp create mode 100644 resources/mybatis1/api/V1Mapper.xml create mode 100644 resources/mybatis1/sunvote/ClassBasetationMapper.xml create mode 100644 resources/mybatis1/sunvote/ClassRosterMapper.xml create mode 100644 resources/mybatis1/sunvote/KeypadCheckMapper.xml create mode 100644 resources/mybatis1/sunvote/KnowledgeChapterMapper.xml create mode 100644 resources/mybatis1/sunvote/KnowledgeMapper.xml create mode 100644 resources/mybatis1/sunvote/PaperClassTeacherMapper.xml create mode 100644 resources/mybatis1/sunvote/PaperMapper.xml create mode 100644 resources/mybatis1/sunvote/PaperQuestionMapper.xml create mode 100644 resources/mybatis1/sunvote/QuestionMapper.xml create mode 100644 resources/mybatis1/sunvote/QuestionTypeMapper.xml create mode 100644 resources/mybatis1/sunvote/SchoolGradeSubjectMapper.xml create mode 100644 resources/mybatis1/sunvote/TermMapper.xml create mode 100644 resources/mybatis1/sunvote/TestPaperInfoMapper.xml create mode 100644 resources/mybatis1/sunvote/TestPaperMapper.xml create mode 100644 src/com/fh/controller/api/V1.java create mode 100644 src/com/fh/controller/api/sql.txt create mode 100644 src/com/fh/controller/sunvote/classbasetation/ClassBasetationController.java create mode 100644 src/com/fh/controller/sunvote/classroster/ClassRosterController.java create mode 100644 src/com/fh/controller/sunvote/keypadcheck/KeypadCheckController.java create mode 100644 src/com/fh/controller/sunvote/knowledge/KnowledgeController.java create mode 100644 src/com/fh/controller/sunvote/knowledgechapter/KnowledgeChapterController.java create mode 100644 src/com/fh/controller/sunvote/paper/PaperController.java create mode 100644 src/com/fh/controller/sunvote/paperclassteacher/PaperClassTeacherController.java create mode 100644 src/com/fh/controller/sunvote/paperquestion/PaperQuestionController.java create mode 100644 src/com/fh/controller/sunvote/question/QuestionController.java create mode 100644 src/com/fh/controller/sunvote/questiontype/QuestionTypeController.java create mode 100644 src/com/fh/controller/sunvote/schoolgradesubject/SchoolGradeSubjectController.java create mode 100644 src/com/fh/controller/sunvote/term/TermController.java create mode 100644 src/com/fh/controller/sunvote/testpaper/TestPaperController.java create mode 100644 src/com/fh/controller/sunvote/testpaperinfo/TestPaperInfoController.java create mode 100644 src/com/fh/service/api/V1Manager.java create mode 100644 src/com/fh/service/api/impl/V1Service.java create mode 100644 src/com/fh/service/sunvote/classbasetation/ClassBasetationManager.java create mode 100644 src/com/fh/service/sunvote/classbasetation/impl/ClassBasetationService.java create mode 100644 src/com/fh/service/sunvote/classroster/ClassRosterManager.java create mode 100644 src/com/fh/service/sunvote/classroster/impl/ClassRosterService.java create mode 100644 src/com/fh/service/sunvote/keypadcheck/KeypadCheckManager.java create mode 100644 src/com/fh/service/sunvote/keypadcheck/impl/KeypadCheckService.java create mode 100644 src/com/fh/service/sunvote/knowledge/KnowledgeManager.java create mode 100644 src/com/fh/service/sunvote/knowledge/impl/KnowledgeService.java create mode 100644 src/com/fh/service/sunvote/knowledgechapter/KnowledgeChapterManager.java create mode 100644 src/com/fh/service/sunvote/knowledgechapter/impl/KnowledgeChapterService.java create mode 100644 src/com/fh/service/sunvote/paper/PaperManager.java create mode 100644 src/com/fh/service/sunvote/paper/impl/PaperService.java create mode 100644 src/com/fh/service/sunvote/paperclassteacher/PaperClassTeacherManager.java create mode 100644 src/com/fh/service/sunvote/paperclassteacher/impl/PaperClassTeacherService.java create mode 100644 src/com/fh/service/sunvote/paperquestion/PaperQuestionManager.java create mode 100644 src/com/fh/service/sunvote/paperquestion/impl/PaperQuestionService.java create mode 100644 src/com/fh/service/sunvote/question/QuestionManager.java create mode 100644 src/com/fh/service/sunvote/question/impl/QuestionService.java create mode 100644 src/com/fh/service/sunvote/questiontype/QuestionTypeManager.java create mode 100644 src/com/fh/service/sunvote/questiontype/impl/QuestionTypeService.java create mode 100644 src/com/fh/service/sunvote/schoolgradesubject/SchoolGradeSubjectManager.java create mode 100644 src/com/fh/service/sunvote/schoolgradesubject/impl/SchoolGradeSubjectService.java create mode 100644 src/com/fh/service/sunvote/term/TermManager.java create mode 100644 src/com/fh/service/sunvote/term/impl/TermService.java create mode 100644 src/com/fh/service/sunvote/testpaper/TestPaperManager.java create mode 100644 src/com/fh/service/sunvote/testpaper/impl/TestPaperService.java create mode 100644 src/com/fh/service/sunvote/testpaperinfo/TestPaperInfoManager.java create mode 100644 src/com/fh/service/sunvote/testpaperinfo/impl/TestPaperInfoService.java diff --git a/WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_edit.jsp new file mode 100644 index 0000000..464ff3f --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_edit.jsp @@ -0,0 +1,122 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + +
班级:
基站:
时间:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_list.jsp new file mode 100644 index 0000000..b9202d9 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/classbasetation/classbasetation_list.jsp @@ -0,0 +1,368 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号班级基站时间操作
+ + ${vs.index+1}${var.SCLASS_ID}${var.BASESTATION_ID}${var.CREATE_TIME} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_edit.jsp new file mode 100644 index 0000000..971646f --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_edit.jsp @@ -0,0 +1,122 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + +
班级:
学生:
学期名称:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_list.jsp new file mode 100644 index 0000000..9453c1e --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/classroster/classroster_list.jsp @@ -0,0 +1,368 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号班级学生学期名称操作
+ + ${vs.index+1}${var.SCLASS_ID}${var.STUDENT_ID}${var.TEAMID} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_edit.jsp new file mode 100644 index 0000000..85851c1 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_edit.jsp @@ -0,0 +1,122 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + +
键盘ID:
电量信息:
是否在线:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_list.jsp new file mode 100644 index 0000000..5b4dc9c --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/keypadcheck/keypadcheck_list.jsp @@ -0,0 +1,370 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号键盘ID创建时间电量信息是否在线操作
+ + ${vs.index+1}${var.KEYPAD_ID}${var.CREATE_DATE}${var.BATTERY_INFO}${var.ONLINE} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_edit.jsp new file mode 100644 index 0000000..29e5b3f --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_edit.jsp @@ -0,0 +1,150 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
知识点名称:
父知识点:
排序:
编码:
知识点备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_list.jsp new file mode 100644 index 0000000..d224cea --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/knowledge/knowledge_list.jsp @@ -0,0 +1,372 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号知识点名称父知识点排序编码知识点备注操作
+ + ${vs.index+1}${var.NAME}${var.P_ID}${var.RANK}${var.CODE}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_edit.jsp new file mode 100644 index 0000000..44e3943 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_edit.jsp @@ -0,0 +1,108 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + +
知识点:
章节:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_list.jsp new file mode 100644 index 0000000..c1f62b6 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/knowledgechapter/knowledgechapter_list.jsp @@ -0,0 +1,366 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号知识点章节操作
+ + ${vs.index+1}${var.KNOWLEDGE_ID}${var.CHAPTER_ID} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/paper/paper_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_edit.jsp new file mode 100644 index 0000000..09ead2f --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_edit.jsp @@ -0,0 +1,234 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
试卷标题:
出卷老师:
试卷类型:
科目:
年级:
学校:
创建时间:
修改时间:
建议考试时长:
试卷状态:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list.jsp new file mode 100644 index 0000000..21a4482 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/paper/paper_list.jsp @@ -0,0 +1,384 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号试卷标题出卷老师试卷类型科目年级学校创建时间修改时间建议考试时长试卷状态备注操作
+ + ${vs.index+1}${var.TITLE}${var.USER_ID}${var.PAPER_TYPE}${var.SUBJECT_ID}${var.GRADE_ID}${var.SCHOOL_ID}${var.CREATE_DATE}${var.MODIFY_DATE}${var.EXAM_TIME}${var.PAPER_STATE}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_edit.jsp new file mode 100644 index 0000000..111ee65 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_edit.jsp @@ -0,0 +1,122 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + +
试卷:
班级:
教师:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_list.jsp new file mode 100644 index 0000000..c001677 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/paperclassteacher/paperclassteacher_list.jsp @@ -0,0 +1,368 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号试卷班级教师操作
+ + ${vs.index+1}${var.PAPER_ID}${var.CLASS_ID}${var.TEACHER_ID} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_edit.jsp new file mode 100644 index 0000000..99c7ecc --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_edit.jsp @@ -0,0 +1,164 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
试卷:
题目:
分值:
部分分:
排序编号:
题号:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_list.jsp new file mode 100644 index 0000000..0e41814 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/paperquestion/paperquestion_list.jsp @@ -0,0 +1,374 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号试卷题目分值部分分排序编号题号操作
+ + ${vs.index+1}${var.PAPER_ID}${var.QUESTION_ID}${var.SCORE}${var.PART_SCORE}${var.RANK}${var.NO_NAME} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/question/question_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/question/question_edit.jsp new file mode 100644 index 0000000..f8eaf1a --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/question/question_edit.jsp @@ -0,0 +1,346 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
父ID:
所属科目:
所属章节:
题目类型:
出题老师:
所属学校:
知识点:
题目内容:
选项个数:
选项内容:
标准答案:
难度系数:
题目解析:
题目来源:
建议试题总分:
建议部分分:
用户ID:
创建时间:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/question/question_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/question/question_list.jsp new file mode 100644 index 0000000..d49df2e --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/question/question_list.jsp @@ -0,0 +1,401 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号父ID所属科目所属章节题目类型出题老师所属学校知识点题目内容选项个数选项内容标准答案难度系数题目解析题目来源建议试题总分建议部分分用户ID创建时间备注操作
+ + ${vs.index+1}${var.P_ID}${var.SUBJECT_ID}${var.CHAPTER_ID}${var.PROBLEM_TYPE_ID}${var.TEACHER_ID}${var.SCHOOL_ID}${var.KNOWLEDGE_ID}${var.CONTENT}${var.OPTION_NUM}${var.OPTION_CONTENT}${var.ANSWER}${var.DIFFICULTY}${var.ANALYSIS}${var.QUESTION_FROM}${var.SUG_SCORE}${var.SUG_PART_SCORE}${var.USER_ID}${var.CREATE_DATE}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_edit.jsp new file mode 100644 index 0000000..0b34578 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_edit.jsp @@ -0,0 +1,136 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + +
名称:
创建时间:
修改时间:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_list.jsp new file mode 100644 index 0000000..c770920 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/questiontype/questiontype_list.jsp @@ -0,0 +1,370 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号名称创建时间修改时间备注操作
+ + ${vs.index+1}${var.NAME}${var.CREATE_DATE}${var.MODIFY_DATE}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_edit.jsp new file mode 100644 index 0000000..a6d8b65 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_edit.jsp @@ -0,0 +1,122 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + +
学校:
年级:
科目:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_list.jsp new file mode 100644 index 0000000..71fcdeb --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/schoolgradesubject/schoolgradesubject_list.jsp @@ -0,0 +1,368 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号学校年级科目操作
+ + ${vs.index+1}${var.SCHOOL_ID}${var.GRADE_ID}${var.SUBJECT_ID} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/term/term_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/term/term_edit.jsp new file mode 100644 index 0000000..6012aca --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/term/term_edit.jsp @@ -0,0 +1,136 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + +
名称:
起始时间:
结束时间:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/term/term_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/term/term_list.jsp new file mode 100644 index 0000000..c126741 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/term/term_list.jsp @@ -0,0 +1,370 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号名称起始时间结束时间备注操作
+ + ${vs.index+1}${var.NAME}${var.START_DATE}${var.END_DATE}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_edit.jsp new file mode 100644 index 0000000..bab1c4a --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_edit.jsp @@ -0,0 +1,248 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
测验名称:
试卷:
班级:
老师:
开始时间:
结束时间:
创建时间:
主观题分值:
测验最高分:
最低分:
平均分:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_list.jsp new file mode 100644 index 0000000..1c69a13 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/testpaper/testpaper_list.jsp @@ -0,0 +1,386 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号测验名称试卷班级老师开始时间结束时间创建时间主观题分值测验最高分最低分平均分备注操作
+ + ${vs.index+1}${var.NAME}${var.PAPER_ID}${var.SCLASS_ID}${var.TEACHER_ID}${var.START_DATE}${var.END_DATE}${var.CREATE_DATE}${var.OTHER_SCORE}${var.HIGHT_SCORE}${var.LOW_SCORE}${var.AVG_SCORE}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_edit.jsp new file mode 100644 index 0000000..44ca4ed --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_edit.jsp @@ -0,0 +1,276 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
试卷:
学生:
测验:
题目:
学生答案:
是否正确:
得分:
是否点赞:
答题类型:
按键时间:
接收时间:
是否主观题:
笔记:
标记等级:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_list.jsp new file mode 100644 index 0000000..66af038 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/testpaperinfo/testpaperinfo_list.jsp @@ -0,0 +1,390 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号试卷学生测验题目学生答案是否正确得分是否点赞答题类型按键时间接收时间是否主观题笔记标记等级操作
+ + ${vs.index+1}${var.PAPER_ID}${var.STUDENT_ID}${var.TEST_ID}${var.QUESTION_ID}${var.ANSWER}${var.RIGHT}${var.SCORE}${var.LIKES}${var.ANSWER_TYPE}${var.PRESS_TIME}${var.RECEIVER_DATE}${var.SUBJECTIVE}${var.NOTE}${var.MARK_NO} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/tld/elfun.tld b/WebRoot/WEB-INF/tld/elfun.tld index e9680a4..66b7585 100644 --- a/WebRoot/WEB-INF/tld/elfun.tld +++ b/WebRoot/WEB-INF/tld/elfun.tld @@ -80,5 +80,13 @@ ${myelfun:findTeachingmaterialName(obj1)} + + 根据ID查找题目类型 + findQuestionTypeName + com.fh.controller.sunvote.Myelfun + java.lang.String findQuestionTypeName(int) + ${myelfun:findQuestionTypeName(obj1)} + + diff --git a/resources/dbconfig.properties b/resources/dbconfig.properties index e074a70..a46dbe0 100644 --- a/resources/dbconfig.properties +++ b/resources/dbconfig.properties @@ -1,5 +1,6 @@ #数据源 1 url:jdbc:mysql://120.78.57.84:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 +#url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 driverClassName:com.mysql.jdbc.Driver username:root #password:elvis diff --git a/resources/log4j.properties b/resources/log4j.properties index 71c8854..a6636d3 100644 --- a/resources/log4j.properties +++ b/resources/log4j.properties @@ -10,9 +10,9 @@ log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.A=org.apache.log4j.DailyRollingFileAppender -log4j.appender.A.File=${catalina.home}/logs/FH_log/PurePro_ +log4j.appender.A.File=${catalina.home}/logs/Elvis/PurePro_ log4j.appender.A.DatePattern=yyyy-MM-dd'.log' log4j.appender.A.layout=org.apache.log4j.PatternLayout -log4j.appender.A.layout.ConversionPattern=[FH_sys] %d{yyyy-MM-dd HH\:mm\:ss} %5p %c{1}\:%L \: %m%n +log4j.appender.A.layout.ConversionPattern=[Elvis] %d{yyyy-MM-dd HH\:mm\:ss} %5p %c{1}\:%L \: %m%n diff --git a/resources/mybatis1/api/V1Mapper.xml b/resources/mybatis1/api/V1Mapper.xml new file mode 100644 index 0000000..3452179 --- /dev/null +++ b/resources/mybatis1/api/V1Mapper.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/ClassBasetationMapper.xml b/resources/mybatis1/sunvote/ClassBasetationMapper.xml new file mode 100644 index 0000000..da39fb3 --- /dev/null +++ b/resources/mybatis1/sunvote/ClassBasetationMapper.xml @@ -0,0 +1,107 @@ + + + + + + + SV_CLASSBASETATION + + + + + SCLASS_ID, + BASESTATION_ID, + CREATE_TIME, + CLASSBASETATION_ID + + + + + #{SCLASS_ID}, + #{BASESTATION_ID}, + #{CREATE_TIME}, + #{CLASSBASETATION_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + CLASSBASETATION_ID = #{CLASSBASETATION_ID} + + + + + update + + set + SCLASS_ID = #{SCLASS_ID}, + BASESTATION_ID = #{BASESTATION_ID}, + CREATE_TIME = #{CREATE_TIME}, + CLASSBASETATION_ID = CLASSBASETATION_ID + where + CLASSBASETATION_ID = #{CLASSBASETATION_ID} + + + + + + + + + + + + + + delete from + + where + CLASSBASETATION_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/ClassRosterMapper.xml b/resources/mybatis1/sunvote/ClassRosterMapper.xml new file mode 100644 index 0000000..483d1e6 --- /dev/null +++ b/resources/mybatis1/sunvote/ClassRosterMapper.xml @@ -0,0 +1,107 @@ + + + + + + + SV_CLASSROSTER + + + + + SCLASS_ID, + STUDENT_ID, + TEAMID, + CLASSROSTER_ID + + + + + #{SCLASS_ID}, + #{STUDENT_ID}, + #{TEAMID}, + #{CLASSROSTER_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + CLASSROSTER_ID = #{CLASSROSTER_ID} + + + + + update + + set + SCLASS_ID = #{SCLASS_ID}, + STUDENT_ID = #{STUDENT_ID}, + TEAMID = #{TEAMID}, + CLASSROSTER_ID = CLASSROSTER_ID + where + CLASSROSTER_ID = #{CLASSROSTER_ID} + + + + + + + + + + + + + + delete from + + where + CLASSROSTER_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/KeypadCheckMapper.xml b/resources/mybatis1/sunvote/KeypadCheckMapper.xml new file mode 100644 index 0000000..6a04366 --- /dev/null +++ b/resources/mybatis1/sunvote/KeypadCheckMapper.xml @@ -0,0 +1,109 @@ + + + + + + + SV_KEYPADCHECK + + + + + KEYPAD_ID, + CREATE_DATE, + BATTERY_INFO, + ONLINE, + KEYPADCHECK_ID + + + + + #{KEYPAD_ID}, + #{CREATE_DATE}, + #{BATTERY_INFO}, + #{ONLINE}, + #{KEYPADCHECK_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + KEYPADCHECK_ID = #{KEYPADCHECK_ID} + + + + + update + + set + KEYPAD_ID = #{KEYPAD_ID}, + BATTERY_INFO = #{BATTERY_INFO}, + ONLINE = #{ONLINE}, + KEYPADCHECK_ID = KEYPADCHECK_ID + where + KEYPADCHECK_ID = #{KEYPADCHECK_ID} + + + + + + + + + + + + + + delete from + + where + KEYPADCHECK_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/KnowledgeChapterMapper.xml b/resources/mybatis1/sunvote/KnowledgeChapterMapper.xml new file mode 100644 index 0000000..01bfde1 --- /dev/null +++ b/resources/mybatis1/sunvote/KnowledgeChapterMapper.xml @@ -0,0 +1,104 @@ + + + + + + + SV_KNOWLEDGECHAPTER + + + + + KNOWLEDGE_ID, + CHAPTER_ID, + KNOWLEDGECHAPTER_ID + + + + + #{KNOWLEDGE_ID}, + #{CHAPTER_ID}, + #{KNOWLEDGECHAPTER_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + KNOWLEDGECHAPTER_ID = #{KNOWLEDGECHAPTER_ID} + + + + + update + + set + KNOWLEDGE_ID = #{KNOWLEDGE_ID}, + CHAPTER_ID = #{CHAPTER_ID}, + KNOWLEDGECHAPTER_ID = KNOWLEDGECHAPTER_ID + where + KNOWLEDGECHAPTER_ID = #{KNOWLEDGECHAPTER_ID} + + + + + + + + + + + + + + delete from + + where + KNOWLEDGECHAPTER_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/KnowledgeMapper.xml b/resources/mybatis1/sunvote/KnowledgeMapper.xml new file mode 100644 index 0000000..6a085ae --- /dev/null +++ b/resources/mybatis1/sunvote/KnowledgeMapper.xml @@ -0,0 +1,113 @@ + + + + + + + SV_KNOWLEDGE + + + + + NAME, + P_ID, + RANK, + CODE, + REMARK, + KNOWLEDGE_ID + + + + + #{NAME}, + #{P_ID}, + #{RANK}, + #{CODE}, + #{REMARK}, + #{KNOWLEDGE_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + KNOWLEDGE_ID = #{KNOWLEDGE_ID} + + + + + update + + set + NAME = #{NAME}, + P_ID = #{P_ID}, + RANK = #{RANK}, + CODE = #{CODE}, + REMARK = #{REMARK}, + KNOWLEDGE_ID = KNOWLEDGE_ID + where + KNOWLEDGE_ID = #{KNOWLEDGE_ID} + + + + + + + + + + + + + + delete from + + where + KNOWLEDGE_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/PaperClassTeacherMapper.xml b/resources/mybatis1/sunvote/PaperClassTeacherMapper.xml new file mode 100644 index 0000000..dd31052 --- /dev/null +++ b/resources/mybatis1/sunvote/PaperClassTeacherMapper.xml @@ -0,0 +1,107 @@ + + + + + + + SV_PAPERCLASSTEACHER + + + + + PAPER_ID, + CLASS_ID, + TEACHER_ID, + PAPERCLASSTEACHER_ID + + + + + #{PAPER_ID}, + #{CLASS_ID}, + #{TEACHER_ID}, + #{PAPERCLASSTEACHER_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + PAPERCLASSTEACHER_ID = #{PAPERCLASSTEACHER_ID} + + + + + update + + set + PAPER_ID = #{PAPER_ID}, + CLASS_ID = #{CLASS_ID}, + TEACHER_ID = #{TEACHER_ID}, + PAPERCLASSTEACHER_ID = PAPERCLASSTEACHER_ID + where + PAPERCLASSTEACHER_ID = #{PAPERCLASSTEACHER_ID} + + + + + + + + + + + + + + delete from + + where + PAPERCLASSTEACHER_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/PaperMapper.xml b/resources/mybatis1/sunvote/PaperMapper.xml new file mode 100644 index 0000000..34937ad --- /dev/null +++ b/resources/mybatis1/sunvote/PaperMapper.xml @@ -0,0 +1,148 @@ + + + + + + + SV_PAPER + + + + + TITLE, + USER_ID, + PAPER_TYPE, + SUBJECT_ID, + GRADE_ID, + SCHOOL_ID, + CREATE_DATE, + MODIFY_DATE, + EXAM_TIME, + PAPER_STATE, + REMARK, + PAPER_ID + + + + + #{TITLE}, + #{USER_ID}, + #{PAPER_TYPE}, + #{SUBJECT_ID}, + #{GRADE_ID}, + #{SCHOOL_ID}, + #{CREATE_DATE}, + #{MODIFY_DATE}, + #{EXAM_TIME}, + #{PAPER_STATE}, + #{REMARK}, + #{PAPER_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + PAPER_ID = #{PAPER_ID} + + + + + update + + set + TITLE = #{TITLE}, + USER_ID = #{USER_ID}, + PAPER_TYPE = #{PAPER_TYPE}, + SUBJECT_ID = #{SUBJECT_ID}, + GRADE_ID = #{GRADE_ID}, + SCHOOL_ID = #{SCHOOL_ID}, + CREATE_DATE = #{CREATE_DATE}, + MODIFY_DATE = #{MODIFY_DATE}, + EXAM_TIME = #{EXAM_TIME}, + PAPER_STATE = #{PAPER_STATE}, + REMARK = #{REMARK}, + PAPER_ID = PAPER_ID + where + PAPER_ID = #{PAPER_ID} + + + + + + + + + + + + + + + + + delete from + + where + PAPER_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/PaperQuestionMapper.xml b/resources/mybatis1/sunvote/PaperQuestionMapper.xml new file mode 100644 index 0000000..4317c0e --- /dev/null +++ b/resources/mybatis1/sunvote/PaperQuestionMapper.xml @@ -0,0 +1,116 @@ + + + + + + + SV_PAPERQUESTION + + + + + PAPER_ID, + QUESTION_ID, + SCORE, + PART_SCORE, + RANK, + NO_NAME, + PAPERQUESTION_ID + + + + + #{PAPER_ID}, + #{QUESTION_ID}, + #{SCORE}, + #{PART_SCORE}, + #{RANK}, + #{NO_NAME}, + #{PAPERQUESTION_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + PAPERQUESTION_ID = #{PAPERQUESTION_ID} + + + + + update + + set + PAPER_ID = #{PAPER_ID}, + QUESTION_ID = #{QUESTION_ID}, + SCORE = #{SCORE}, + PART_SCORE = #{PART_SCORE}, + RANK = #{RANK}, + NO_NAME = #{NO_NAME}, + PAPERQUESTION_ID = PAPERQUESTION_ID + where + PAPERQUESTION_ID = #{PAPERQUESTION_ID} + + + + + + + + + + + + + + delete from + + where + PAPERQUESTION_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/QuestionMapper.xml b/resources/mybatis1/sunvote/QuestionMapper.xml new file mode 100644 index 0000000..e1fdd35 --- /dev/null +++ b/resources/mybatis1/sunvote/QuestionMapper.xml @@ -0,0 +1,155 @@ + + + + + + + SV_QUESTION + + + + + P_ID, + SUBJECT_ID, + CHAPTER_ID, + PROBLEM_TYPE_ID, + TEACHER_ID, + SCHOOL_ID, + KNOWLEDGE_ID, + CONTENT, + OPTION_NUM, + OPTION_CONTENT, + ANSWER, + DIFFICULTY, + ANALYSIS, + QUESTION_FROM, + SUG_SCORE, + SUG_PART_SCORE, + USER_ID, + CREATE_DATE, + REMARK, + QUESTION_ID + + + + + #{P_ID}, + #{SUBJECT_ID}, + #{CHAPTER_ID}, + #{PROBLEM_TYPE_ID}, + #{TEACHER_ID}, + #{SCHOOL_ID}, + #{KNOWLEDGE_ID}, + #{CONTENT}, + #{OPTION_NUM}, + #{OPTION_CONTENT}, + #{ANSWER}, + #{DIFFICULTY}, + #{ANALYSIS}, + #{QUESTION_FROM}, + #{SUG_SCORE}, + #{SUG_PART_SCORE}, + #{USER_ID}, + #{CREATE_DATE}, + #{REMARK}, + #{QUESTION_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + QUESTION_ID = #{QUESTION_ID} + + + + + update + + set + P_ID = #{P_ID}, + SUBJECT_ID = #{SUBJECT_ID}, + CHAPTER_ID = #{CHAPTER_ID}, + PROBLEM_TYPE_ID = #{PROBLEM_TYPE_ID}, + TEACHER_ID = #{TEACHER_ID}, + SCHOOL_ID = #{SCHOOL_ID}, + KNOWLEDGE_ID = #{KNOWLEDGE_ID}, + CONTENT = #{CONTENT}, + OPTION_NUM = #{OPTION_NUM}, + OPTION_CONTENT = #{OPTION_CONTENT}, + ANSWER = #{ANSWER}, + DIFFICULTY = #{DIFFICULTY}, + ANALYSIS = #{ANALYSIS}, + QUESTION_FROM = #{QUESTION_FROM}, + SUG_SCORE = #{SUG_SCORE}, + SUG_PART_SCORE = #{SUG_PART_SCORE}, + USER_ID = #{USER_ID}, + CREATE_DATE = #{CREATE_DATE}, + REMARK = #{REMARK}, + QUESTION_ID = QUESTION_ID + where + QUESTION_ID = #{QUESTION_ID} + + + + + + + + + + + + + + delete from + + where + QUESTION_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/QuestionTypeMapper.xml b/resources/mybatis1/sunvote/QuestionTypeMapper.xml new file mode 100644 index 0000000..d066f6f --- /dev/null +++ b/resources/mybatis1/sunvote/QuestionTypeMapper.xml @@ -0,0 +1,110 @@ + + + + + + + SV_QUESTIONTYPE + + + + + NAME, + CREATE_DATE, + MODIFY_DATE, + REMARK, + QUESTIONTYPE_ID + + + + + #{NAME}, + #{CREATE_DATE}, + #{MODIFY_DATE}, + #{REMARK}, + #{QUESTIONTYPE_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + QUESTIONTYPE_ID = #{QUESTIONTYPE_ID} + + + + + update + + set + NAME = #{NAME}, + CREATE_DATE = #{CREATE_DATE}, + MODIFY_DATE = #{MODIFY_DATE}, + REMARK = #{REMARK}, + QUESTIONTYPE_ID = QUESTIONTYPE_ID + where + QUESTIONTYPE_ID = #{QUESTIONTYPE_ID} + + + + + + + + + + + + + + delete from + + where + QUESTIONTYPE_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/SchoolGradeSubjectMapper.xml b/resources/mybatis1/sunvote/SchoolGradeSubjectMapper.xml new file mode 100644 index 0000000..832e4a8 --- /dev/null +++ b/resources/mybatis1/sunvote/SchoolGradeSubjectMapper.xml @@ -0,0 +1,107 @@ + + + + + + + SV_SCHOOLGRADESUBJECT + + + + + SCHOOL_ID, + GRADE_ID, + SUBJECT_ID, + SCHOOLGRADESUBJECT_ID + + + + + #{SCHOOL_ID}, + #{GRADE_ID}, + #{SUBJECT_ID}, + #{SCHOOLGRADESUBJECT_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + SCHOOLGRADESUBJECT_ID = #{SCHOOLGRADESUBJECT_ID} + + + + + update + + set + SCHOOL_ID = #{SCHOOL_ID}, + GRADE_ID = #{GRADE_ID}, + SUBJECT_ID = #{SUBJECT_ID}, + SCHOOLGRADESUBJECT_ID = SCHOOLGRADESUBJECT_ID + where + SCHOOLGRADESUBJECT_ID = #{SCHOOLGRADESUBJECT_ID} + + + + + + + + + + + + + + delete from + + where + SCHOOLGRADESUBJECT_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/TeacherMapper.xml b/resources/mybatis1/sunvote/TeacherMapper.xml index 185b695..f1c5864 100644 --- a/resources/mybatis1/sunvote/TeacherMapper.xml +++ b/resources/mybatis1/sunvote/TeacherMapper.xml @@ -42,6 +42,7 @@ insert into ( + ID, SCHOOL_ID, NAME, PHONE, @@ -53,6 +54,7 @@ SUBJECT_IDS, KEYPAD_ID ) values ( + #{ID}, #{SCHOOL_ID}, #{NAME}, #{PHONE}, @@ -104,6 +106,22 @@ ID = #{ID} + + + + select + + from + + where + TERM_ID = #{TERM_ID} + + + + + + + + + + + delete from + + where + TERM_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/TestPaperInfoMapper.xml b/resources/mybatis1/sunvote/TestPaperInfoMapper.xml new file mode 100644 index 0000000..705b69e --- /dev/null +++ b/resources/mybatis1/sunvote/TestPaperInfoMapper.xml @@ -0,0 +1,140 @@ + + + + + + + SV_TESTPAPERINFO + + + + + PAPER_ID, + STUDENT_ID, + TEST_ID, + QUESTION_ID, + ANSWER, + `RIGHT`, + SCORE, + LIKES, + ANSWER_TYPE, + PRESS_TIME, + RECEIVER_DATE, + SUBJECTIVE, + NOTE, + MARK_NO, + TESTPAPERINFO_ID + + + + + #{PAPER_ID}, + #{STUDENT_ID}, + #{TEST_ID}, + #{QUESTION_ID}, + #{ANSWER}, + #{RIGHT}, + #{SCORE}, + #{LIKES}, + #{ANSWER_TYPE}, + #{PRESS_TIME}, + #{RECEIVER_DATE}, + #{SUBJECTIVE}, + #{NOTE}, + #{MARK_NO}, + #{TESTPAPERINFO_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + TESTPAPERINFO_ID = #{TESTPAPERINFO_ID} + + + + + update + + set + PAPER_ID = #{PAPER_ID}, + STUDENT_ID = #{STUDENT_ID}, + TEST_ID = #{TEST_ID}, + QUESTION_ID = #{QUESTION_ID}, + ANSWER = #{ANSWER}, + `RIGHT` = #{RIGHT}, + SCORE = #{SCORE}, + LIKES = #{LIKES}, + ANSWER_TYPE = #{ANSWER_TYPE}, + PRESS_TIME = #{PRESS_TIME}, + RECEIVER_DATE = #{RECEIVER_DATE}, + SUBJECTIVE = #{SUBJECTIVE}, + NOTE = #{NOTE}, + MARK_NO = #{MARK_NO}, + TESTPAPERINFO_ID = TESTPAPERINFO_ID + where + TESTPAPERINFO_ID = #{TESTPAPERINFO_ID} + + + + + + + + + + + + + + delete from + + where + TESTPAPERINFO_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/TestPaperMapper.xml b/resources/mybatis1/sunvote/TestPaperMapper.xml new file mode 100644 index 0000000..9d7f483 --- /dev/null +++ b/resources/mybatis1/sunvote/TestPaperMapper.xml @@ -0,0 +1,134 @@ + + + + + + + SV_TESTPAPER + + + + + NAME, + PAPER_ID, + SCLASS_ID, + TEACHER_ID, + START_DATE, + END_DATE, + CREATE_DATE, + OTHER_SCORE, + HIGHT_SCORE, + LOW_SCORE, + AVG_SCORE, + REMARK, + TESTPAPER_ID + + + + + #{NAME}, + #{PAPER_ID}, + #{SCLASS_ID}, + #{TEACHER_ID}, + #{START_DATE}, + #{END_DATE}, + #{CREATE_DATE}, + #{OTHER_SCORE}, + #{HIGHT_SCORE}, + #{LOW_SCORE}, + #{AVG_SCORE}, + #{REMARK}, + #{TESTPAPER_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + + delete from + + where + TESTPAPER_ID = #{TESTPAPER_ID} + + + + + update + + set + NAME = #{NAME}, + PAPER_ID = #{PAPER_ID}, + SCLASS_ID = #{SCLASS_ID}, + TEACHER_ID = #{TEACHER_ID}, + START_DATE = #{START_DATE}, + END_DATE = #{END_DATE}, + CREATE_DATE = #{CREATE_DATE}, + OTHER_SCORE = #{OTHER_SCORE}, + HIGHT_SCORE = #{HIGHT_SCORE}, + LOW_SCORE = #{LOW_SCORE}, + AVG_SCORE = #{AVG_SCORE}, + REMARK = #{REMARK}, + TESTPAPER_ID = TESTPAPER_ID + where + TESTPAPER_ID = #{TESTPAPER_ID} + + + + + + + + + + + + + + delete from + + where + TESTPAPER_ID in + + #{item} + + + + + \ No newline at end of file diff --git a/src/com/fh/controller/api/ApiServer.java b/src/com/fh/controller/api/ApiServer.java index 248fec4..4bd1706 100644 --- a/src/com/fh/controller/api/ApiServer.java +++ b/src/com/fh/controller/api/ApiServer.java @@ -20,8 +20,29 @@ import com.fh.controller.base.BaseController; import com.fh.service.feedback.feedback.FeedbackManager; import com.fh.service.feedback.problemphenomenon.ProblemPhenomenonManager; import com.fh.service.sunvote.basestation.BasestationManager; +import com.fh.service.sunvote.chapter.ChapterManager; +import com.fh.service.sunvote.classbasetation.ClassBasetationManager; +import com.fh.service.sunvote.classroster.ClassRosterManager; +import com.fh.service.sunvote.classtype.ClassTypeManager; +import com.fh.service.sunvote.coursemanagement.CourseManagementManager; +import com.fh.service.sunvote.grade.GradeManager; import com.fh.service.sunvote.keypad.KeypadManager; +import com.fh.service.sunvote.keypadcheck.KeypadCheckManager; +import com.fh.service.sunvote.knowledge.KnowledgeManager; +import com.fh.service.sunvote.knowledgechapter.KnowledgeChapterManager; +import com.fh.service.sunvote.paper.PaperManager; +import com.fh.service.sunvote.paperclassteacher.PaperClassTeacherManager; +import com.fh.service.sunvote.paperquestion.PaperQuestionManager; +import com.fh.service.sunvote.papertype.PaperTypeManager; +import com.fh.service.sunvote.question.QuestionManager; +import com.fh.service.sunvote.questiontype.QuestionTypeManager; import com.fh.service.sunvote.school.SchoolManager; +import com.fh.service.sunvote.schoolgradesubject.SchoolGradeSubjectManager; +import com.fh.service.sunvote.sclass.SClassManager; +import com.fh.service.sunvote.student.StudentManager; +import com.fh.service.sunvote.subject.SubjectManager; +import com.fh.service.sunvote.teacher.TeacherManager; +import com.fh.service.sunvote.testpaperinfo.TestPaperInfoManager; import com.fh.util.PageData; import com.fh.util.Tools; @@ -34,9 +55,72 @@ public class ApiServer extends BaseController { @Resource(name = "basestationService") private BasestationManager basestationService; + + @Resource(name="chapterService") + private ChapterManager chapterService; + + @Resource(name="classbasetationService") + private ClassBasetationManager classbasetationService; + + @Resource(name="classrosterService") + private ClassRosterManager classrosterService; + + @Resource(name="classtypeService") + private ClassTypeManager classtypeService; + + @Resource(name="gradeService") + private GradeManager gradeService; + + @Resource(name="coursemanagementService") + private CourseManagementManager coursemanagementService; @Resource(name = "keypadService") private KeypadManager keypadService; + + @Resource(name="keypadcheckService") + private KeypadCheckManager keypadcheckService; + + @Resource(name="knowledgeService") + private KnowledgeManager knowledgeService; + + @Resource(name="knowledgechapterService") + private KnowledgeChapterManager knowledgechapterService; + + @Resource(name="paperService") + private PaperManager paperService; + + @Resource(name="paperclassteacherService") + private PaperClassTeacherManager paperclassteacherService; + + @Resource(name="paperquestionService") + private PaperQuestionManager paperquestionService; + + @Resource(name="papertypeService") + private PaperTypeManager papertypeService; + + @Resource(name="questionService") + private QuestionManager questionService; + + @Resource(name="questiontypeService") + private QuestionTypeManager questiontypeService; + + @Resource(name="schoolgradesubjectService") + private SchoolGradeSubjectManager schoolgradesubjectService; + + @Resource(name="sclassService") + private SClassManager sclassService; + + @Resource(name="studentService") + private StudentManager studentService; + + @Resource(name="subjectService") + private SubjectManager subjectService; + + @Resource(name="teacherService") + private TeacherManager teacherService; + + @Resource(name="testpaperinfoService") + private TestPaperInfoManager testpaperinfoService; @Resource(name = "feedbackService") private FeedbackManager feedbackService; @@ -359,4 +443,5 @@ public class ApiServer extends BaseController { return false; } } + } diff --git a/src/com/fh/controller/api/ResponseGson.java b/src/com/fh/controller/api/ResponseGson.java index 5ddd0f4..8de572e 100644 --- a/src/com/fh/controller/api/ResponseGson.java +++ b/src/com/fh/controller/api/ResponseGson.java @@ -74,14 +74,19 @@ public class ResponseGson { message = "server error" ; } + public void setOtherError(){ + code = "-6" ; + message = "未定义,需补充" ; + } + public void set1Error(){ code = "1" ; - message = "分别对错误进行描述,1 具体到某个参数值问题的描述" ; + message = "登录失败,用户名或者密码错误" ; } public void set2Error(){ code = "2" ; - message = "分别对错误进行描述,1 具体到某个参数值问题的描述" ; + message = "没有找到对应的班级信息" ; } public void set3Error(){ diff --git a/src/com/fh/controller/api/V1.java b/src/com/fh/controller/api/V1.java new file mode 100644 index 0000000..b31a884 --- /dev/null +++ b/src/com/fh/controller/api/V1.java @@ -0,0 +1,261 @@ +package com.fh.controller.api; + +import java.util.Date; +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import com.fh.controller.base.BaseController; +import com.fh.entity.Page; +import com.fh.service.api.V1Manager; +import com.fh.service.feedback.feedback.FeedbackManager; +import com.fh.service.feedback.problemphenomenon.ProblemPhenomenonManager; +import com.fh.service.sunvote.basestation.BasestationManager; +import com.fh.service.sunvote.chapter.ChapterManager; +import com.fh.service.sunvote.classbasetation.ClassBasetationManager; +import com.fh.service.sunvote.classroster.ClassRosterManager; +import com.fh.service.sunvote.classtype.ClassTypeManager; +import com.fh.service.sunvote.coursemanagement.CourseManagementManager; +import com.fh.service.sunvote.grade.GradeManager; +import com.fh.service.sunvote.keypad.KeypadManager; +import com.fh.service.sunvote.keypadcheck.KeypadCheckManager; +import com.fh.service.sunvote.knowledge.KnowledgeManager; +import com.fh.service.sunvote.knowledgechapter.KnowledgeChapterManager; +import com.fh.service.sunvote.paper.PaperManager; +import com.fh.service.sunvote.paperclassteacher.PaperClassTeacherManager; +import com.fh.service.sunvote.paperquestion.PaperQuestionManager; +import com.fh.service.sunvote.papertype.PaperTypeManager; +import com.fh.service.sunvote.question.QuestionManager; +import com.fh.service.sunvote.questiontype.QuestionTypeManager; +import com.fh.service.sunvote.school.SchoolManager; +import com.fh.service.sunvote.schoolgradesubject.SchoolGradeSubjectManager; +import com.fh.service.sunvote.sclass.SClassManager; +import com.fh.service.sunvote.student.StudentManager; +import com.fh.service.sunvote.subject.SubjectManager; +import com.fh.service.sunvote.teacher.TeacherManager; +import com.fh.service.sunvote.testpaperinfo.TestPaperInfoManager; +import com.fh.util.PageData; +import com.fh.util.Tools; + +@Controller +@RequestMapping(value = "/api/v1") +public class V1 extends BaseController { + + @Resource(name = "schoolService") + private SchoolManager schoolService; + + @Resource(name = "basestationService") + private BasestationManager basestationService; + + @Resource(name="chapterService") + private ChapterManager chapterService; + + @Resource(name="classbasetationService") + private ClassBasetationManager classbasetationService; + + @Resource(name="classrosterService") + private ClassRosterManager classrosterService; + + @Resource(name="classtypeService") + private ClassTypeManager classtypeService; + + @Resource(name="gradeService") + private GradeManager gradeService; + + @Resource(name="coursemanagementService") + private CourseManagementManager coursemanagementService; + + @Resource(name = "keypadService") + private KeypadManager keypadService; + + @Resource(name="keypadcheckService") + private KeypadCheckManager keypadcheckService; + + @Resource(name="knowledgeService") + private KnowledgeManager knowledgeService; + + @Resource(name="knowledgechapterService") + private KnowledgeChapterManager knowledgechapterService; + + @Resource(name="paperService") + private PaperManager paperService; + + @Resource(name="paperclassteacherService") + private PaperClassTeacherManager paperclassteacherService; + + @Resource(name="paperquestionService") + private PaperQuestionManager paperquestionService; + + @Resource(name="papertypeService") + private PaperTypeManager papertypeService; + + @Resource(name="questionService") + private QuestionManager questionService; + + @Resource(name="questiontypeService") + private QuestionTypeManager questiontypeService; + + @Resource(name="schoolgradesubjectService") + private SchoolGradeSubjectManager schoolgradesubjectService; + + @Resource(name="sclassService") + private SClassManager sclassService; + + @Resource(name="studentService") + private StudentManager studentService; + + @Resource(name="subjectService") + private SubjectManager subjectService; + + @Resource(name="teacherService") + private TeacherManager teacherService; + + @Resource(name="testpaperinfoService") + private TestPaperInfoManager testpaperinfoService; + + @Resource(name = "feedbackService") + private FeedbackManager feedbackService; + + @Resource(name = "problemphenomenonService") + private ProblemPhenomenonManager problemphenomenonService; + + @Resource(name = "v1Service") + private V1Manager v1Service ; + + @RequestMapping(value = "/login", produces = "application/json;charset=UTF-8") + @ResponseBody + public Object login() throws Exception { + PageData pd = this.getPageData(); + ResponseGson res = new ResponseGson(); + if(!pd.containsKey("ACCOUT")){ + pd.put("ACCOUT", pd.get("USERNAME")); + } + if(((pd.containsKey("USERNAME") || pd.containsKey("ACCOUT")) && pd.containsKey("PASSWORD")) || pd.containsKey("KEYPAD_ID")){ + PageData pageData = teacherService.getUserInfo(pd); + if(pageData != null && pageData.getString("ID") != null){ + pageData.put("PASSWORD", "");//返回参数中不返回密码 + PageData pt = new PageData(); + pt.put("TEACHER_ID", pageData.get("ID")); + // 在任课表中查找老师教哪些班级,然后查出班级信息 + List classInfoList = v1Service.getTeacherClassInfo(pt); + + pageData.put("classInfoList", classInfoList); + // 在认可表中查找老师教哪些科目,然后查出科目信息 + List subjectList = v1Service.getTeacherSubjectInfo(pt); + // 一个sql语句完成。 + pageData.put("subjectList", subjectList); + + pageData.remove("SUBJECT_IDS"); + + res.setData(pageData); + // 填充数据到返回数据中 + }else{ + res.set1Error(); + } + }else{ + res.set1Error(); + } + + return res.toJson(); + } + + @RequestMapping(value = "/class", produces = "application/json;charset=UTF-8") + @ResponseBody + public Object sclass() throws Exception { + PageData pd = this.getPageData(); + ResponseGson res = new ResponseGson(); + if (pd.containsKey("ID")) { + PageData pageData = sclassService.findById(pd); + if (pageData != null && pageData.containsKey("ID")) { + PageData pt = new PageData(); + pt.put("SCLASS_ID", pageData.get("ID")); + List studentList = v1Service + .getClassStudent(pt); + pageData.put("studentList", studentList); + res.setData(pageData); + } else { + res.set2Error(); + } + }else{ + res.set2Error(); + } + return res.toJson(); + } + + @RequestMapping(value = "/keypadscan", produces = "application/json;charset=UTF-8") + @ResponseBody + public Object keypadScan() throws Exception { + PageData pd = this.getPageData(); + ResponseGson res = new ResponseGson(); + pd.put("KEYPADCHECK_ID", get32UUID()); //主键 + pd.put("CREATE_DATE", Tools.date2Str(new Date())); //创建时间 + try{ + keypadcheckService.save(pd); + res.setSuccess(); + }catch(Exception ex){ + res.setDataError(); + } + return res.toJson(); + } + + @RequestMapping(value = "/paper", produces = "application/json;charset=UTF-8") + @ResponseBody + public Object paper() throws Exception { + PageData pd = this.getPageData(); + ResponseGson> res = new ResponseGson>(); + if(pd.containsKey("PAPER_TYPE") && pd.containsKey("USER_ID")){ + Page page = new Page(); + page.getPd().put("PAPER_TYPE", pd.get("PAPER_TYPE")); + page.getPd().put("USER_ID", pd.get("USER_ID")); + if(pd.containsKey("CURRENTPAGE")){ + String curpage = pd.getString("CURRENTPAGE"); + try{ + page.setCurrentPage(Integer.parseInt(curpage)); + }catch(Exception ex){} + } + if(pd.containsKey("SHOWCOUNT")){ + String showCount = pd.getString("SHOWCOUNT"); + try{ + page.setShowCount(Integer.parseInt(showCount)); + }catch(Exception ex){} + }else{ + page.setShowCount(100); + } + List pageList = paperService.listAllByType(page); + res.setData(pageList); + } + return res.toJson(); + } + + @RequestMapping(value = "/testpaper", produces = "application/json;charset=UTF-8") + @ResponseBody + public Object testpaper() throws Exception { + PageData pd = this.getPageData(); + ResponseGson> res = new ResponseGson>(); + if(pd.containsKey("PAPER_ID")){ + try{ + List questList = v1Service.getTestPaperInfo(pd); + res.setData(questList); + }catch(Exception ex){ + res.setOtherError(); + } + }else{ + res.setOtherError(); + } + return res.toJson(); + } + + @RequestMapping(value = "/paperquestion", produces = "application/json;charset=UTF-8") + @ResponseBody + public Object paperQuestion() throws Exception { + PageData pd = this.getPageData(); + ResponseGson res = new ResponseGson(); + + return res.toJson(); + } + +} diff --git a/src/com/fh/controller/api/sql.txt b/src/com/fh/controller/api/sql.txt new file mode 100644 index 0000000..fdd0d47 --- /dev/null +++ b/src/com/fh/controller/api/sql.txt @@ -0,0 +1,42 @@ +SELECT + * +FROM + sv_coursemanagement +LEFT JOIN sv_sclass ON sv_coursemanagement.CLASS_ID = sv_sclass.ID +WHERE + sv_coursemanagement.START_DATE < NOW() +AND sv_coursemanagement.END_DATE > NOW(); + + +SELECT + * +FROM + sv_coursemanagement +LEFT JOIN sv_subject ON sv_coursemanagement.SUBJECT_ID = sv_subject.ID +WHERE + sv_coursemanagement.START_DATE < NOW() +AND sv_coursemanagement.END_DATE > NOW() +and TEACHER_ID = '1' + + +根据班级名称查找该学期学生名单 +SELECT + STUDENT_ID, + sv_student.`NAME` +FROM + sv_classroster +LEFT JOIN sv_term ON sv_classroster.TEAMID = sv_term.TERM_ID +LEFT JOIN sv_student ON sv_classroster.STUDENT_ID = sv_student.ID +WHERE + sv_term.START_DATE < NOW() +AND sv_term.END_DATE > NOW() + where sclass_id = ? + + + SELECT + * +FROM + sv_paper +LEFT JOIN sv_paperquestion ON sv_paper.PAPER_ID = sv_paperquestion.PAPER_ID +LEFT JOIN sv_question ON sv_paperquestion.QUESTION_ID = sv_question.QUESTION_ID; + diff --git a/src/com/fh/controller/sunvote/Myelfun.java b/src/com/fh/controller/sunvote/Myelfun.java index 1bf583d..abd5ccb 100644 --- a/src/com/fh/controller/sunvote/Myelfun.java +++ b/src/com/fh/controller/sunvote/Myelfun.java @@ -5,6 +5,7 @@ import org.springframework.stereotype.Service; import com.fh.service.sunvote.basestation.impl.BasestationService; import com.fh.service.sunvote.classtype.impl.ClassTypeService; import com.fh.service.sunvote.grade.impl.GradeService; +import com.fh.service.sunvote.questiontype.QuestionTypeManager; import com.fh.service.sunvote.school.impl.SchoolService; import com.fh.service.sunvote.sclass.impl.SClassService; import com.fh.service.sunvote.subject.impl.SubjectService; @@ -178,4 +179,22 @@ public class Myelfun { } } + /** + * 根据ID查找题目类型 + * @param id + * @return + * @throws Exception + */ + public static String findQuestionTypeName(int id) throws Exception { + QuestionTypeManager questiontypeService = (QuestionTypeManager)SpringBeanFactoryUtils.getBean("questiontypeService"); + PageData pageData = new PageData(); + pageData.put("QUESTIONTYPE_ID", id); + pageData = questiontypeService.findById(pageData); + if(pageData != null){ + return pageData.getString("NAME"); + }else{ + return "" ; + } + } + } diff --git a/src/com/fh/controller/sunvote/classbasetation/ClassBasetationController.java b/src/com/fh/controller/sunvote/classbasetation/ClassBasetationController.java new file mode 100644 index 0000000..a28ec52 --- /dev/null +++ b/src/com/fh/controller/sunvote/classbasetation/ClassBasetationController.java @@ -0,0 +1,208 @@ +package com.fh.controller.sunvote.classbasetation; + +import java.io.PrintWriter; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.annotation.Resource; +import org.springframework.beans.propertyeditors.CustomDateEditor; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.WebDataBinder; +import org.springframework.web.bind.annotation.InitBinder; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; +import com.fh.controller.base.BaseController; +import com.fh.entity.Page; +import com.fh.util.AppUtil; +import com.fh.util.ObjectExcelView; +import com.fh.util.PageData; +import com.fh.util.Jurisdiction; +import com.fh.util.Tools; +import com.fh.service.sunvote.classbasetation.ClassBasetationManager; + +/** + * 说明:班级教室基站 + * 创建时间:2018-05-16 + */ +@Controller +@RequestMapping(value="/classbasetation") +public class ClassBasetationController extends BaseController { + + String menuUrl = "classbasetation/list.do"; //菜单地址(权限用) + @Resource(name="classbasetationService") + private ClassBasetationManager classbasetationService; + + /**保存 + * @param + * @throws Exception + */ + @RequestMapping(value="/save") + public ModelAndView save() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"新增ClassBasetation"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "add")){return null;} //校验权限 + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CLASSBASETATION_ID", this.get32UUID()); //主键 + classbasetationService.save(pd); + mv.addObject("msg","success"); + mv.setViewName("save_result"); + return mv; + } + + /**删除 + * @param out + * @throws Exception + */ + @RequestMapping(value="/delete") + public void delete(PrintWriter out) throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"删除ClassBasetation"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return;} //校验权限 + PageData pd = new PageData(); + pd = this.getPageData(); + classbasetationService.delete(pd); + out.write("success"); + out.close(); + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + public ModelAndView edit() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"修改ClassBasetation"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "edit")){return null;} //校验权限 + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + classbasetationService.edit(pd); + mv.addObject("msg","success"); + mv.setViewName("save_result"); + return mv; + } + + /**列表 + * @param page + * @throws Exception + */ + @RequestMapping(value="/list") + public ModelAndView list(Page page) throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"列表ClassBasetation"); + //if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} //校验权限(无权查看时页面会有提示,如果不注释掉这句代码就无法进入列表页面,所以根据情况是否加入本句代码) + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + String keywords = pd.getString("keywords"); //关键词检索条件 + if(null != keywords && !"".equals(keywords)){ + pd.put("keywords", keywords.trim()); + } + page.setPd(pd); + List varList = classbasetationService.list(page); //列出ClassBasetation列表 + mv.setViewName("sunvote/classbasetation/classbasetation_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/classbasetation/classbasetation_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = classbasetationService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/classbasetation/classbasetation_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除ClassBasetation"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + classbasetationService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出ClassBasetation到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("班级"); //1 + titles.add("基站"); //2 + titles.add("时间"); //3 + dataMap.put("titles", titles); + List varOList = classbasetationService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = classrosterService.list(page); //列出ClassRoster列表 + mv.setViewName("sunvote/classroster/classroster_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/classroster/classroster_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = classrosterService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/classroster/classroster_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除ClassRoster"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + classrosterService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出ClassRoster到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("班级"); //1 + titles.add("学生"); //2 + titles.add("学期名称"); //3 + dataMap.put("titles", titles); + List varOList = classrosterService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = keypadcheckService.list(page); //列出KeypadCheck列表 + mv.setViewName("sunvote/keypadcheck/keypadcheck_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/keypadcheck/keypadcheck_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = keypadcheckService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/keypadcheck/keypadcheck_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除KeypadCheck"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + keypadcheckService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出KeypadCheck到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("键盘ID"); //1 + titles.add("创建时间"); //2 + titles.add("电量信息"); //3 + titles.add("是否在线"); //4 + dataMap.put("titles", titles); + List varOList = keypadcheckService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = knowledgeService.list(page); //列出Knowledge列表 + mv.setViewName("sunvote/knowledge/knowledge_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/knowledge/knowledge_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = knowledgeService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/knowledge/knowledge_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除Knowledge"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + knowledgeService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出Knowledge到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("知识点名称"); //1 + titles.add("父知识点"); //2 + titles.add("排序"); //3 + titles.add("编码"); //4 + titles.add("知识点备注"); //5 + dataMap.put("titles", titles); + List varOList = knowledgeService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = knowledgechapterService.list(page); //列出KnowledgeChapter列表 + mv.setViewName("sunvote/knowledgechapter/knowledgechapter_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/knowledgechapter/knowledgechapter_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = knowledgechapterService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/knowledgechapter/knowledgechapter_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除KnowledgeChapter"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + knowledgechapterService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出KnowledgeChapter到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("知识点"); //1 + titles.add("章节"); //2 + dataMap.put("titles", titles); + List varOList = knowledgechapterService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = paperService.list(page); //列出Paper列表 + mv.setViewName("sunvote/paper/paper_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/paper/paper_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = paperService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/paper/paper_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除Paper"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + paperService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出Paper到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("试卷标题"); //1 + titles.add("出卷老师"); //2 + titles.add("试卷类型"); //3 + titles.add("科目"); //4 + titles.add("年级"); //5 + titles.add("学校"); //6 + titles.add("创建时间"); //7 + titles.add("修改时间"); //8 + titles.add("建议考试时长"); //9 + titles.add("试卷状态"); //10 + titles.add("备注"); //11 + dataMap.put("titles", titles); + List varOList = paperService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = paperclassteacherService.list(page); //列出PaperClassTeacher列表 + mv.setViewName("sunvote/paperclassteacher/paperclassteacher_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/paperclassteacher/paperclassteacher_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = paperclassteacherService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/paperclassteacher/paperclassteacher_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除PaperClassTeacher"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + paperclassteacherService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出PaperClassTeacher到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("试卷"); //1 + titles.add("班级"); //2 + titles.add("教师"); //3 + dataMap.put("titles", titles); + List varOList = paperclassteacherService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = paperquestionService.list(page); //列出PaperQuestion列表 + mv.setViewName("sunvote/paperquestion/paperquestion_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/paperquestion/paperquestion_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = paperquestionService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/paperquestion/paperquestion_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除PaperQuestion"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + paperquestionService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出PaperQuestion到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("试卷"); //1 + titles.add("题目"); //2 + titles.add("分值"); //3 + titles.add("部分分"); //4 + titles.add("排序编号"); //5 + titles.add("题号"); //6 + dataMap.put("titles", titles); + List varOList = paperquestionService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = questionService.list(page); //列出Question列表 + mv.setViewName("sunvote/question/question_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/question/question_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = questionService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/question/question_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除Question"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + questionService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出Question到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("父ID"); //1 + titles.add("所属科目"); //2 + titles.add("所属章节"); //3 + titles.add("题目类型"); //4 + titles.add("出题老师"); //5 + titles.add("所属学校"); //6 + titles.add("知识点"); //7 + titles.add("题目内容"); //8 + titles.add("选项个数"); //9 + titles.add("选项内容"); //10 + titles.add("标准答案"); //11 + titles.add("难度系数"); //12 + titles.add("题目解析"); //13 + titles.add("题目来源"); //14 + titles.add("建议试题总分"); //15 + titles.add("建议部分分"); //16 + titles.add("用户ID"); //17 + titles.add("创建时间"); //18 + titles.add("备注"); //19 + dataMap.put("titles", titles); + List varOList = questionService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = questiontypeService.list(page); //列出QuestionType列表 + mv.setViewName("sunvote/questiontype/questiontype_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/questiontype/questiontype_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = questiontypeService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/questiontype/questiontype_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除QuestionType"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + questiontypeService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出QuestionType到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("名称"); //1 + titles.add("创建时间"); //2 + titles.add("修改时间"); //3 + titles.add("备注"); //4 + dataMap.put("titles", titles); + List varOList = questiontypeService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = schoolgradesubjectService.list(page); //列出SchoolGradeSubject列表 + mv.setViewName("sunvote/schoolgradesubject/schoolgradesubject_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/schoolgradesubject/schoolgradesubject_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = schoolgradesubjectService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/schoolgradesubject/schoolgradesubject_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除SchoolGradeSubject"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + schoolgradesubjectService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出SchoolGradeSubject到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("学校"); //1 + titles.add("年级"); //2 + titles.add("科目"); //3 + dataMap.put("titles", titles); + List varOList = schoolgradesubjectService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = termService.list(page); //列出Term列表 + mv.setViewName("sunvote/term/term_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/term/term_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = termService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/term/term_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除Term"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + termService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出Term到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("名称"); //1 + titles.add("起始时间"); //2 + titles.add("结束时间"); //3 + titles.add("备注"); //4 + dataMap.put("titles", titles); + List varOList = termService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = testpaperService.list(page); //列出TestPaper列表 + mv.setViewName("sunvote/testpaper/testpaper_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/testpaper/testpaper_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = testpaperService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/testpaper/testpaper_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除TestPaper"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + testpaperService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出TestPaper到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("测验名称"); //1 + titles.add("试卷"); //2 + titles.add("班级"); //3 + titles.add("老师"); //4 + titles.add("开始时间"); //5 + titles.add("结束时间"); //6 + titles.add("创建时间"); //7 + titles.add("主观题分值"); //8 + titles.add("测验最高分"); //9 + titles.add("最低分"); //10 + titles.add("平均分"); //11 + titles.add("备注"); //12 + dataMap.put("titles", titles); + List varOList = testpaperService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = testpaperinfoService.list(page); //列出TestPaperInfo列表 + mv.setViewName("sunvote/testpaperinfo/testpaperinfo_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/testpaperinfo/testpaperinfo_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = testpaperinfoService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/testpaperinfo/testpaperinfo_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除TestPaperInfo"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + testpaperinfoService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出TestPaperInfo到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("试卷"); //1 + titles.add("学生"); //2 + titles.add("测验"); //3 + titles.add("题目"); //4 + titles.add("学生答案"); //5 + titles.add("是否正确"); //6 + titles.add("得分"); //7 + titles.add("是否点赞"); //8 + titles.add("答题类型"); //9 + titles.add("按键时间"); //10 + titles.add("接收时间"); //11 + titles.add("是否主观题"); //12 + titles.add("笔记"); //13 + titles.add("标记等级"); //14 + dataMap.put("titles", titles); + List varOList = testpaperinfoService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i map = new HashMap(); + public Object login() throws Exception { + Map map = new HashMap(); PageData pd = new PageData(); pd = this.getPageData(); String errInfo = ""; String KEYDATA[] = pd.getString("KEYDATA").split(";;;"); - if(null != KEYDATA && KEYDATA.length >= 2){ + if (null != KEYDATA && KEYDATA.length >= 2) { Session session = Jurisdiction.getSession(); - String sessionCode = (String)session.getAttribute(Const.SESSION_SECURITY_CODE); //获取session中的验证码 -// String code = KEYDATA[2]; -// if(null == code || "".equals(code)){//判断效验码 -// errInfo = "nullcode"; //效验码为空 -// }else{ - String USERNAME = KEYDATA[0]; //登录过来的用户名 - String PASSWORD = KEYDATA[1]; //登录过来的密码 - pd.put("USERNAME", USERNAME); -// if(Tools.notEmpty(sessionCode) && sessionCode.equalsIgnoreCase(code)){ //判断登录验证码 - String passwd = new SimpleHash("SHA-1", USERNAME, PASSWORD).toString(); //密码加密 - pd.put("PASSWORD", passwd); - pd = userService.getUserByNameAndPwd(pd); //根据用户名和密码去读取用户信息 - if(pd != null){ - this.removeSession(USERNAME);//请缓存 - pd.put("LAST_LOGIN",DateUtil.getTime().toString()); - userService.updateLastLogin(pd); - User user = new User(); - user.setUSER_ID(pd.getString("USER_ID")); - user.setUSERNAME(pd.getString("USERNAME")); - user.setPASSWORD(pd.getString("PASSWORD")); - user.setNAME(pd.getString("NAME")); - user.setRIGHTS(pd.getString("RIGHTS")); - user.setROLE_ID(pd.getString("ROLE_ID")); - user.setLAST_LOGIN(pd.getString("LAST_LOGIN")); - user.setIP(pd.getString("IP")); - user.setSTATUS(pd.getString("STATUS")); - session.setAttribute(Const.SESSION_USER, user); //把用户信息放session中 - session.removeAttribute(Const.SESSION_SECURITY_CODE); //清除登录验证码的session - //shiro加入身份验证 - Subject subject = SecurityUtils.getSubject(); - UsernamePasswordToken token = new UsernamePasswordToken(USERNAME, PASSWORD); - try { - subject.login(token); - } catch (AuthenticationException e) { - errInfo = "身份验证失败!"; - } - }else{ - errInfo = "usererror"; //用户名或密码有误 - logBefore(logger, USERNAME+"登录系统密码或用户名错误"); - FHLOG.save(USERNAME, "登录系统密码或用户名错误"); - } -// }else{ -// errInfo = "codeerror"; //验证码输入有误 -// } - if(Tools.isEmpty(errInfo)){ - errInfo = "success"; //验证成功 - logBefore(logger, USERNAME+"登录系统"); - FHLOG.save(USERNAME, "登录系统"); + String sessionCode = (String) session + .getAttribute(Const.SESSION_SECURITY_CODE); // 获取session中的验证码 + String USERNAME = KEYDATA[0]; // 登录过来的用户名 + String PASSWORD = KEYDATA[1]; // 登录过来的密码 + pd.put("USERNAME", USERNAME); + String passwd = new SimpleHash("SHA-1", USERNAME, PASSWORD) + .toString(); // 密码加密 + pd.put("PASSWORD", passwd); + pd = userService.getUserByNameAndPwd(pd); // 根据用户名和密码去读取用户信息 + if (pd != null) { + this.removeSession(USERNAME);// 请缓存 + pd.put("LAST_LOGIN", DateUtil.getTime().toString()); + userService.updateLastLogin(pd); + User user = new User(); + user.setUSER_ID(pd.getString("USER_ID")); + user.setUSERNAME(pd.getString("USERNAME")); + user.setPASSWORD(pd.getString("PASSWORD")); + user.setNAME(pd.getString("NAME")); + user.setRIGHTS(pd.getString("RIGHTS")); + user.setROLE_ID(pd.getString("ROLE_ID")); + user.setLAST_LOGIN(pd.getString("LAST_LOGIN")); + user.setIP(pd.getString("IP")); + user.setSTATUS(pd.getString("STATUS")); + session.setAttribute(Const.SESSION_USER, user); // 把用户信息放session中 + session.removeAttribute(Const.SESSION_SECURITY_CODE); // 清除登录验证码的session + // shiro加入身份验证 + Subject subject = SecurityUtils.getSubject(); + UsernamePasswordToken token = new UsernamePasswordToken( + USERNAME, PASSWORD); + try { + subject.login(token); + } catch (AuthenticationException e) { + errInfo = "身份验证失败!"; } + } else { + errInfo = "usererror"; // 用户名或密码有误 + logBefore(logger, USERNAME + "登录系统密码或用户名错误"); + FHLOG.save(USERNAME, "登录系统密码或用户名错误"); + } + if (Tools.isEmpty(errInfo)) { + errInfo = "success"; // 验证成功 + logBefore(logger, USERNAME + "登录系统"); + FHLOG.save(USERNAME, "登录系统"); } -// }else{ -// errInfo = "error"; //缺少参数 -// } + } map.put("result", errInfo); return AppUtil.returnObject(new PageData(), map); } - - /**访问系统首页 - * @param changeMenu:切换菜单参数 + + /** + * 访问系统首页 + * + * @param changeMenu + * :切换菜单参数 * @return */ - @RequestMapping(value="/main/{changeMenu}") - public ModelAndView login_index(@PathVariable("changeMenu") String changeMenu){ + @RequestMapping(value = "/main/{changeMenu}") + public ModelAndView login_index( + @PathVariable("changeMenu") String changeMenu) { ModelAndView mv = this.getModelAndView(); PageData pd = new PageData(); pd = this.getPageData(); - try{ + try { Session session = Jurisdiction.getSession(); - User user = (User)session.getAttribute(Const.SESSION_USER); //读取session中的用户信息(单独用户信息) + User user = (User) session.getAttribute(Const.SESSION_USER); // 读取session中的用户信息(单独用户信息) if (user != null) { - User userr = (User)session.getAttribute(Const.SESSION_USERROL); //读取session中的用户信息(含角色信息) - if(null == userr){ - user = userService.getUserAndRoleById(user.getUSER_ID()); //通过用户ID读取用户信息和角色信息 - session.setAttribute(Const.SESSION_USERROL, user); //存入session - }else{ + User userr = (User) session.getAttribute(Const.SESSION_USERROL); // 读取session中的用户信息(含角色信息) + if (null == userr) { + user = userService.getUserAndRoleById(user.getUSER_ID()); // 通过用户ID读取用户信息和角色信息 + session.setAttribute(Const.SESSION_USERROL, user); // 存入session + } else { user = userr; } String USERNAME = user.getUSERNAME(); - Role role = user.getRole(); //获取用户角色 - String roleRights = role!=null ? role.getRIGHTS() : ""; //角色权限(菜单权限) + Role role = user.getRole(); // 获取用户角色 + String roleRights = role != null ? role.getRIGHTS() : ""; // 角色权限(菜单权限) String ROLE_IDS = user.getROLE_IDS(); - session.setAttribute(USERNAME + Const.SESSION_ROLE_RIGHTS, roleRights); //将角色权限存入session - session.setAttribute(Const.SESSION_USERNAME, USERNAME); //放入用户名到session - this.setAttributeToAllDEPARTMENT_ID(session, USERNAME); //把用户的组织机构权限放到session里面 + session.setAttribute(USERNAME + Const.SESSION_ROLE_RIGHTS, + roleRights); // 将角色权限存入session + session.setAttribute(Const.SESSION_USERNAME, USERNAME); // 放入用户名到session + this.setAttributeToAllDEPARTMENT_ID(session, USERNAME); // 把用户的组织机构权限放到session里面 List allmenuList = new ArrayList(); - allmenuList = this.getAttributeMenu(session, USERNAME, roleRights, getArrayRoleRights(ROLE_IDS)); //菜单缓存 + allmenuList = this.getAttributeMenu(session, USERNAME, + roleRights, getArrayRoleRights(ROLE_IDS)); // 菜单缓存 List menuList = new ArrayList(); - menuList = this.changeMenuF(allmenuList, session, USERNAME, changeMenu); //切换菜单 - if(null == session.getAttribute(USERNAME + Const.SESSION_QX)){ - session.setAttribute(USERNAME + Const.SESSION_QX, this.getUQX(USERNAME)); //主职角色按钮权限放到session中 - session.setAttribute(USERNAME + Const.SESSION_QX2, this.getUQX2(USERNAME)); //副职角色按钮权限放到session中 + menuList = this.changeMenuF(allmenuList, session, USERNAME, + changeMenu); // 切换菜单 + if (null == session.getAttribute(USERNAME + Const.SESSION_QX)) { + session.setAttribute(USERNAME + Const.SESSION_QX, + this.getUQX(USERNAME)); // 主职角色按钮权限放到session中 + session.setAttribute(USERNAME + Const.SESSION_QX2, + this.getUQX2(USERNAME)); // 副职角色按钮权限放到session中 } - this.getRemortIP(USERNAME); //更新登录IP + this.getRemortIP(USERNAME); // 更新登录IP mv.setViewName("system/index/main"); mv.addObject("user", user); mv.addObject("menuList", menuList); - }else { - mv.setViewName("system/index/login");//session失效后跳转登录页面 + } else { + mv.setViewName("system/index/login");// session失效后跳转登录页面 } - } catch(Exception e){ + } catch (Exception e) { mv.setViewName("system/index/login"); logger.error(e.getMessage(), e); } - pd.put("SYSNAME", Tools.readTxtFile(Const.SYSNAME)); //读取系统名称 - mv.addObject("pd",pd); + pd.put("SYSNAME", Tools.readTxtFile(Const.SYSNAME)); // 读取系统名称 + mv.addObject("pd", pd); return mv; } - - /**获取副职角色权限List + + /** + * 获取副职角色权限List + * * @param ROLE_IDS * @return * @throws Exception */ - public List getArrayRoleRights(String ROLE_IDS) throws Exception{ - if(Tools.notEmpty(ROLE_IDS)){ + public List getArrayRoleRights(String ROLE_IDS) throws Exception { + if (Tools.notEmpty(ROLE_IDS)) { List list = new ArrayList(); String arryROLE_ID[] = ROLE_IDS.split(",fh,"); - for(int i=0;i getAttributeMenu(Session session, String USERNAME, String roleRights, List arrayRoleRights) throws Exception{ + public List getAttributeMenu(Session session, String USERNAME, + String roleRights, List arrayRoleRights) throws Exception { List allmenuList = new ArrayList(); - if(null == session.getAttribute(USERNAME + Const.SESSION_allmenuList)){ - allmenuList = menuService.listAllMenuQx("0"); //获取所有菜单 - if(Tools.notEmpty(roleRights)){ - allmenuList = this.readMenu(allmenuList, roleRights, arrayRoleRights); //根据角色权限获取本权限的菜单列表 + if (null == session.getAttribute(USERNAME + Const.SESSION_allmenuList)) { + allmenuList = menuService.listAllMenuQx("0"); // 获取所有菜单 + if (Tools.notEmpty(roleRights)) { + allmenuList = this.readMenu(allmenuList, roleRights, + arrayRoleRights); // 根据角色权限获取本权限的菜单列表 } - session.setAttribute(USERNAME + Const.SESSION_allmenuList, allmenuList);//菜单权限放入session中 - }else{ - allmenuList = (List)session.getAttribute(USERNAME + Const.SESSION_allmenuList); + session.setAttribute(USERNAME + Const.SESSION_allmenuList, + allmenuList);// 菜单权限放入session中 + } else { + allmenuList = (List) session.getAttribute(USERNAME + + Const.SESSION_allmenuList); } return allmenuList; } - - /**根据角色权限获取本权限的菜单列表(递归处理) - * @param menuList:传入的总菜单 - * @param roleRights:加密的权限字符串 + + /** + * 根据角色权限获取本权限的菜单列表(递归处理) + * + * @param menuList + * :传入的总菜单 + * @param roleRights + * :加密的权限字符串 * @return */ - public List readMenu(List menuList,String roleRights, List arrayRoleRights){ - for(int i=0;i readMenu(List menuList, String roleRights, + List arrayRoleRights) { + for (int i = 0; i < menuList.size(); i++) { + Boolean b1 = RightsHelper.testRights(roleRights, menuList.get(i) + .getMENU_ID()); + menuList.get(i).setHasMenu(b1); // 赋予主职角色菜单权限 + if (!b1 && null != arrayRoleRights) { + for (int n = 0; n < arrayRoleRights.size(); n++) { + if (RightsHelper.testRights(arrayRoleRights.get(n), + menuList.get(i).getMENU_ID())) { menuList.get(i).setHasMenu(true); break; } } } - if(menuList.get(i).isHasMenu()){ //判断是否有此菜单权限 - this.readMenu(menuList.get(i).getSubMenu(), roleRights, arrayRoleRights);//是:继续排查其子菜单 + if (menuList.get(i).isHasMenu()) { // 判断是否有此菜单权限 + this.readMenu(menuList.get(i).getSubMenu(), roleRights, + arrayRoleRights);// 是:继续排查其子菜单 } } return menuList; } - - /**切换菜单处理 + + /** + * 切换菜单处理 + * * @param allmenuList * @param session * @param USERNAME @@ -287,126 +311,143 @@ public class LoginController extends BaseController { * @return */ @SuppressWarnings("unchecked") - public List changeMenuF(List allmenuList, Session session, String USERNAME, String changeMenu){ + public List changeMenuF(List allmenuList, Session session, + String USERNAME, String changeMenu) { List menuList = new ArrayList(); /** 菜单缓存为空 或者 传入的菜单类型和当前不一样的时候,条件成立,重新拆分菜单,把选择的菜单类型放入缓存 */ - if(null == session.getAttribute(USERNAME + Const.SESSION_menuList) || (!changeMenu.equals(session.getAttribute("changeMenu")))){ + if (null == session.getAttribute(USERNAME + Const.SESSION_menuList) + || (!changeMenu.equals(session.getAttribute("changeMenu")))) { List menuList1 = new ArrayList(); List menuList2 = new ArrayList(); List menuList3 = new ArrayList(); List menuList4 = new ArrayList(); - for(int i=0;i)session.getAttribute(USERNAME + Const.SESSION_menuList); + } else { + menuList = (List) session.getAttribute(USERNAME + + Const.SESSION_menuList); } return menuList; } - - /**把用户的组织机构权限放到session里面 + + /** + * 把用户的组织机构权限放到session里面 + * * @param session * @param USERNAME * @return - * @throws Exception + * @throws Exception */ - public void setAttributeToAllDEPARTMENT_ID(Session session, String USERNAME) throws Exception{ - String DEPARTMENT_IDS = "0",DEPARTMENT_ID = "0"; - if(!"admin".equals(USERNAME)){ + public void setAttributeToAllDEPARTMENT_ID(Session session, String USERNAME) + throws Exception { + String DEPARTMENT_IDS = "0", DEPARTMENT_ID = "0"; + if (!"admin".equals(USERNAME)) { PageData pd = datajurService.getDEPARTMENT_IDS(USERNAME); - DEPARTMENT_IDS = null == pd?"无权":pd.getString("DEPARTMENT_IDS"); - DEPARTMENT_ID = null == pd?"无权":pd.getString("DEPARTMENT_ID"); + DEPARTMENT_IDS = null == pd ? "无权" : pd.getString("DEPARTMENT_IDS"); + DEPARTMENT_ID = null == pd ? "无权" : pd.getString("DEPARTMENT_ID"); } - session.setAttribute(Const.DEPARTMENT_IDS, DEPARTMENT_IDS); //把用户的组织机构权限集合放到session里面 - session.setAttribute(Const.DEPARTMENT_ID, DEPARTMENT_ID); //把用户的最高组织机构权限放到session里面 + session.setAttribute(Const.DEPARTMENT_IDS, DEPARTMENT_IDS); // 把用户的组织机构权限集合放到session里面 + session.setAttribute(Const.DEPARTMENT_ID, DEPARTMENT_ID); // 把用户的最高组织机构权限放到session里面 } - + /** * 进入tab标签 + * * @return */ - @RequestMapping(value="/tab") - public String tab(){ + @RequestMapping(value = "/tab") + public String tab() { return "system/index/tab"; } - + /** * 进入首页后的默认页面 + * * @return - * @throws Exception + * @throws Exception */ - @RequestMapping(value="/login_default") - public ModelAndView defaultPage() throws Exception{ + @RequestMapping(value = "/login_default") + public ModelAndView defaultPage() throws Exception { ModelAndView mv = this.getModelAndView(); PageData pd = new PageData(); - pd.put("userCount", Integer.parseInt(userService.getUserCount("").get("userCount").toString())-1); //系统用户数 - pd.put("appUserCount", Integer.parseInt(appuserService.getAppUserCount("").get("appUserCount").toString())); //会员数 - mv.addObject("pd",pd); + pd.put("userCount", + Integer.parseInt(userService.getUserCount("").get("userCount") + .toString()) - 1); // 系统用户数 + pd.put("appUserCount", + Integer.parseInt(appuserService.getAppUserCount("") + .get("appUserCount").toString())); // 会员数 + mv.addObject("pd", pd); mv.setViewName("system/index/default"); return mv; } - + /** * 用户注销 + * * @param session * @return - * @throws Exception + * @throws Exception */ - @RequestMapping(value="/logout") - public ModelAndView logout() throws Exception{ - String USERNAME = Jurisdiction.getUsername(); //当前登录的用户名 - logBefore(logger, USERNAME+"退出系统"); + @RequestMapping(value = "/logout") + public ModelAndView logout() throws Exception { + String USERNAME = Jurisdiction.getUsername(); // 当前登录的用户名 + logBefore(logger, USERNAME + "退出系统"); FHLOG.save(USERNAME, "退出"); ModelAndView mv = this.getModelAndView(); PageData pd = new PageData(); - this.removeSession(USERNAME);//请缓存 - //shiro销毁登录 - Subject subject = SecurityUtils.getSubject(); + this.removeSession(USERNAME);// 请缓存 + // shiro销毁登录 + Subject subject = SecurityUtils.getSubject(); subject.logout(); pd = this.getPageData(); pd.put("msg", pd.getString("msg")); - pd = this.setLoginPd(pd); //设置登录页面的配置参数 + pd = this.setLoginPd(pd); // 设置登录页面的配置参数 mv.setViewName("system/index/login"); - mv.addObject("pd",pd); + mv.addObject("pd", pd); return mv; } - + /** * 清理session */ - public void removeSession(String USERNAME){ - Session session = Jurisdiction.getSession(); //以下清除session缓存 + public void removeSession(String USERNAME) { + Session session = Jurisdiction.getSession(); // 以下清除session缓存 session.removeAttribute(Const.SESSION_USER); session.removeAttribute(USERNAME + Const.SESSION_ROLE_RIGHTS); session.removeAttribute(USERNAME + Const.SESSION_allmenuList); @@ -420,91 +461,99 @@ public class LoginController extends BaseController { session.removeAttribute("DEPARTMENT_IDS"); session.removeAttribute("DEPARTMENT_ID"); } - - /**设置登录页面的配置参数 + + /** + * 设置登录页面的配置参数 + * * @param pd * @return */ - public PageData setLoginPd(PageData pd){ - pd.put("SYSNAME", Tools.readTxtFile(Const.SYSNAME)); //读取系统名称 - String strLOGINEDIT = Tools.readTxtFile(Const.LOGINEDIT); //读取登录页面配置 - if(null != strLOGINEDIT && !"".equals(strLOGINEDIT)){ + public PageData setLoginPd(PageData pd) { + pd.put("SYSNAME", Tools.readTxtFile(Const.SYSNAME)); // 读取系统名称 + String strLOGINEDIT = Tools.readTxtFile(Const.LOGINEDIT); // 读取登录页面配置 + if (null != strLOGINEDIT && !"".equals(strLOGINEDIT)) { String strLo[] = strLOGINEDIT.split(",fh,"); - if(strLo.length == 2){ + if (strLo.length == 2) { pd.put("isZhuce", strLo[0]); pd.put("isMusic", strLo[1]); } } try { - List listImg = loginimgService.listAll(pd); //登录背景图片 + List listImg = loginimgService.listAll(pd); // 登录背景图片 pd.put("listImg", listImg); } catch (Exception e) { e.printStackTrace(); } return pd; } - - /**获取用户权限 + + /** + * 获取用户权限 + * * @param session * @return */ - public Map getUQX(String USERNAME){ + public Map getUQX(String USERNAME) { PageData pd = new PageData(); Map map = new HashMap(); try { pd.put(Const.SESSION_USERNAME, USERNAME); - + PageData userpd = new PageData(); - userpd = userService.findByUsername(pd); //通过用户名获取用户信息 + userpd = userService.findByUsername(pd); // 通过用户名获取用户信息 String ROLE_ID = userpd.get("ROLE_ID").toString(); String ROLE_IDS = userpd.getString("ROLE_IDS"); - pd.put("ROLE_ID", ROLE_ID); //获取角色ID - pd = roleService.findObjectById(pd); //获取角色信息 - map.put("adds", pd.getString("ADD_QX")); //增 - map.put("dels", pd.getString("DEL_QX")); //删 - map.put("edits", pd.getString("EDIT_QX")); //改 - map.put("chas", pd.getString("CHA_QX")); //查 + pd.put("ROLE_ID", ROLE_ID); // 获取角色ID + pd = roleService.findObjectById(pd); // 获取角色信息 + map.put("adds", pd.getString("ADD_QX")); // 增 + map.put("dels", pd.getString("DEL_QX")); // 删 + map.put("edits", pd.getString("EDIT_QX")); // 改 + map.put("chas", pd.getString("CHA_QX")); // 查 List buttonQXnamelist = new ArrayList(); - if("admin".equals(USERNAME)){ - buttonQXnamelist = fhbuttonService.listAll(pd); //admin用户拥有所有按钮权限 - }else{ - if(Tools.notEmpty(ROLE_IDS)){//(主副职角色综合按钮权限) + if ("admin".equals(USERNAME)) { + buttonQXnamelist = fhbuttonService.listAll(pd); // admin用户拥有所有按钮权限 + } else { + if (Tools.notEmpty(ROLE_IDS)) {// (主副职角色综合按钮权限) ROLE_IDS = ROLE_IDS + ROLE_ID; String arryROLE_ID[] = ROLE_IDS.split(",fh,"); - buttonQXnamelist = buttonrightsService.listAllBrAndQxnameByZF(arryROLE_ID); - }else{ //(主职角色按钮权限) - buttonQXnamelist = buttonrightsService.listAllBrAndQxname(pd); //此角色拥有的按钮权限标识列表 + buttonQXnamelist = buttonrightsService + .listAllBrAndQxnameByZF(arryROLE_ID); + } else { // (主职角色按钮权限) + buttonQXnamelist = buttonrightsService + .listAllBrAndQxname(pd); // 此角色拥有的按钮权限标识列表 } } - for(int i=0;i> getUQX2(String USERNAME){ + public Map> getUQX2(String USERNAME) { PageData pd = new PageData(); Map> maps = new HashMap>(); try { pd.put(Const.SESSION_USERNAME, USERNAME); PageData userpd = new PageData(); - userpd = userService.findByUsername(pd); //通过用户名获取用户信息 + userpd = userService.findByUsername(pd); // 通过用户名获取用户信息 String ROLE_IDS = userpd.getString("ROLE_IDS"); - if(Tools.notEmpty(ROLE_IDS)){ + if (Tools.notEmpty(ROLE_IDS)) { String arryROLE_ID[] = ROLE_IDS.split(",fh,"); PageData rolePd = new PageData(); List addsList = new ArrayList(); List delsList = new ArrayList(); List editsList = new ArrayList(); List chasList = new ArrayList(); - for(int i=0;i getTeacherClassInfo(PageData pd) throws Exception; + + public List getTeacherSubjectInfo(PageData pd) throws Exception; + + public List getClassStudent(PageData pd) throws Exception; + + public List getTestPaperInfo(PageData pd) throws Exception; + + +} diff --git a/src/com/fh/service/api/impl/V1Service.java b/src/com/fh/service/api/impl/V1Service.java new file mode 100644 index 0000000..f6b8c8c --- /dev/null +++ b/src/com/fh/service/api/impl/V1Service.java @@ -0,0 +1,39 @@ +package com.fh.service.api.impl; + +import java.util.List; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Service; + +import com.fh.dao.DaoSupport; +import com.fh.service.api.V1Manager; +import com.fh.util.PageData; + +@Service("v1Service") +public class V1Service implements V1Manager { + + @Resource(name = "daoSupport") + private DaoSupport dao; + + @Override + public List getTeacherClassInfo(PageData pd) throws Exception { + return (List)dao.findForList("V1Mapper.getTeacherClassInfo", pd); + } + + @Override + public List getTeacherSubjectInfo(PageData pd) throws Exception { + return (List)dao.findForList("V1Mapper.getTeacherSubjectInfo", pd); + } + + @Override + public List getClassStudent(PageData pd) throws Exception { + return (List)dao.findForList("V1Mapper.getClassStudent", pd); + } + + @Override + public List getTestPaperInfo(PageData pd) throws Exception { + return (List)dao.findForList("V1Mapper.getTestPaperInfo", pd); + } + +} diff --git a/src/com/fh/service/sunvote/classbasetation/ClassBasetationManager.java b/src/com/fh/service/sunvote/classbasetation/ClassBasetationManager.java new file mode 100644 index 0000000..b6dba96 --- /dev/null +++ b/src/com/fh/service/sunvote/classbasetation/ClassBasetationManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.classbasetation; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 班级教室基站接口 + * 创建时间:2018-05-16 + * @version + */ +public interface ClassBasetationManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/classbasetation/impl/ClassBasetationService.java b/src/com/fh/service/sunvote/classbasetation/impl/ClassBasetationService.java new file mode 100644 index 0000000..b63171c --- /dev/null +++ b/src/com/fh/service/sunvote/classbasetation/impl/ClassBasetationService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.classbasetation.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.classbasetation.ClassBasetationManager; + +/** + * 说明: 班级教室基站 + * 创建时间:2018-05-16 + * @version + */ +@Service("classbasetationService") +public class ClassBasetationService implements ClassBasetationManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("ClassBasetationMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("ClassBasetationMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("ClassBasetationMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("ClassBasetationMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("ClassBasetationMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("ClassBasetationMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("ClassBasetationMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/classroster/ClassRosterManager.java b/src/com/fh/service/sunvote/classroster/ClassRosterManager.java new file mode 100644 index 0000000..1babf5b --- /dev/null +++ b/src/com/fh/service/sunvote/classroster/ClassRosterManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.classroster; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 班级名册接口 + * 创建时间:2018-05-16 + * @version + */ +public interface ClassRosterManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/classroster/impl/ClassRosterService.java b/src/com/fh/service/sunvote/classroster/impl/ClassRosterService.java new file mode 100644 index 0000000..72e0f4a --- /dev/null +++ b/src/com/fh/service/sunvote/classroster/impl/ClassRosterService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.classroster.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.classroster.ClassRosterManager; + +/** + * 说明: 班级名册 + * 创建时间:2018-05-16 + * @version + */ +@Service("classrosterService") +public class ClassRosterService implements ClassRosterManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("ClassRosterMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("ClassRosterMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("ClassRosterMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("ClassRosterMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("ClassRosterMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("ClassRosterMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("ClassRosterMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/keypadcheck/KeypadCheckManager.java b/src/com/fh/service/sunvote/keypadcheck/KeypadCheckManager.java new file mode 100644 index 0000000..a3400e4 --- /dev/null +++ b/src/com/fh/service/sunvote/keypadcheck/KeypadCheckManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.keypadcheck; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 键盘检测表接口 + * 创建时间:2018-05-16 + * @version + */ +public interface KeypadCheckManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/keypadcheck/impl/KeypadCheckService.java b/src/com/fh/service/sunvote/keypadcheck/impl/KeypadCheckService.java new file mode 100644 index 0000000..1d3abe5 --- /dev/null +++ b/src/com/fh/service/sunvote/keypadcheck/impl/KeypadCheckService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.keypadcheck.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.keypadcheck.KeypadCheckManager; + +/** + * 说明: 键盘检测表 + * 创建时间:2018-05-16 + * @version + */ +@Service("keypadcheckService") +public class KeypadCheckService implements KeypadCheckManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("KeypadCheckMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("KeypadCheckMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("KeypadCheckMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("KeypadCheckMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("KeypadCheckMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("KeypadCheckMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("KeypadCheckMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/knowledge/KnowledgeManager.java b/src/com/fh/service/sunvote/knowledge/KnowledgeManager.java new file mode 100644 index 0000000..f4e5042 --- /dev/null +++ b/src/com/fh/service/sunvote/knowledge/KnowledgeManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.knowledge; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 知识点接口 + * 创建时间:2018-05-17 + * @version + */ +public interface KnowledgeManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/knowledge/impl/KnowledgeService.java b/src/com/fh/service/sunvote/knowledge/impl/KnowledgeService.java new file mode 100644 index 0000000..d3a9212 --- /dev/null +++ b/src/com/fh/service/sunvote/knowledge/impl/KnowledgeService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.knowledge.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.knowledge.KnowledgeManager; + +/** + * 说明: 知识点 + * 创建时间:2018-05-17 + * @version + */ +@Service("knowledgeService") +public class KnowledgeService implements KnowledgeManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("KnowledgeMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("KnowledgeMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("KnowledgeMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("KnowledgeMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("KnowledgeMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("KnowledgeMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("KnowledgeMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/knowledgechapter/KnowledgeChapterManager.java b/src/com/fh/service/sunvote/knowledgechapter/KnowledgeChapterManager.java new file mode 100644 index 0000000..f3ed542 --- /dev/null +++ b/src/com/fh/service/sunvote/knowledgechapter/KnowledgeChapterManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.knowledgechapter; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 知识点章节表接口 + * 创建时间:2018-05-17 + * @version + */ +public interface KnowledgeChapterManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/knowledgechapter/impl/KnowledgeChapterService.java b/src/com/fh/service/sunvote/knowledgechapter/impl/KnowledgeChapterService.java new file mode 100644 index 0000000..7235fe8 --- /dev/null +++ b/src/com/fh/service/sunvote/knowledgechapter/impl/KnowledgeChapterService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.knowledgechapter.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.knowledgechapter.KnowledgeChapterManager; + +/** + * 说明: 知识点章节表 + * 创建时间:2018-05-17 + * @version + */ +@Service("knowledgechapterService") +public class KnowledgeChapterService implements KnowledgeChapterManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("KnowledgeChapterMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("KnowledgeChapterMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("KnowledgeChapterMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("KnowledgeChapterMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("KnowledgeChapterMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("KnowledgeChapterMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("KnowledgeChapterMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/paper/PaperManager.java b/src/com/fh/service/sunvote/paper/PaperManager.java new file mode 100644 index 0000000..0781c71 --- /dev/null +++ b/src/com/fh/service/sunvote/paper/PaperManager.java @@ -0,0 +1,66 @@ +package com.fh.service.sunvote.paper; + +import java.util.List; + +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 试卷接口 + * 创建时间:2018-05-17 + * @version + */ +public interface PaperManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + + /** + * + * @param pd + * @return + * @throws Exception + */ + public List listAllByType(Page pd)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/paper/impl/PaperService.java b/src/com/fh/service/sunvote/paper/impl/PaperService.java new file mode 100644 index 0000000..e367815 --- /dev/null +++ b/src/com/fh/service/sunvote/paper/impl/PaperService.java @@ -0,0 +1,90 @@ +package com.fh.service.sunvote.paper.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.paper.PaperManager; + +/** + * 说明: 试卷 + * 创建时间:2018-05-17 + * @version + */ +@Service("paperService") +public class PaperService implements PaperManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("PaperMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("PaperMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("PaperMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("PaperMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("PaperMapper.listAll", pd); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAllByType(Page pd)throws Exception{ + return (List)dao.findForList("PaperMapper.listAllByType", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("PaperMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("PaperMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/paperclassteacher/PaperClassTeacherManager.java b/src/com/fh/service/sunvote/paperclassteacher/PaperClassTeacherManager.java new file mode 100644 index 0000000..4c14eb8 --- /dev/null +++ b/src/com/fh/service/sunvote/paperclassteacher/PaperClassTeacherManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.paperclassteacher; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 试卷班级教师接口 + * 创建时间:2018-05-17 + * @version + */ +public interface PaperClassTeacherManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/paperclassteacher/impl/PaperClassTeacherService.java b/src/com/fh/service/sunvote/paperclassteacher/impl/PaperClassTeacherService.java new file mode 100644 index 0000000..893bbdc --- /dev/null +++ b/src/com/fh/service/sunvote/paperclassteacher/impl/PaperClassTeacherService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.paperclassteacher.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.paperclassteacher.PaperClassTeacherManager; + +/** + * 说明: 试卷班级教师 + * 创建时间:2018-05-17 + * @version + */ +@Service("paperclassteacherService") +public class PaperClassTeacherService implements PaperClassTeacherManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("PaperClassTeacherMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("PaperClassTeacherMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("PaperClassTeacherMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("PaperClassTeacherMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("PaperClassTeacherMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("PaperClassTeacherMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("PaperClassTeacherMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/paperquestion/PaperQuestionManager.java b/src/com/fh/service/sunvote/paperquestion/PaperQuestionManager.java new file mode 100644 index 0000000..1b5ce46 --- /dev/null +++ b/src/com/fh/service/sunvote/paperquestion/PaperQuestionManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.paperquestion; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 试卷题目表接口 + * 创建时间:2018-05-17 + * @version + */ +public interface PaperQuestionManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/paperquestion/impl/PaperQuestionService.java b/src/com/fh/service/sunvote/paperquestion/impl/PaperQuestionService.java new file mode 100644 index 0000000..33f86ab --- /dev/null +++ b/src/com/fh/service/sunvote/paperquestion/impl/PaperQuestionService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.paperquestion.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.paperquestion.PaperQuestionManager; + +/** + * 说明: 试卷题目表 + * 创建时间:2018-05-17 + * @version + */ +@Service("paperquestionService") +public class PaperQuestionService implements PaperQuestionManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("PaperQuestionMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("PaperQuestionMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("PaperQuestionMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("PaperQuestionMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("PaperQuestionMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("PaperQuestionMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("PaperQuestionMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/papertype/impl/PaperTypeService.java b/src/com/fh/service/sunvote/papertype/impl/PaperTypeService.java index ab0402d..170567f 100644 --- a/src/com/fh/service/sunvote/papertype/impl/PaperTypeService.java +++ b/src/com/fh/service/sunvote/papertype/impl/PaperTypeService.java @@ -10,7 +10,6 @@ import com.fh.service.sunvote.papertype.PaperTypeManager; /** * 说明: 试卷类型管理 - * 创建人:FH Q313596790 * 创建时间:2018-04-20 * @version */ diff --git a/src/com/fh/service/sunvote/question/QuestionManager.java b/src/com/fh/service/sunvote/question/QuestionManager.java new file mode 100644 index 0000000..52319b6 --- /dev/null +++ b/src/com/fh/service/sunvote/question/QuestionManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.question; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 题目表接口 + * 创建时间:2018-05-16 + * @version + */ +public interface QuestionManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/question/impl/QuestionService.java b/src/com/fh/service/sunvote/question/impl/QuestionService.java new file mode 100644 index 0000000..8774041 --- /dev/null +++ b/src/com/fh/service/sunvote/question/impl/QuestionService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.question.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.question.QuestionManager; + +/** + * 说明: 题目表 + * 创建时间:2018-05-16 + * @version + */ +@Service("questionService") +public class QuestionService implements QuestionManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("QuestionMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("QuestionMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("QuestionMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("QuestionMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("QuestionMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("QuestionMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("QuestionMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/questiontype/QuestionTypeManager.java b/src/com/fh/service/sunvote/questiontype/QuestionTypeManager.java new file mode 100644 index 0000000..df2c246 --- /dev/null +++ b/src/com/fh/service/sunvote/questiontype/QuestionTypeManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.questiontype; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 题目类型表接口 + * 创建时间:2018-05-16 + * @version + */ +public interface QuestionTypeManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/questiontype/impl/QuestionTypeService.java b/src/com/fh/service/sunvote/questiontype/impl/QuestionTypeService.java new file mode 100644 index 0000000..4982732 --- /dev/null +++ b/src/com/fh/service/sunvote/questiontype/impl/QuestionTypeService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.questiontype.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.questiontype.QuestionTypeManager; + +/** + * 说明: 题目类型表 + * 创建时间:2018-05-16 + * @version + */ +@Service("questiontypeService") +public class QuestionTypeService implements QuestionTypeManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("QuestionTypeMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("QuestionTypeMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("QuestionTypeMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("QuestionTypeMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("QuestionTypeMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("QuestionTypeMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("QuestionTypeMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/school/SchoolManager.java b/src/com/fh/service/sunvote/school/SchoolManager.java index ae2a2ab..e3339a7 100644 --- a/src/com/fh/service/sunvote/school/SchoolManager.java +++ b/src/com/fh/service/sunvote/school/SchoolManager.java @@ -6,7 +6,6 @@ import com.fh.util.PageData; /** * 说明: 学校接口 - * 创建人:FH Q313596790 * 创建时间:2018-04-18 * @version */ diff --git a/src/com/fh/service/sunvote/school/impl/SchoolService.java b/src/com/fh/service/sunvote/school/impl/SchoolService.java index 95a2670..86a1c6b 100644 --- a/src/com/fh/service/sunvote/school/impl/SchoolService.java +++ b/src/com/fh/service/sunvote/school/impl/SchoolService.java @@ -10,7 +10,6 @@ import com.fh.service.sunvote.school.SchoolManager; /** * 说明: 学校 - * 创建人:FH Q313596790 * 创建时间:2018-04-18 * @version */ diff --git a/src/com/fh/service/sunvote/schoolgradesubject/SchoolGradeSubjectManager.java b/src/com/fh/service/sunvote/schoolgradesubject/SchoolGradeSubjectManager.java new file mode 100644 index 0000000..89c25e0 --- /dev/null +++ b/src/com/fh/service/sunvote/schoolgradesubject/SchoolGradeSubjectManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.schoolgradesubject; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 学校年级科目表接口 + * 创建时间:2018-05-15 + * @version + */ +public interface SchoolGradeSubjectManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/schoolgradesubject/impl/SchoolGradeSubjectService.java b/src/com/fh/service/sunvote/schoolgradesubject/impl/SchoolGradeSubjectService.java new file mode 100644 index 0000000..98f8218 --- /dev/null +++ b/src/com/fh/service/sunvote/schoolgradesubject/impl/SchoolGradeSubjectService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.schoolgradesubject.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.schoolgradesubject.SchoolGradeSubjectManager; + +/** + * 说明: 学校年级科目表 + * 创建时间:2018-05-15 + * @version + */ +@Service("schoolgradesubjectService") +public class SchoolGradeSubjectService implements SchoolGradeSubjectManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("SchoolGradeSubjectMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("SchoolGradeSubjectMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("SchoolGradeSubjectMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("SchoolGradeSubjectMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("SchoolGradeSubjectMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("SchoolGradeSubjectMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("SchoolGradeSubjectMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/teacher/TeacherManager.java b/src/com/fh/service/sunvote/teacher/TeacherManager.java index b60727e..c426ba3 100644 --- a/src/com/fh/service/sunvote/teacher/TeacherManager.java +++ b/src/com/fh/service/sunvote/teacher/TeacherManager.java @@ -48,6 +48,12 @@ public interface TeacherManager{ */ public PageData findById(PageData pd)throws Exception; + /**通过username&password获取数据 + * @param pd + * @throws Exception + */ + public PageData getUserInfo(PageData pd)throws Exception; + /**批量删除 * @param ArrayDATA_IDS * @throws Exception diff --git a/src/com/fh/service/sunvote/teacher/impl/TeacherService.java b/src/com/fh/service/sunvote/teacher/impl/TeacherService.java index 30a3eaa..25e2638 100644 --- a/src/com/fh/service/sunvote/teacher/impl/TeacherService.java +++ b/src/com/fh/service/sunvote/teacher/impl/TeacherService.java @@ -1,8 +1,11 @@ package com.fh.service.sunvote.teacher.impl; import java.util.List; + import javax.annotation.Resource; + import org.springframework.stereotype.Service; + import com.fh.dao.DaoSupport; import com.fh.entity.Page; import com.fh.util.PageData; @@ -70,6 +73,14 @@ public class TeacherService implements TeacherManager{ return (PageData)dao.findForObject("TeacherMapper.findById", pd); } + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData getUserInfo(PageData pd)throws Exception{ + return (PageData)dao.findForObject("TeacherMapper.getUserInfo", pd); + } + /**批量删除 * @param ArrayDATA_IDS * @throws Exception diff --git a/src/com/fh/service/sunvote/term/TermManager.java b/src/com/fh/service/sunvote/term/TermManager.java new file mode 100644 index 0000000..f007bcd --- /dev/null +++ b/src/com/fh/service/sunvote/term/TermManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.term; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 学期名称接口 + * 创建时间:2018-05-16 + * @version + */ +public interface TermManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/term/impl/TermService.java b/src/com/fh/service/sunvote/term/impl/TermService.java new file mode 100644 index 0000000..8062c28 --- /dev/null +++ b/src/com/fh/service/sunvote/term/impl/TermService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.term.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.term.TermManager; + +/** + * 说明: 学期名称 + * 创建时间:2018-05-16 + * @version + */ +@Service("termService") +public class TermService implements TermManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("TermMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("TermMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("TermMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("TermMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("TermMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("TermMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("TermMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/testpaper/TestPaperManager.java b/src/com/fh/service/sunvote/testpaper/TestPaperManager.java new file mode 100644 index 0000000..453b19b --- /dev/null +++ b/src/com/fh/service/sunvote/testpaper/TestPaperManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.testpaper; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 测验接口 + * 创建时间:2018-05-17 + * @version + */ +public interface TestPaperManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/testpaper/impl/TestPaperService.java b/src/com/fh/service/sunvote/testpaper/impl/TestPaperService.java new file mode 100644 index 0000000..b1241dd --- /dev/null +++ b/src/com/fh/service/sunvote/testpaper/impl/TestPaperService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.testpaper.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.testpaper.TestPaperManager; + +/** + * 说明: 测验 + * 创建时间:2018-05-17 + * @version + */ +@Service("testpaperService") +public class TestPaperService implements TestPaperManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("TestPaperMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("TestPaperMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("TestPaperMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("TestPaperMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("TestPaperMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("TestPaperMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("TestPaperMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/testpaperinfo/TestPaperInfoManager.java b/src/com/fh/service/sunvote/testpaperinfo/TestPaperInfoManager.java new file mode 100644 index 0000000..9031aff --- /dev/null +++ b/src/com/fh/service/sunvote/testpaperinfo/TestPaperInfoManager.java @@ -0,0 +1,57 @@ +package com.fh.service.sunvote.testpaperinfo; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 测验明细表接口 + * 创建时间:2018-05-17 + * @version + */ +public interface TestPaperInfoManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/testpaperinfo/impl/TestPaperInfoService.java b/src/com/fh/service/sunvote/testpaperinfo/impl/TestPaperInfoService.java new file mode 100644 index 0000000..937715d --- /dev/null +++ b/src/com/fh/service/sunvote/testpaperinfo/impl/TestPaperInfoService.java @@ -0,0 +1,81 @@ +package com.fh.service.sunvote.testpaperinfo.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.testpaperinfo.TestPaperInfoManager; + +/** + * 说明: 测验明细表 + * 创建时间:2018-05-17 + * @version + */ +@Service("testpaperinfoService") +public class TestPaperInfoService implements TestPaperInfoManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("TestPaperInfoMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("TestPaperInfoMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("TestPaperInfoMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("TestPaperInfoMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("TestPaperInfoMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("TestPaperInfoMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("TestPaperInfoMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/轻松考-网络版-概要设计 .doc b/轻松考-网络版-概要设计 .doc index 347724c..44426c0 100644 Binary files a/轻松考-网络版-概要设计 .doc and b/轻松考-网络版-概要设计 .doc differ -- libgit2 0.21.4