From 23fcaf9f30f1094dc87ea211c13f5873507ac388 Mon Sep 17 00:00:00 2001 From: tuyp Date: Fri, 19 May 2023 13:57:43 +0800 Subject: [PATCH] 项目修复 --- src/main/java/com/meishu/MeishuApplication.java | 39 --------------------------------------- src/main/java/com/meishu/common/Code.java | 45 --------------------------------------------- src/main/java/com/meishu/common/ResponseData.java | 54 ------------------------------------------------------ src/main/java/com/meishu/common/ResponseVO.java | 21 --------------------- src/main/java/com/meishu/common/configure/AliyunSmsProperties.java | 19 ------------------- src/main/java/com/meishu/common/configure/MybatisPlusConfig.java | 54 ------------------------------------------------------ src/main/java/com/meishu/common/configure/RemoteProperties.java | 36 ------------------------------------ src/main/java/com/meishu/common/configure/RestTemplateConfig.java | 31 ------------------------------- src/main/java/com/meishu/common/configure/SwaggerConfig.java | 31 ------------------------------- src/main/java/com/meishu/common/configure/VODConfig.java | 25 ------------------------- src/main/java/com/meishu/common/configure/WebConfig.java | 61 ------------------------------------------------------------- src/main/java/com/meishu/common/configure/WebLogAspect.java | 56 -------------------------------------------------------- src/main/java/com/meishu/common/configure/WechatConfig.java | 24 ------------------------ src/main/java/com/meishu/common/constant/AttendanceConstant.java | 29 ----------------------------- src/main/java/com/meishu/common/constant/Code.java | 33 --------------------------------- src/main/java/com/meishu/common/constant/WxConstant.java | 35 ----------------------------------- src/main/java/com/meishu/common/exception/GlobalExceptionHandler.java | 118 ---------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/common/exception/HttpException.java | 45 --------------------------------------------- src/main/java/com/meishu/common/handler/MetaHandler.java | 26 -------------------------- src/main/java/com/meishu/common/interceptor/AuthenticationInterceptor.java | 85 ------------------------------------------------------------------------------------- src/main/java/com/meishu/common/interceptor/LoginRequired.java | 20 -------------------- src/main/java/com/meishu/common/schedule/ChangeStudentStatus.java | 20 -------------------- src/main/java/com/meishu/controller/AccessTokenController.java | 45 --------------------------------------------- src/main/java/com/meishu/controller/AdministerController.java | 109 ------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/AdministerDepartmentMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/AdministerPermissionController.java | 22 ---------------------- src/main/java/com/meishu/controller/AdministerSubjectMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/AnsweringQuestionController.java | 72 ------------------------------------------------------------------------ src/main/java/com/meishu/controller/ClassSubjectTaskController.java | 165 --------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/ClassesDictController.java | 97 ------------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/ClassesDictHistoryController.java | 22 ---------------------- src/main/java/com/meishu/controller/ClassesUserMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/CourseAdministerMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/CourseStudentStatusHistoryController.java | 22 ---------------------- src/main/java/com/meishu/controller/CourseTreeExerciseStudentResultController.java | 22 ---------------------- src/main/java/com/meishu/controller/CourseTreeVodStudentResultController.java | 22 ---------------------- src/main/java/com/meishu/controller/DepartmentDictController.java | 87 --------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/ExerciseCourseTreeMappingController.java | 48 ------------------------------------------------ src/main/java/com/meishu/controller/ExerciseDictController.java | 121 ------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/ExerciseDoneHistoryController.java | 22 ---------------------- src/main/java/com/meishu/controller/ExerciseExpandMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/ExerciseRelatedMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/ExerciseTreeMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/ExerciseUserInfoController.java | 22 ---------------------- src/main/java/com/meishu/controller/KnowledgeSubjectDictController.java | 93 --------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/LaboratoryAttendanceMappingController.java | 20 -------------------- src/main/java/com/meishu/controller/LaboratoryDictController.java | 74 -------------------------------------------------------------------------- src/main/java/com/meishu/controller/LaboratoryDictMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/LaboratorySessionMappingController.java | 101 ----------------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/LaboratoryUserMappingController.java | 74 -------------------------------------------------------------------------- src/main/java/com/meishu/controller/PermissionsDictController.java | 24 ------------------------ src/main/java/com/meishu/controller/RoleAdministerMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/RoleDictController.java | 83 ----------------------------------------------------------------------------------- src/main/java/com/meishu/controller/RolePermissionMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/SessionsDictController.java | 79 ------------------------------------------------------------------------------- src/main/java/com/meishu/controller/SignInRecordController.java | 42 ------------------------------------------ src/main/java/com/meishu/controller/SmsCodeController.java | 36 ------------------------------------ src/main/java/com/meishu/controller/StudentController.java | 88 ---------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/StuentCourseMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/SubjectDictController.java | 31 ------------------------------- src/main/java/com/meishu/controller/SubjectDimensionDictController.java | 69 --------------------------------------------------------------------- src/main/java/com/meishu/controller/SubjectDimensionStarDictController.java | 65 ----------------------------------------------------------------- src/main/java/com/meishu/controller/SubjectRuleController.java | 72 ------------------------------------------------------------------------ src/main/java/com/meishu/controller/SubjectSemesterController.java | 79 ------------------------------------------------------------------------------- src/main/java/com/meishu/controller/SubjectStarTreeMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/SubjectStudentAnswerStarController.java | 22 ---------------------- src/main/java/com/meishu/controller/SubjectTestDictController.java | 74 -------------------------------------------------------------------------- src/main/java/com/meishu/controller/SubjectTestGradeExampleMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/SubjectTestGradeStarMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/SubjectTestPublishGradeController.java | 78 ------------------------------------------------------------------------------ src/main/java/com/meishu/controller/SubjectTestPublishHistoryController.java | 90 ------------------------------------------------------------------------------------------ src/main/java/com/meishu/controller/SubjectTestStudentAnswerController.java | 22 ---------------------- src/main/java/com/meishu/controller/SubjectTreeController.java | 78 ------------------------------------------------------------------------------ src/main/java/com/meishu/controller/TaskCompletionStatusController.java | 22 ---------------------- src/main/java/com/meishu/controller/TaskContentController.java | 22 ---------------------- src/main/java/com/meishu/controller/TaskContentDoneInfoController.java | 22 ---------------------- src/main/java/com/meishu/controller/TaskDoneHistoryController.java | 22 ---------------------- src/main/java/com/meishu/controller/UserRoleController.java | 91 ------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/UserSubjectMappingController.java | 22 ---------------------- src/main/java/com/meishu/controller/UserSubjectPermissionDictController.java | 22 ---------------------- src/main/java/com/meishu/controller/UuidHistoryController.java | 22 ---------------------- src/main/java/com/meishu/controller/VodDictController.java | 147 --------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/controller/VodPlayHistoryController.java | 22 ---------------------- src/main/java/com/meishu/controller/VodSubjectTreeMappingController.java | 52 ---------------------------------------------------- src/main/java/com/meishu/controller/WechatController.java | 138 ------------------------------------------------------------------------------------------------------------------------------------------ src/main/java/com/meishu/controller/WrittenHomeworkController.java | 22 ---------------------- src/main/java/com/meishu/dto/administer/AddAdministerDTO.java | 18 ------------------ src/main/java/com/meishu/dto/administer/ChangeStatusDTO.java | 14 -------------- src/main/java/com/meishu/dto/administer/GetClassesRequestVO.java | 20 -------------------- src/main/java/com/meishu/dto/administer/PublishExpandingVO.java | 19 ------------------- src/main/java/com/meishu/dto/administer/PublishHomeworkVO.java | 25 ------------------------- src/main/java/com/meishu/dto/administer/PublishTasksDTO.java | 38 -------------------------------------- src/main/java/com/meishu/dto/administer/PushMsgPO.java | 24 ------------------------ src/main/java/com/meishu/dto/administer/UpdateAdministerDTO.java | 18 ------------------ src/main/java/com/meishu/dto/campus/BatchUpdateStatusDTO.java | 14 -------------- src/main/java/com/meishu/dto/campus/CampusStudentDTO.java | 16 ---------------- src/main/java/com/meishu/dto/chapter/AddTreeToChapterDTO.java | 14 -------------- src/main/java/com/meishu/dto/chapter/ChapterExerciseVO.java | 21 --------------------- src/main/java/com/meishu/dto/chapter/ChapterVodsVO.java | 25 ------------------------- src/main/java/com/meishu/dto/chapter/GetChapterCourseDetailVO.java | 27 --------------------------- src/main/java/com/meishu/dto/chapter/StudentChapterDTO.java | 14 -------------- src/main/java/com/meishu/dto/chapter/UpdateChapterOrderDTO.java | 12 ------------ src/main/java/com/meishu/dto/classes/AddClassDTO.java | 13 ------------- src/main/java/com/meishu/dto/classes/AddSubjectTeacherDTO.java | 14 -------------- src/main/java/com/meishu/dto/classes/AddSubjectTeacherMappingDTO.java | 15 --------------- src/main/java/com/meishu/dto/classes/BatchAddStudentToClassDTO.java | 14 -------------- src/main/java/com/meishu/dto/classes/BatchUpGradeDTO.java | 15 --------------- src/main/java/com/meishu/dto/classes/GetClassStudentsDTO.java | 16 ---------------- src/main/java/com/meishu/dto/classes/GetClassesDTO.java | 20 -------------------- src/main/java/com/meishu/dto/classes/QueryNoClassStudentsDTO.java | 14 -------------- src/main/java/com/meishu/dto/course/AddCourseDTO.java | 13 ------------- src/main/java/com/meishu/dto/course/AddCourseTreeNodeDTO.java | 16 ---------------- src/main/java/com/meishu/dto/course/AddStudentAuthenDTO.java | 20 -------------------- src/main/java/com/meishu/dto/course/BatchVodOprDTO.java | 14 -------------- src/main/java/com/meishu/dto/course/CourseProgressDTO.java | 18 ------------------ src/main/java/com/meishu/dto/course/CourseVodDTO.java | 12 ------------ src/main/java/com/meishu/dto/course/GetAllUnAuthenStudentsDTO.java | 18 ------------------ src/main/java/com/meishu/dto/course/GetCourseStudentsDTO.java | 16 ---------------- src/main/java/com/meishu/dto/course/GetExercisesByTreeDTO.java | 14 -------------- src/main/java/com/meishu/dto/department/BatchOprDTO.java | 16 ---------------- src/main/java/com/meishu/dto/department/GetAllDepartmentVO.java | 38 -------------------------------------- src/main/java/com/meishu/dto/department/GetTeachersDTO.java | 20 -------------------- src/main/java/com/meishu/dto/dimension/AddStarDTO.java | 13 ------------- src/main/java/com/meishu/dto/dimension/DeleteStarByIdDTO.java | 12 ------------ src/main/java/com/meishu/dto/exercise/AddExerciseDTO.java | 13 ------------- src/main/java/com/meishu/dto/exercise/CheckExerciseDTO.java | 13 ------------- src/main/java/com/meishu/dto/exercise/ExeLatexExpressDTO.java | 14 -------------- src/main/java/com/meishu/dto/exercise/GetExerciseRequestDTO.java | 21 --------------------- src/main/java/com/meishu/dto/exercise/GetStatusVodsDTO.java | 16 ---------------- src/main/java/com/meishu/dto/exercise/GetTreeExercisesDTO.java | 31 ------------------------------- src/main/java/com/meishu/dto/exercise/QueryCourseTreeExerciseDTO.java | 22 ---------------------- src/main/java/com/meishu/dto/exercise/UpdateStatusDTO.java | 20 -------------------- src/main/java/com/meishu/dto/grade/AddGradeDTO.java | 24 ------------------------ src/main/java/com/meishu/dto/laboratory/LaboratoryDictDTO.java | 18 ------------------ src/main/java/com/meishu/dto/laboratory/LaboratoryPageDTO.java | 15 --------------- src/main/java/com/meishu/dto/laboratorySession/CalendarStatusDTO.java | 9 --------- src/main/java/com/meishu/dto/laboratorySession/GetLaboratorySessionDTO.java | 17 ----------------- src/main/java/com/meishu/dto/laboratorySession/LaboratorySessionListDTO.java | 9 --------- src/main/java/com/meishu/dto/laboratorySession/SetLaboratorySessionDTO.java | 23 ----------------------- src/main/java/com/meishu/dto/laboratoryUser/ApplyDTO.java | 11 ----------- src/main/java/com/meishu/dto/laboratoryUser/LaboratoryUserPageDTO.java | 15 --------------- src/main/java/com/meishu/dto/question/QueryQuestionsDTO.java | 26 -------------------------- src/main/java/com/meishu/dto/role/AddPermissionDTO.java | 14 -------------- src/main/java/com/meishu/dto/role/DeletePermissionDTO.java | 15 --------------- src/main/java/com/meishu/dto/role/GetRoleTeachersDTO.java | 16 ---------------- src/main/java/com/meishu/dto/role/RoleTeacherDTO.java | 14 -------------- src/main/java/com/meishu/dto/rule/GetAllRulesDTO.java | 12 ------------ src/main/java/com/meishu/dto/rule/GetRuleReportDTO.java | 14 -------------- src/main/java/com/meishu/dto/semester/GetSemesterScoreDTO.java | 24 ------------------------ src/main/java/com/meishu/dto/semester/GetStudentDetailDTO.java | 16 ---------------- src/main/java/com/meishu/dto/semester/GetStudentRecordDTO.java | 12 ------------ src/main/java/com/meishu/dto/sessions/SessionsDictPageDTO.java | 11 ----------- src/main/java/com/meishu/dto/sign/ClassSignInDTO.java | 22 ---------------------- src/main/java/com/meishu/dto/sms/SendVerifyCodeDTO.java | 9 --------- src/main/java/com/meishu/dto/sms/VerifyCodeDTO.java | 11 ----------- src/main/java/com/meishu/dto/student/DeleteStudentDTO.java | 13 ------------- src/main/java/com/meishu/dto/student/GetChildTreesDTO.java | 12 ------------ src/main/java/com/meishu/dto/student/GetStudentRulesDTO.java | 12 ------------ src/main/java/com/meishu/dto/student/GetStudyProgressDTO.java | 12 ------------ src/main/java/com/meishu/dto/student/GetVodIndexDTO.java | 14 -------------- src/main/java/com/meishu/dto/student/SearchVodsDTO.java | 13 ------------- src/main/java/com/meishu/dto/student/SubmitTestDTO.java | 17 ----------------- src/main/java/com/meishu/dto/subject/BatchStatusOprDTO.java | 16 ---------------- src/main/java/com/meishu/dto/subject/GetAllVodsStatusDTO.java | 19 ------------------- src/main/java/com/meishu/dto/subject/GetSubjectAdministerDTO.java | 12 ------------ src/main/java/com/meishu/dto/subject/GetSubjectTreeDTO.java | 14 -------------- src/main/java/com/meishu/dto/subject/GetSubjectsDTO.java | 17 ----------------- src/main/java/com/meishu/dto/subject/UpdateTreeOrderDTO.java | 16 ---------------- src/main/java/com/meishu/dto/task/ClassDoneInfoDTO.java | 16 ---------------- src/main/java/com/meishu/dto/task/ExeRightRatioDTO.java | 18 ------------------ src/main/java/com/meishu/dto/task/ExesDoneInfoPO.java | 14 -------------- src/main/java/com/meishu/dto/task/GetClassStudentsDTO.java | 12 ------------ src/main/java/com/meishu/dto/task/GetClassesRequestVO.java | 20 -------------------- src/main/java/com/meishu/dto/task/GetRecommendExeByTreeIdVO.java | 16 ---------------- src/main/java/com/meishu/dto/task/GetRecommendVodByTreeIdVO.java | 20 -------------------- src/main/java/com/meishu/dto/task/GetTaskByIdRequestDTO.java | 39 --------------------------------------- src/main/java/com/meishu/dto/task/GetUserVodPlayDTO.java | 28 ---------------------------- src/main/java/com/meishu/dto/task/PerStudentExesDTO.java | 26 -------------------------- src/main/java/com/meishu/dto/task/PerStudentExesRequestVO.java | 26 -------------------------- src/main/java/com/meishu/dto/task/QueryTaskDetailDTO.java | 17 ----------------- src/main/java/com/meishu/dto/task/StudentDoneInfoRequestVO.java | 22 ---------------------- src/main/java/com/meishu/dto/test/CommentDTO.java | 13 ------------- src/main/java/com/meishu/dto/test/GetAllTestDTO.java | 18 ------------------ src/main/java/com/meishu/dto/test/GetOnePublishDTO.java | 18 ------------------ src/main/java/com/meishu/dto/test/GetPublishHistoryDTO.java | 18 ------------------ src/main/java/com/meishu/dto/test/GetTestReportDTO.java | 16 ---------------- src/main/java/com/meishu/dto/test/PublishTestDTO.java | 26 -------------------------- src/main/java/com/meishu/dto/token/GetAllStudentsDTO.java | 13 ------------- src/main/java/com/meishu/dto/token/GetAllTeachersDTO.java | 15 --------------- src/main/java/com/meishu/dto/userrole/AccountLoginDTO.java | 11 ----------- src/main/java/com/meishu/dto/userrole/AddStudentsDTO.java | 22 ---------------------- src/main/java/com/meishu/dto/userrole/QueryStudentsDTO.java | 20 -------------------- src/main/java/com/meishu/dto/voddict/CheckVodDTO.java | 13 ------------- src/main/java/com/meishu/dto/voddict/DeleteOriginVodDTO.java | 17 ----------------- src/main/java/com/meishu/dto/voddict/GetToCheckVodCountsDTO.java | 12 ------------ src/main/java/com/meishu/dto/voddict/GetTreeVodsDTO.java | 28 ---------------------------- src/main/java/com/meishu/dto/voddict/MediaProcessResultSet.java | 12 ------------ src/main/java/com/meishu/dto/voddict/Output.java | 12 ------------ src/main/java/com/meishu/dto/voddict/ProcedureStateChangeEvent.java | 16 ---------------- src/main/java/com/meishu/dto/voddict/PublicCheckingDTO.java | 18 ------------------ src/main/java/com/meishu/dto/voddict/TranscodeTask.java | 12 ------------ src/main/java/com/meishu/dto/voddict/UploadVodsDTO.java | 14 -------------- src/main/java/com/meishu/dto/wechat/AuthenRequestDTO.java | 15 --------------- src/main/java/com/meishu/dto/wechat/InviteDTO.java | 10 ---------- src/main/java/com/meishu/dto/wechat/JsSdkDTO.java | 17 ----------------- src/main/java/com/meishu/dto/wechat/PushMsgVO.java | 15 --------------- src/main/java/com/meishu/dto/wechat/SignDTO.java | 26 -------------------------- src/main/java/com/meishu/dto/wechat/WechatInviteDTO.java | 16 ---------------- src/main/java/com/meishu/job/UpgradeClassJob.java | 117 --------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/mapper/AccessTokenMapper.java | 30 ------------------------------ src/main/java/com/meishu/mapper/AdministerDepartmentMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/AdministerMapper.java | 74 -------------------------------------------------------------------------- src/main/java/com/meishu/mapper/AdministerPermissionMapper.java | 24 ------------------------ src/main/java/com/meishu/mapper/AdministerSubjectMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/AnsweringQuestionMapper.java | 25 ------------------------- src/main/java/com/meishu/mapper/ClassSubjectTaskMapper.java | 31 ------------------------------- src/main/java/com/meishu/mapper/ClassesDictHistoryMapper.java | 22 ---------------------- src/main/java/com/meishu/mapper/ClassesDictMapper.java | 35 ----------------------------------- src/main/java/com/meishu/mapper/ClassesUserMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/CourseAdministerMappingMapper.java | 28 ---------------------------- src/main/java/com/meishu/mapper/CourseStudentStatusHistoryMapper.java | 28 ---------------------------- src/main/java/com/meishu/mapper/CourseTreeExerciseStudentResultMapper.java | 40 ---------------------------------------- src/main/java/com/meishu/mapper/CourseTreeVodStudentResultMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/CourseVodTressStudentResultMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/DepartmentDictMapper.java | 21 --------------------- src/main/java/com/meishu/mapper/ExerciseCourseTreeMappingMapper.java | 46 ---------------------------------------------- src/main/java/com/meishu/mapper/ExerciseDictMapper.java | 35 ----------------------------------- src/main/java/com/meishu/mapper/ExerciseDoneHistoryMapper.java | 61 ------------------------------------------------------------- src/main/java/com/meishu/mapper/ExerciseExpandMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/ExerciseRelatedMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/ExerciseTreeMappingMapper.java | 33 --------------------------------- src/main/java/com/meishu/mapper/ExerciseUserInfoMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/KnowledgeSubjectDictMapper.java | 33 --------------------------------- src/main/java/com/meishu/mapper/LaboratoryAttendanceMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/LaboratoryDictMapper.java | 25 ------------------------- src/main/java/com/meishu/mapper/LaboratoryDictMappingMapper.java | 21 --------------------- src/main/java/com/meishu/mapper/LaboratorySessionMappingMapper.java | 29 ----------------------------- src/main/java/com/meishu/mapper/LaboratoryUserMappingMapper.java | 29 ----------------------------- src/main/java/com/meishu/mapper/PermissionsDictMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/RoleAdministerMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/RoleDictMapper.java | 26 -------------------------- src/main/java/com/meishu/mapper/RolePermissionMappingMapper.java | 26 -------------------------- src/main/java/com/meishu/mapper/SessionsDictMapper.java | 24 ------------------------ src/main/java/com/meishu/mapper/SignInRecordMapper.java | 25 ------------------------- src/main/java/com/meishu/mapper/SmsCodeMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/StudentMapper.java | 42 ------------------------------------------ src/main/java/com/meishu/mapper/SubjectDictMapper.java | 23 ----------------------- src/main/java/com/meishu/mapper/SubjectDimensionDictMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/SubjectDimensionStarDictMapper.java | 28 ---------------------------- src/main/java/com/meishu/mapper/SubjectRuleMapper.java | 26 -------------------------- src/main/java/com/meishu/mapper/SubjectSemesterMapper.java | 34 ---------------------------------- src/main/java/com/meishu/mapper/SubjectStarTreeMappingMapper.java | 27 --------------------------- src/main/java/com/meishu/mapper/SubjectStudentAnswerStarMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/SubjectTestDictMapper.java | 28 ---------------------------- src/main/java/com/meishu/mapper/SubjectTestGradeExampleMappingMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/SubjectTestGradeStarMappingMapper.java | 34 ---------------------------------- src/main/java/com/meishu/mapper/SubjectTestPublishGradeMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/SubjectTestPublishHistoryMapper.java | 75 --------------------------------------------------------------------------- src/main/java/com/meishu/mapper/SubjectTestStudentAnswerMapper.java | 24 ------------------------ src/main/java/com/meishu/mapper/SubjectTreeMapper.java | 23 ----------------------- src/main/java/com/meishu/mapper/TaskCompletionStatusMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/TaskContentDoneInfoMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/TaskContentMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/TaskDoneHistoryMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/UserRoleCopy1Mapper.java | 18 ------------------ src/main/java/com/meishu/mapper/UserRoleMapper.java | 38 -------------------------------------- src/main/java/com/meishu/mapper/UserSubjectMappingMapper.java | 27 --------------------------- src/main/java/com/meishu/mapper/UserSubjectPermissionDictMapper.java | 23 ----------------------- src/main/java/com/meishu/mapper/UuidHistoryMapper.java | 18 ------------------ src/main/java/com/meishu/mapper/VodDictMapper.java | 53 ----------------------------------------------------- src/main/java/com/meishu/mapper/VodPlayHistoryMapper.java | 57 --------------------------------------------------------- src/main/java/com/meishu/mapper/VodSubjectTreeMappingMapper.java | 33 --------------------------------- src/main/java/com/meishu/mapper/WrittenHomeworkMapper.java | 18 ------------------ src/main/java/com/meishu/model/AccessTokenDO.java | 31 ------------------------------- src/main/java/com/meishu/model/AdministerDO.java | 77 ----------------------------------------------------------------------------- src/main/java/com/meishu/model/AdministerDepartmentMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/AdministerPermissionDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/AdministerSubjectMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/AnsweringQuestionDO.java | 49 ------------------------------------------------- src/main/java/com/meishu/model/CampusAdministerMappingDO.java | 33 --------------------------------- src/main/java/com/meishu/model/CampusDictDO.java | 52 ---------------------------------------------------- src/main/java/com/meishu/model/ClassSubjectTaskDO.java | 61 ------------------------------------------------------------- src/main/java/com/meishu/model/ClassesDictDO.java | 76 ---------------------------------------------------------------------------- src/main/java/com/meishu/model/ClassesDictHistoryDO.java | 74 -------------------------------------------------------------------------- src/main/java/com/meishu/model/ClassesUserMappingDO.java | 44 -------------------------------------------- src/main/java/com/meishu/model/CourseAdministerMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/CourseChapterDO.java | 44 -------------------------------------------- src/main/java/com/meishu/model/CourseDictDO.java | 59 ----------------------------------------------------------- src/main/java/com/meishu/model/CourseStudentStatusHistoryDO.java | 60 ------------------------------------------------------------ src/main/java/com/meishu/model/CourseTreeDO.java | 85 ------------------------------------------------------------------------------------- src/main/java/com/meishu/model/CourseTreeExerciseStudentResultDO.java | 63 --------------------------------------------------------------- src/main/java/com/meishu/model/CourseTreeVodStudentResultDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/DepartmentDictDO.java | 53 ----------------------------------------------------- src/main/java/com/meishu/model/ExerciseCourseTreeMappingDO.java | 51 --------------------------------------------------- src/main/java/com/meishu/model/ExerciseDictDO.java | 99 --------------------------------------------------------------------------------------------------- src/main/java/com/meishu/model/ExerciseDoneHistoryDO.java | 69 --------------------------------------------------------------------- src/main/java/com/meishu/model/ExerciseExpandMappingDO.java | 49 ------------------------------------------------- src/main/java/com/meishu/model/ExerciseRelatedMappingDO.java | 53 ----------------------------------------------------- src/main/java/com/meishu/model/ExerciseTreeMappingDO.java | 36 ------------------------------------ src/main/java/com/meishu/model/ExerciseUserInfoDO.java | 44 -------------------------------------------- src/main/java/com/meishu/model/KnowledgeSubjectDictDO.java | 49 ------------------------------------------------- src/main/java/com/meishu/model/LaboratoryAttendanceMappingDO.java | 50 -------------------------------------------------- src/main/java/com/meishu/model/LaboratoryDictDO.java | 44 -------------------------------------------- src/main/java/com/meishu/model/LaboratoryDictMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/LaboratorySessionMappingDO.java | 59 ----------------------------------------------------------- src/main/java/com/meishu/model/LaboratoryUserMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/PermissionsDictDO.java | 45 --------------------------------------------- src/main/java/com/meishu/model/PtStudentScoreDO.java | 54 ------------------------------------------------------ src/main/java/com/meishu/model/RoleAdministerMappingDO.java | 33 --------------------------------- src/main/java/com/meishu/model/RoleDictDO.java | 34 ---------------------------------- src/main/java/com/meishu/model/RolePermissionMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/SessionsDictDO.java | 34 ---------------------------------- src/main/java/com/meishu/model/SignInRecordDO.java | 45 --------------------------------------------- src/main/java/com/meishu/model/SmsCodeDO.java | 41 ----------------------------------------- src/main/java/com/meishu/model/StudentCourseMappingDO.java | 59 ----------------------------------------------------------- src/main/java/com/meishu/model/StudentDO.java | 66 ------------------------------------------------------------------ src/main/java/com/meishu/model/SubjectDictDO.java | 86 -------------------------------------------------------------------------------------- src/main/java/com/meishu/model/SubjectDimensionDictDO.java | 48 ------------------------------------------------ src/main/java/com/meishu/model/SubjectDimensionStarDictDO.java | 44 -------------------------------------------- src/main/java/com/meishu/model/SubjectRuleDO.java | 44 -------------------------------------------- src/main/java/com/meishu/model/SubjectSemesterDO.java | 47 ----------------------------------------------- src/main/java/com/meishu/model/SubjectStarTreeMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/SubjectStudentAnswerStarDO.java | 53 ----------------------------------------------------- src/main/java/com/meishu/model/SubjectTestDictDO.java | 46 ---------------------------------------------- src/main/java/com/meishu/model/SubjectTestGradeExampleMappingDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/SubjectTestGradeStarMappingDO.java | 33 --------------------------------- src/main/java/com/meishu/model/SubjectTestPublishGradeDO.java | 41 ----------------------------------------- src/main/java/com/meishu/model/SubjectTestPublishHistoryDO.java | 59 ----------------------------------------------------------- src/main/java/com/meishu/model/SubjectTestStudentAnswerDO.java | 53 ----------------------------------------------------- src/main/java/com/meishu/model/SubjectTreeDO.java | 71 ----------------------------------------------------------------------- src/main/java/com/meishu/model/TaskCompletionStatusDO.java | 54 ------------------------------------------------------ src/main/java/com/meishu/model/TaskContentDO.java | 44 -------------------------------------------- src/main/java/com/meishu/model/TaskContentDoneInfoDO.java | 49 ------------------------------------------------- src/main/java/com/meishu/model/TaskDoneHistoryDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/UserRoleCopy1DO.java | 52 ---------------------------------------------------- src/main/java/com/meishu/model/UserRoleDO.java | 112 ---------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/model/UserSubjectMappingDO.java | 49 ------------------------------------------------- src/main/java/com/meishu/model/UserSubjectPermissionDictDO.java | 39 --------------------------------------- src/main/java/com/meishu/model/UuidHistoryDO.java | 31 ------------------------------- src/main/java/com/meishu/model/VodDictDO.java | 102 ------------------------------------------------------------------------------------------------------ src/main/java/com/meishu/model/VodPlayHistoryDO.java | 54 ------------------------------------------------------ src/main/java/com/meishu/model/VodSubjectTreeMappingDO.java | 49 ------------------------------------------------- src/main/java/com/meishu/model/WrittenHomeworkDO.java | 59 ----------------------------------------------------------- src/main/java/com/meishu/service/AccessTokenService.java | 27 --------------------------- src/main/java/com/meishu/service/AdministerDepartmentMappingService.java | 16 ---------------- src/main/java/com/meishu/service/AdministerPermissionService.java | 16 ---------------- src/main/java/com/meishu/service/AdministerService.java | 48 ------------------------------------------------ src/main/java/com/meishu/service/AdministerSubjectMappingService.java | 16 ---------------- src/main/java/com/meishu/service/AnsweringQuestionService.java | 34 ---------------------------------- src/main/java/com/meishu/service/ClassSubjectTaskService.java | 71 ----------------------------------------------------------------------- src/main/java/com/meishu/service/ClassesDictHistoryService.java | 16 ---------------- src/main/java/com/meishu/service/ClassesDictService.java | 45 --------------------------------------------- src/main/java/com/meishu/service/ClassesUserMappingService.java | 16 ---------------- src/main/java/com/meishu/service/CourseAdministerMappingService.java | 16 ---------------- src/main/java/com/meishu/service/CourseStudentStatusHistoryService.java | 16 ---------------- src/main/java/com/meishu/service/CourseTreeExerciseStudentResultService.java | 16 ---------------- src/main/java/com/meishu/service/CourseTreeVodStudentResultService.java | 16 ---------------- src/main/java/com/meishu/service/DepartmentDictService.java | 40 ---------------------------------------- src/main/java/com/meishu/service/ExerciseCourseTreeMappingService.java | 22 ---------------------- src/main/java/com/meishu/service/ExerciseDictService.java | 48 ------------------------------------------------ src/main/java/com/meishu/service/ExerciseDoneHistoryService.java | 16 ---------------- src/main/java/com/meishu/service/ExerciseExpandMappingService.java | 16 ---------------- src/main/java/com/meishu/service/ExerciseRelatedMappingService.java | 16 ---------------- src/main/java/com/meishu/service/ExerciseTreeMappingService.java | 16 ---------------- src/main/java/com/meishu/service/ExerciseUserInfoService.java | 16 ---------------- src/main/java/com/meishu/service/KnowledgeSubjectDictService.java | 41 ----------------------------------------- src/main/java/com/meishu/service/LaboratoryAttendanceMappingService.java | 16 ---------------- src/main/java/com/meishu/service/LaboratoryDictMappingService.java | 18 ------------------ src/main/java/com/meishu/service/LaboratoryDictService.java | 29 ----------------------------- src/main/java/com/meishu/service/LaboratorySessionMappingService.java | 40 ---------------------------------------- src/main/java/com/meishu/service/LaboratoryUserMappingService.java | 29 ----------------------------- src/main/java/com/meishu/service/PermissionsDictService.java | 16 ---------------- src/main/java/com/meishu/service/RoleAdministerMappingService.java | 16 ---------------- src/main/java/com/meishu/service/RoleDictService.java | 37 ------------------------------------- src/main/java/com/meishu/service/RolePermissionMappingService.java | 16 ---------------- src/main/java/com/meishu/service/SessionsDictService.java | 21 --------------------- src/main/java/com/meishu/service/SignInRecordService.java | 21 --------------------- src/main/java/com/meishu/service/SmsCodeService.java | 18 ------------------ src/main/java/com/meishu/service/StudentService.java | 41 ----------------------------------------- src/main/java/com/meishu/service/SubjectDictService.java | 16 ---------------- src/main/java/com/meishu/service/SubjectDimensionDictService.java | 33 --------------------------------- src/main/java/com/meishu/service/SubjectDimensionStarDictService.java | 28 ---------------------------- src/main/java/com/meishu/service/SubjectRuleService.java | 33 --------------------------------- src/main/java/com/meishu/service/SubjectSemesterService.java | 35 ----------------------------------- src/main/java/com/meishu/service/SubjectStarTreeMappingService.java | 16 ---------------- src/main/java/com/meishu/service/SubjectStudentAnswerStarService.java | 16 ---------------- src/main/java/com/meishu/service/SubjectTestDictService.java | 32 -------------------------------- src/main/java/com/meishu/service/SubjectTestGradeExampleMappingService.java | 16 ---------------- src/main/java/com/meishu/service/SubjectTestGradeStarMappingService.java | 16 ---------------- src/main/java/com/meishu/service/SubjectTestPublishGradeService.java | 33 --------------------------------- src/main/java/com/meishu/service/SubjectTestPublishHistoryService.java | 37 ------------------------------------- src/main/java/com/meishu/service/SubjectTestStudentAnswerService.java | 16 ---------------- src/main/java/com/meishu/service/SubjectTreeService.java | 32 -------------------------------- src/main/java/com/meishu/service/TaskCompletionStatusService.java | 16 ---------------- src/main/java/com/meishu/service/TaskContentDoneInfoService.java | 16 ---------------- src/main/java/com/meishu/service/TaskContentService.java | 16 ---------------- src/main/java/com/meishu/service/TaskDoneHistoryService.java | 16 ---------------- src/main/java/com/meishu/service/UserRoleCopy1Service.java | 16 ---------------- src/main/java/com/meishu/service/UserRoleService.java | 41 ----------------------------------------- src/main/java/com/meishu/service/UserSubjectMappingService.java | 16 ---------------- src/main/java/com/meishu/service/UserSubjectPermissionDictService.java | 16 ---------------- src/main/java/com/meishu/service/UuidHistoryService.java | 16 ---------------- src/main/java/com/meishu/service/VodDictService.java | 53 ----------------------------------------------------- src/main/java/com/meishu/service/VodPlayHistoryService.java | 16 ---------------- src/main/java/com/meishu/service/VodSubjectTreeMappingService.java | 23 ----------------------- src/main/java/com/meishu/service/WrittenHomeworkService.java | 16 ---------------- src/main/java/com/meishu/service/impl/AccessTokenServiceImpl.java | 89 ----------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/AdministerDepartmentMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/AdministerPermissionServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/AdministerServiceImpl.java | 352 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/AdministerSubjectMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/AnsweringQuestionServiceImpl.java | 103 ------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/ClassSubjectTaskServiceImpl.java | 1280 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/ClassesDictHistoryServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/ClassesDictServiceImpl.java | 373 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/ClassesUserMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/CourseAdministerMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/CourseStudentStatusHistoryServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/CourseTreeExerciseStudentResultServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/CourseTreeVodStudentResultServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/CourseVodTreeStudentResultServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/DepartmentDictServiceImpl.java | 285 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/ExerciseCourseTreeMappingServiceImpl.java | 45 --------------------------------------------- src/main/java/com/meishu/service/impl/ExerciseDictServiceImpl.java | 291 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/ExerciseDoneHistoryServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/ExerciseExpandMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/ExerciseRelatedMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/ExerciseTreeMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/ExerciseUserInfoServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/KnowledgeSubjectDictServiceImpl.java | 171 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/LaboratoryAttendanceMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/LaboratoryDictMappingServiceImpl.java | 22 ---------------------- src/main/java/com/meishu/service/impl/LaboratoryDictServiceImpl.java | 115 ------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/LaboratorySessionMappingServiceImpl.java | 263 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/LaboratoryUserMappingServiceImpl.java | 162 ------------------------------------------------------------------------------------------------------------------------------------------------------------------ src/main/java/com/meishu/service/impl/PermissionsDictServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/RoleAdministerMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/RoleDictServiceImpl.java | 148 ---------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/RolePermissionMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/SessionsDictServiceImpl.java | 31 ------------------------------- src/main/java/com/meishu/service/impl/SignInRecordServiceImpl.java | 29 ----------------------------- src/main/java/com/meishu/service/impl/SmsCodeServiceImpl.java | 52 ---------------------------------------------------- src/main/java/com/meishu/service/impl/StudentServiceImpl.java | 172 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/SubjectDictServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/SubjectDimensionDictServiceImpl.java | 96 ------------------------------------------------------------------------------------------------ src/main/java/com/meishu/service/impl/SubjectDimensionStarDictServiceImpl.java | 99 --------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/SubjectRuleServiceImpl.java | 68 -------------------------------------------------------------------- src/main/java/com/meishu/service/impl/SubjectSemesterServiceImpl.java | 89 ----------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/SubjectStarTreeMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/SubjectStudentAnswerStarServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/SubjectTestDictServiceImpl.java | 53 ----------------------------------------------------- src/main/java/com/meishu/service/impl/SubjectTestGradeExampleMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/SubjectTestGradeStarMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/SubjectTestPublishGradeServiceImpl.java | 188 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/SubjectTestPublishHistoryServiceImpl.java | 153 --------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/SubjectTestStudentAnswerServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/SubjectTreeServiceImpl.java | 439 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/TaskCompletionStatusServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/TaskContentDoneInfoServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/TaskContentServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/TaskDoneHistoryServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/UserRoleCopy1ServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/UserRoleServiceImpl.java | 154 ---------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/UserSubjectMappingServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/UserSubjectPermissionDictServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/UuidHistoryServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/VodDictServiceImpl.java | 507 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/service/impl/VodPlayHistoryServiceImpl.java | 20 -------------------- src/main/java/com/meishu/service/impl/VodSubjectTreeMappingServiceImpl.java | 51 --------------------------------------------------- src/main/java/com/meishu/service/impl/WrittenHomeworkServiceImpl.java | 20 -------------------- src/main/java/com/meishu/util/BaseModel.java | 35 ----------------------------------- src/main/java/com/meishu/util/CodeGenerator.java | 124 ---------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/util/CodeTrans.java | 31 ------------------------------- src/main/java/com/meishu/util/ConstantUtils.java | 89 ----------------------------------------------------------------------------------------- src/main/java/com/meishu/util/DateFormatUtil.java | 82 ---------------------------------------------------------------------------------- src/main/java/com/meishu/util/EncryptUtil.java | 35 ----------------------------------- src/main/java/com/meishu/util/HttpUtil.java | 64 ---------------------------------------------------------------- src/main/java/com/meishu/util/JwtUtil.java | 96 ------------------------------------------------------------------------------------------------ src/main/java/com/meishu/util/LatexUtils.java | 124 ---------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/util/Localstorage.java | 21 --------------------- src/main/java/com/meishu/util/MathUtil.java | 129 --------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/util/RandomUtil.java | 19 ------------------- src/main/java/com/meishu/util/SMSUtils.java | 137 ----------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/util/SecretUtils.java | 119 ----------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/util/Signature.java | 79 ------------------------------------------------------------------------------- src/main/java/com/meishu/util/TestMain.java | 61 ------------------------------------------------------------- src/main/java/com/meishu/util/WechatUtil.java | 68 -------------------------------------------------------------------- src/main/java/com/meishu/util/excel/ExcelColumn.java | 13 ------------- src/main/java/com/meishu/util/excel/ExcelColumnUtil.java | 21 --------------------- src/main/java/com/meishu/util/excel/ExcelUtil.java | 347 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/util/tree/Node.java | 42 ------------------------------------------ src/main/java/com/meishu/util/tree/NumberTree.java | 212 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/util/tree/SerialNumber.java | 28 ---------------------------- src/main/java/com/meishu/vo/PerStudentComplicationVO.java | 20 -------------------- src/main/java/com/meishu/vo/accesstoken/GetAllStudentsVO.java | 32 -------------------------------- src/main/java/com/meishu/vo/accesstoken/GetAllTeachersVO.java | 22 ---------------------- src/main/java/com/meishu/vo/administer/AdministerPermissionVO.java | 21 --------------------- src/main/java/com/meishu/vo/administer/GetClassesDetailResponseVO.java | 38 -------------------------------------- src/main/java/com/meishu/vo/administer/GetTeacherClassVO.java | 7 ------- src/main/java/com/meishu/vo/administer/GetTeacherSubjectVO.java | 12 ------------ src/main/java/com/meishu/vo/administer/GetTeachersVO.java | 38 -------------------------------------- src/main/java/com/meishu/vo/administer/LoginVO.java | 10 ---------- src/main/java/com/meishu/vo/administer/PermissionsVO.java | 17 ----------------- src/main/java/com/meishu/vo/campus/CampusListVO.java | 57 --------------------------------------------------------- src/main/java/com/meishu/vo/campus/CampusStudentVO.java | 11 ----------- src/main/java/com/meishu/vo/classes/GetClassStudentsVO.java | 12 ------------ src/main/java/com/meishu/vo/classes/GetClassesVO.java | 30 ------------------------------ src/main/java/com/meishu/vo/classes/SubjectDictVO.java | 14 -------------- src/main/java/com/meishu/vo/course/CourseAdministerVO.java | 16 ---------------- src/main/java/com/meishu/vo/course/CourseProgressVO.java | 41 ----------------------------------------- src/main/java/com/meishu/vo/course/CourseVodVO.java | 22 ---------------------- src/main/java/com/meishu/vo/course/GetAllCourseVO.java | 15 --------------- src/main/java/com/meishu/vo/course/GetCourseStudentsVO.java | 34 ---------------------------------- src/main/java/com/meishu/vo/course/GetCourseTreeVodsVO.java | 34 ---------------------------------- src/main/java/com/meishu/vo/course/GetExerciseDetailVO.java | 38 -------------------------------------- src/main/java/com/meishu/vo/course/GetStudentHistoryVO.java | 23 ----------------------- src/main/java/com/meishu/vo/course/GetVodIndexVO.java | 15 --------------- src/main/java/com/meishu/vo/course/QueryCourseInfoVO.java | 15 --------------- src/main/java/com/meishu/vo/course/QueryCoursesVO.java | 16 ---------------- src/main/java/com/meishu/vo/course/StudentDetailVO.java | 35 ----------------------------------- src/main/java/com/meishu/vo/dimension/GetAllDimensionStarVO.java | 17 ----------------- src/main/java/com/meishu/vo/dimension/GetAllDimensionStarsVO.java | 14 -------------- src/main/java/com/meishu/vo/dimension/StarVO.java | 4 ---- src/main/java/com/meishu/vo/exercise/GetExerciseDetailResponseVO.java | 21 --------------------- src/main/java/com/meishu/vo/exercise/GetExerciseDetailVO.java | 14 -------------- src/main/java/com/meishu/vo/exercise/GetTreeExercisesVO.java | 45 --------------------------------------------- src/main/java/com/meishu/vo/exercise/QueryCourseTreeExerciseVO.java | 39 --------------------------------------- src/main/java/com/meishu/vo/grade/DimensionStarVO.java | 18 ------------------ src/main/java/com/meishu/vo/grade/QueryOneGradeVO.java | 21 --------------------- src/main/java/com/meishu/vo/laboratorySession/CalendarStatusVO.java | 11 ----------- src/main/java/com/meishu/vo/laboratorySession/GetLaboratorySessionVO.java | 21 --------------------- src/main/java/com/meishu/vo/laboratorySession/LaboratoryDictPageVO.java | 17 ----------------- src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionMappingVO.java | 23 ----------------------- src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionVO.java | 12 ------------ src/main/java/com/meishu/vo/laboratorySession/StatisticsVO.java | 13 ------------- src/main/java/com/meishu/vo/laboratoryUser/LaboratoryUserPageVO.java | 38 -------------------------------------- src/main/java/com/meishu/vo/question/GetClassQuestionsVO.java | 12 ------------ src/main/java/com/meishu/vo/question/QueryOneQuestionVO.java | 11 ----------- src/main/java/com/meishu/vo/question/QueryQuestionsVO.java | 20 -------------------- src/main/java/com/meishu/vo/role/GetAllRolesVO.java | 14 -------------- src/main/java/com/meishu/vo/role/GetRoleTeachersVO.java | 22 ---------------------- src/main/java/com/meishu/vo/rule/GetAllRulesVO.java | 18 ------------------ src/main/java/com/meishu/vo/rule/GetOneExaminationDetailVO.java | 41 ----------------------------------------- src/main/java/com/meishu/vo/rule/GetRuleReportVO.java | 7 ------- src/main/java/com/meishu/vo/rule/GetStudentRulesVO.java | 28 ---------------------------- src/main/java/com/meishu/vo/rule/StudentStarVO.java | 17 ----------------- src/main/java/com/meishu/vo/semester/GetAllPastSemesterVO.java | 16 ---------------- src/main/java/com/meishu/vo/semester/GetAllStudyingSemesterVO.java | 15 --------------- src/main/java/com/meishu/vo/semester/GetSemesterScoreVO.java | 25 ------------------------- src/main/java/com/meishu/vo/semester/GetStudentDetailVO.java | 20 -------------------- src/main/java/com/meishu/vo/semester/GetStudentRecordVO.java | 30 ------------------------------ src/main/java/com/meishu/vo/sign/ClassSignInVO.java | 20 -------------------- src/main/java/com/meishu/vo/student/ChapterTestVO.java | 15 --------------- src/main/java/com/meishu/vo/student/ClassVO.java | 18 ------------------ src/main/java/com/meishu/vo/student/GetChildTreesVO.java | 14 -------------- src/main/java/com/meishu/vo/student/GetStudyProgressVO.java | 31 ------------------------------- src/main/java/com/meishu/vo/student/LoginVO.java | 18 ------------------ src/main/java/com/meishu/vo/student/ParentReportVO.java | 30 ------------------------------ src/main/java/com/meishu/vo/student/QueryChapterTestVO.java | 30 ------------------------------ src/main/java/com/meishu/vo/student/QueryClassVO.java | 14 -------------- src/main/java/com/meishu/vo/student/QueryStudentVO.java | 11 ----------- src/main/java/com/meishu/vo/student/SearchVodsVO.java | 27 --------------------------- src/main/java/com/meishu/vo/student/StudentCampusVO.java | 24 ------------------------ src/main/java/com/meishu/vo/student/StudentCourseVO.java | 17 ----------------- src/main/java/com/meishu/vo/student/StudentTreeVodDoneVO.java | 16 ---------------- src/main/java/com/meishu/vo/student/StudentVO.java | 18 ------------------ src/main/java/com/meishu/vo/student/StudentVodVO.java | 18 ------------------ src/main/java/com/meishu/vo/student/StudyReportVO.java | 31 ------------------------------- src/main/java/com/meishu/vo/student/SubjectReportVO.java | 17 ----------------- src/main/java/com/meishu/vo/subject/GetAllNoAuthenVodsVO.java | 24 ------------------------ src/main/java/com/meishu/vo/subject/GetNextNodeVO.java | 14 -------------- src/main/java/com/meishu/vo/subject/GetSubjectTreeVO.java | 119 ----------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/vo/subject/SubjectTreeOrder.java | 212 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/java/com/meishu/vo/task/ClassDoneInfoVO.java | 16 ---------------- src/main/java/com/meishu/vo/task/ExeRightRatioVO.java | 15 --------------- src/main/java/com/meishu/vo/task/ExerciseDoneInfoVO.java | 18 ------------------ src/main/java/com/meishu/vo/task/ExerciseUserInfoVO.java | 14 -------------- src/main/java/com/meishu/vo/task/GetClassExeDoneInfoRequestVO.java | 27 --------------------------- src/main/java/com/meishu/vo/task/GetClassExeDoneInfoResponseVO.java | 37 ------------------------------------- src/main/java/com/meishu/vo/task/GetExeByIdResponseVO.java | 36 ------------------------------------ src/main/java/com/meishu/vo/task/GetExercisesInfoByIdsResponseVO.java | 21 --------------------- src/main/java/com/meishu/vo/task/GetExpandingsPO.java | 12 ------------ src/main/java/com/meishu/vo/task/GetPreTaskContentVO.java | 32 -------------------------------- src/main/java/com/meishu/vo/task/GetTaskByIdVO.java | 65 ----------------------------------------------------------------- src/main/java/com/meishu/vo/task/GetVodDetailResponseVO.java | 30 ------------------------------ src/main/java/com/meishu/vo/task/PerStuExeDoneResponseVO.java | 32 -------------------------------- src/main/java/com/meishu/vo/task/PerStudentExesResponseVO.java | 25 ------------------------- src/main/java/com/meishu/vo/task/PreExpandExerciseVO.java | 24 ------------------------ src/main/java/com/meishu/vo/task/PreHomeWorkInfoVO.java | 27 --------------------------- src/main/java/com/meishu/vo/task/PreRelateExeVO.java | 22 ---------------------- src/main/java/com/meishu/vo/task/PreVodInfoVO.java | 28 ---------------------------- src/main/java/com/meishu/vo/task/QueryTaskDetailResponseVO.java | 26 -------------------------- src/main/java/com/meishu/vo/task/StudentDoneInfoResponseVO.java | 31 ------------------------------- src/main/java/com/meishu/vo/task/TeacherClassVO.java | 17 ----------------- src/main/java/com/meishu/vo/test/CommentVO.java | 16 ---------------- src/main/java/com/meishu/vo/test/GetAllTestVO.java | 19 ------------------- src/main/java/com/meishu/vo/test/GetOnePublishVO.java | 26 -------------------------- src/main/java/com/meishu/vo/test/GetPublishHistoryVO.java | 32 -------------------------------- src/main/java/com/meishu/vo/test/GetTestReportVO.java | 26 -------------------------- src/main/java/com/meishu/vo/userrole/QueryStudentsVO.java | 41 ----------------------------------------- src/main/java/com/meishu/vo/userrole/UserInfoVO.java | 15 --------------- src/main/java/com/meishu/vo/userrole/UserRoleVO.java | 12 ------------ src/main/java/com/meishu/vo/voddict/GetCourseTreesVodsVO.java | 40 ---------------------------------------- src/main/java/com/meishu/vo/voddict/GetStatusVodsVO.java | 9 --------- src/main/java/com/meishu/vo/voddict/GetToCheckCountsVO.java | 12 ------------ src/main/java/com/meishu/vo/voddict/GetTreeVodsVO.java | 43 ------------------------------------------- src/main/java/com/meishu/vo/voddict/GetVodDetailVO.java | 14 -------------- src/main/java/com/meishu/vo/voddict/SignatureVO.java | 10 ---------- src/main/java/com/meishu/vo/wechat/AccessTokenVO.java | 16 ---------------- src/main/java/com/meishu/vo/wechat/AuthenTokenVO.java | 30 ------------------------------ src/main/java/com/meishu/vo/wechat/MemberVO.java | 23 ----------------------- src/main/java/com/meishu/vo/wechat/QrConnectVO.java | 17 ----------------- src/main/java/com/meishu/vo/wechat/WXUserInfoVO.java | 16 ---------------- src/main/java/com/meishu/vo/wechat/WechatInviteVO.java | 20 -------------------- src/main/java/com/subsidy/util/Signature.java | 14 +++++++------- src/main/resources/application-dev.properties | 2 +- src/main/resources/application-prod.properties | 2 +- src/main/resources/mapper/AccessTokenMapper.xml | 81 --------------------------------------------------------------------------------- src/main/resources/mapper/AdministerDepartmentMappingMapper.xml | 23 ----------------------- src/main/resources/mapper/AdministerMapper.xml | 14 -------------- src/main/resources/mapper/AdministerPermissionMapper.xml | 43 ------------------------------------------- src/main/resources/mapper/AdministerSubjectMappingMapper.xml | 23 ----------------------- src/main/resources/mapper/ClassSubjectTaskMapper.xml | 69 --------------------------------------------------------------------- src/main/resources/mapper/ClassesDictHistoryMapper.xml | 40 ---------------------------------------- src/main/resources/mapper/ClassesDictMapper.xml | 123 --------------------------------------------------------------------------------------------------------------------------- src/main/resources/mapper/ClassesUserMappingMapper.xml | 22 ---------------------- src/main/resources/mapper/CourseAdministerMappingMapper.xml | 35 ----------------------------------- src/main/resources/mapper/CourseStudentStatusHistoryMapper.xml | 50 -------------------------------------------------- src/main/resources/mapper/CourseTreeExerciseStudentResultMapper.xml | 110 -------------------------------------------------------------------------------------------------------------- src/main/resources/mapper/CourseTreeVodStudentResultMapper.xml | 23 ----------------------- src/main/resources/mapper/CourseVodTressStudentResultMapper.xml | 23 ----------------------- src/main/resources/mapper/ExerciseCourseTreeMappingMapper.xml | 133 ------------------------------------------------------------------------------------------------------------------------------------- src/main/resources/mapper/ExerciseDoneHistoryMapper.xml | 269 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/resources/mapper/ExerciseExpandMappingMapper.xml | 23 ----------------------- src/main/resources/mapper/ExerciseRelatedMappingMapper.xml | 24 ------------------------ src/main/resources/mapper/ExerciseTreeMappingMapper.xml | 67 ------------------------------------------------------------------- src/main/resources/mapper/ExerciseUserInfoMapper.xml | 22 ---------------------- src/main/resources/mapper/KnowledgeSubjectDictMapper.xml | 58 ---------------------------------------------------------- src/main/resources/mapper/LaboratoryAttendanceMappingMapper.xml | 25 ------------------------- src/main/resources/mapper/LaboratoryDictMapper.xml | 49 ------------------------------------------------- src/main/resources/mapper/LaboratoryDictMappingMapper.xml | 23 ----------------------- src/main/resources/mapper/LaboratorySessionMappingMapper.xml | 80 -------------------------------------------------------------------------------- src/main/resources/mapper/LaboratoryUserMappingMapper.xml | 84 ------------------------------------------------------------------------------------ src/main/resources/mapper/SessionsDictMapper.xml | 43 ------------------------------------------- src/main/resources/mapper/SmsCodeMapper.xml | 23 ----------------------- src/main/resources/mapper/SubjectDictMapper.xml | 43 ------------------------------------------- src/main/resources/mapper/SubjectDimensionDictMapper.xml | 24 ------------------------ src/main/resources/mapper/SubjectDimensionStarDictMapper.xml | 37 ------------------------------------- src/main/resources/mapper/SubjectRuleMapper.xml | 52 ---------------------------------------------------- src/main/resources/mapper/SubjectSemesterMapper.xml | 129 --------------------------------------------------------------------------------------------------------------------------------- src/main/resources/mapper/SubjectStarTreeMappingMapper.xml | 37 ------------------------------------- src/main/resources/mapper/SubjectStudentAnswerStarMapper.xml | 23 ----------------------- src/main/resources/mapper/SubjectTestDictMapper.xml | 67 ------------------------------------------------------------------- src/main/resources/mapper/SubjectTestGradeExampleMappingMapper.xml | 23 ----------------------- src/main/resources/mapper/SubjectTestGradeStarMappingMapper.xml | 54 ------------------------------------------------------ src/main/resources/mapper/SubjectTestPublishGradeMapper.xml | 22 ---------------------- src/main/resources/mapper/SubjectTestPublishHistoryMapper.xml | 199 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/main/resources/mapper/SubjectTestStudentAnswerMapper.xml | 41 ----------------------------------------- src/main/resources/mapper/SubjectTreeMapper.xml | 42 ------------------------------------------ src/main/resources/mapper/TaskCompletionStatusMapper.xml | 24 ------------------------ src/main/resources/mapper/TaskContentDoneInfoMapper.xml | 23 ----------------------- src/main/resources/mapper/TaskContentMapper.xml | 22 ---------------------- src/main/resources/mapper/TaskDoneHistoryMapper.xml | 21 --------------------- src/main/resources/mapper/UserRoleCopy1Mapper.xml | 25 ------------------------- src/main/resources/mapper/UserRoleMapper.xml | 113 ----------------------------------------------------------------------------------------------------------------- src/main/resources/mapper/UserSubjectMappingMapper.xml | 35 ----------------------------------- src/main/resources/mapper/UserSubjectPermissionDictMapper.xml | 33 --------------------------------- src/main/resources/mapper/UuidHistoryMapper.xml | 22 ---------------------- src/main/resources/mapper/VodSubjectTreeMappingMapper.xml | 73 ------------------------------------------------------------------------- src/main/resources/mapper/WrittenHomeworkMapper.xml | 25 ------------------------- 670 files changed, 9 insertions(+), 27673 deletions(-) delete mode 100644 src/main/java/com/meishu/MeishuApplication.java delete mode 100644 src/main/java/com/meishu/common/Code.java delete mode 100644 src/main/java/com/meishu/common/ResponseData.java delete mode 100644 src/main/java/com/meishu/common/ResponseVO.java delete mode 100644 src/main/java/com/meishu/common/configure/AliyunSmsProperties.java delete mode 100644 src/main/java/com/meishu/common/configure/MybatisPlusConfig.java delete mode 100644 src/main/java/com/meishu/common/configure/RemoteProperties.java delete mode 100644 src/main/java/com/meishu/common/configure/RestTemplateConfig.java delete mode 100644 src/main/java/com/meishu/common/configure/SwaggerConfig.java delete mode 100644 src/main/java/com/meishu/common/configure/VODConfig.java delete mode 100644 src/main/java/com/meishu/common/configure/WebConfig.java delete mode 100644 src/main/java/com/meishu/common/configure/WebLogAspect.java delete mode 100644 src/main/java/com/meishu/common/configure/WechatConfig.java delete mode 100644 src/main/java/com/meishu/common/constant/AttendanceConstant.java delete mode 100644 src/main/java/com/meishu/common/constant/Code.java delete mode 100644 src/main/java/com/meishu/common/constant/WxConstant.java delete mode 100644 src/main/java/com/meishu/common/exception/GlobalExceptionHandler.java delete mode 100644 src/main/java/com/meishu/common/exception/HttpException.java delete mode 100644 src/main/java/com/meishu/common/handler/MetaHandler.java delete mode 100644 src/main/java/com/meishu/common/interceptor/AuthenticationInterceptor.java delete mode 100644 src/main/java/com/meishu/common/interceptor/LoginRequired.java delete mode 100644 src/main/java/com/meishu/common/schedule/ChangeStudentStatus.java delete mode 100644 src/main/java/com/meishu/controller/AccessTokenController.java delete mode 100644 src/main/java/com/meishu/controller/AdministerController.java delete mode 100644 src/main/java/com/meishu/controller/AdministerDepartmentMappingController.java delete mode 100644 src/main/java/com/meishu/controller/AdministerPermissionController.java delete mode 100644 src/main/java/com/meishu/controller/AdministerSubjectMappingController.java delete mode 100644 src/main/java/com/meishu/controller/AnsweringQuestionController.java delete mode 100644 src/main/java/com/meishu/controller/ClassSubjectTaskController.java delete mode 100644 src/main/java/com/meishu/controller/ClassesDictController.java delete mode 100644 src/main/java/com/meishu/controller/ClassesDictHistoryController.java delete mode 100644 src/main/java/com/meishu/controller/ClassesUserMappingController.java delete mode 100644 src/main/java/com/meishu/controller/CourseAdministerMappingController.java delete mode 100644 src/main/java/com/meishu/controller/CourseStudentStatusHistoryController.java delete mode 100644 src/main/java/com/meishu/controller/CourseTreeExerciseStudentResultController.java delete mode 100644 src/main/java/com/meishu/controller/CourseTreeVodStudentResultController.java delete mode 100644 src/main/java/com/meishu/controller/DepartmentDictController.java delete mode 100644 src/main/java/com/meishu/controller/ExerciseCourseTreeMappingController.java delete mode 100644 src/main/java/com/meishu/controller/ExerciseDictController.java delete mode 100644 src/main/java/com/meishu/controller/ExerciseDoneHistoryController.java delete mode 100644 src/main/java/com/meishu/controller/ExerciseExpandMappingController.java delete mode 100644 src/main/java/com/meishu/controller/ExerciseRelatedMappingController.java delete mode 100644 src/main/java/com/meishu/controller/ExerciseTreeMappingController.java delete mode 100644 src/main/java/com/meishu/controller/ExerciseUserInfoController.java delete mode 100644 src/main/java/com/meishu/controller/KnowledgeSubjectDictController.java delete mode 100644 src/main/java/com/meishu/controller/LaboratoryAttendanceMappingController.java delete mode 100644 src/main/java/com/meishu/controller/LaboratoryDictController.java delete mode 100644 src/main/java/com/meishu/controller/LaboratoryDictMappingController.java delete mode 100644 src/main/java/com/meishu/controller/LaboratorySessionMappingController.java delete mode 100644 src/main/java/com/meishu/controller/LaboratoryUserMappingController.java delete mode 100644 src/main/java/com/meishu/controller/PermissionsDictController.java delete mode 100644 src/main/java/com/meishu/controller/RoleAdministerMappingController.java delete mode 100644 src/main/java/com/meishu/controller/RoleDictController.java delete mode 100644 src/main/java/com/meishu/controller/RolePermissionMappingController.java delete mode 100644 src/main/java/com/meishu/controller/SessionsDictController.java delete mode 100644 src/main/java/com/meishu/controller/SignInRecordController.java delete mode 100644 src/main/java/com/meishu/controller/SmsCodeController.java delete mode 100644 src/main/java/com/meishu/controller/StudentController.java delete mode 100644 src/main/java/com/meishu/controller/StuentCourseMappingController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectDictController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectDimensionDictController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectDimensionStarDictController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectRuleController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectSemesterController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectStarTreeMappingController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectStudentAnswerStarController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectTestDictController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectTestGradeExampleMappingController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectTestGradeStarMappingController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectTestPublishGradeController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectTestPublishHistoryController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectTestStudentAnswerController.java delete mode 100644 src/main/java/com/meishu/controller/SubjectTreeController.java delete mode 100644 src/main/java/com/meishu/controller/TaskCompletionStatusController.java delete mode 100644 src/main/java/com/meishu/controller/TaskContentController.java delete mode 100644 src/main/java/com/meishu/controller/TaskContentDoneInfoController.java delete mode 100644 src/main/java/com/meishu/controller/TaskDoneHistoryController.java delete mode 100644 src/main/java/com/meishu/controller/UserRoleController.java delete mode 100644 src/main/java/com/meishu/controller/UserSubjectMappingController.java delete mode 100644 src/main/java/com/meishu/controller/UserSubjectPermissionDictController.java delete mode 100644 src/main/java/com/meishu/controller/UuidHistoryController.java delete mode 100644 src/main/java/com/meishu/controller/VodDictController.java delete mode 100644 src/main/java/com/meishu/controller/VodPlayHistoryController.java delete mode 100644 src/main/java/com/meishu/controller/VodSubjectTreeMappingController.java delete mode 100644 src/main/java/com/meishu/controller/WechatController.java delete mode 100644 src/main/java/com/meishu/controller/WrittenHomeworkController.java delete mode 100644 src/main/java/com/meishu/dto/administer/AddAdministerDTO.java delete mode 100644 src/main/java/com/meishu/dto/administer/ChangeStatusDTO.java delete mode 100644 src/main/java/com/meishu/dto/administer/GetClassesRequestVO.java delete mode 100644 src/main/java/com/meishu/dto/administer/PublishExpandingVO.java delete mode 100644 src/main/java/com/meishu/dto/administer/PublishHomeworkVO.java delete mode 100644 src/main/java/com/meishu/dto/administer/PublishTasksDTO.java delete mode 100644 src/main/java/com/meishu/dto/administer/PushMsgPO.java delete mode 100644 src/main/java/com/meishu/dto/administer/UpdateAdministerDTO.java delete mode 100644 src/main/java/com/meishu/dto/campus/BatchUpdateStatusDTO.java delete mode 100644 src/main/java/com/meishu/dto/campus/CampusStudentDTO.java delete mode 100644 src/main/java/com/meishu/dto/chapter/AddTreeToChapterDTO.java delete mode 100644 src/main/java/com/meishu/dto/chapter/ChapterExerciseVO.java delete mode 100644 src/main/java/com/meishu/dto/chapter/ChapterVodsVO.java delete mode 100644 src/main/java/com/meishu/dto/chapter/GetChapterCourseDetailVO.java delete mode 100644 src/main/java/com/meishu/dto/chapter/StudentChapterDTO.java delete mode 100644 src/main/java/com/meishu/dto/chapter/UpdateChapterOrderDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/AddClassDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/AddSubjectTeacherDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/AddSubjectTeacherMappingDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/BatchAddStudentToClassDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/BatchUpGradeDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/GetClassStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/GetClassesDTO.java delete mode 100644 src/main/java/com/meishu/dto/classes/QueryNoClassStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/AddCourseDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/AddCourseTreeNodeDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/AddStudentAuthenDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/BatchVodOprDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/CourseProgressDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/CourseVodDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/GetAllUnAuthenStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/GetCourseStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/course/GetExercisesByTreeDTO.java delete mode 100644 src/main/java/com/meishu/dto/department/BatchOprDTO.java delete mode 100644 src/main/java/com/meishu/dto/department/GetAllDepartmentVO.java delete mode 100644 src/main/java/com/meishu/dto/department/GetTeachersDTO.java delete mode 100644 src/main/java/com/meishu/dto/dimension/AddStarDTO.java delete mode 100644 src/main/java/com/meishu/dto/dimension/DeleteStarByIdDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/AddExerciseDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/CheckExerciseDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/ExeLatexExpressDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/GetExerciseRequestDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/GetStatusVodsDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/GetTreeExercisesDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/QueryCourseTreeExerciseDTO.java delete mode 100644 src/main/java/com/meishu/dto/exercise/UpdateStatusDTO.java delete mode 100644 src/main/java/com/meishu/dto/grade/AddGradeDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratory/LaboratoryDictDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratory/LaboratoryPageDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratorySession/CalendarStatusDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratorySession/GetLaboratorySessionDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratorySession/LaboratorySessionListDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratorySession/SetLaboratorySessionDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratoryUser/ApplyDTO.java delete mode 100644 src/main/java/com/meishu/dto/laboratoryUser/LaboratoryUserPageDTO.java delete mode 100644 src/main/java/com/meishu/dto/question/QueryQuestionsDTO.java delete mode 100644 src/main/java/com/meishu/dto/role/AddPermissionDTO.java delete mode 100644 src/main/java/com/meishu/dto/role/DeletePermissionDTO.java delete mode 100644 src/main/java/com/meishu/dto/role/GetRoleTeachersDTO.java delete mode 100644 src/main/java/com/meishu/dto/role/RoleTeacherDTO.java delete mode 100644 src/main/java/com/meishu/dto/rule/GetAllRulesDTO.java delete mode 100644 src/main/java/com/meishu/dto/rule/GetRuleReportDTO.java delete mode 100644 src/main/java/com/meishu/dto/semester/GetSemesterScoreDTO.java delete mode 100644 src/main/java/com/meishu/dto/semester/GetStudentDetailDTO.java delete mode 100644 src/main/java/com/meishu/dto/semester/GetStudentRecordDTO.java delete mode 100644 src/main/java/com/meishu/dto/sessions/SessionsDictPageDTO.java delete mode 100644 src/main/java/com/meishu/dto/sign/ClassSignInDTO.java delete mode 100644 src/main/java/com/meishu/dto/sms/SendVerifyCodeDTO.java delete mode 100644 src/main/java/com/meishu/dto/sms/VerifyCodeDTO.java delete mode 100644 src/main/java/com/meishu/dto/student/DeleteStudentDTO.java delete mode 100644 src/main/java/com/meishu/dto/student/GetChildTreesDTO.java delete mode 100644 src/main/java/com/meishu/dto/student/GetStudentRulesDTO.java delete mode 100644 src/main/java/com/meishu/dto/student/GetStudyProgressDTO.java delete mode 100644 src/main/java/com/meishu/dto/student/GetVodIndexDTO.java delete mode 100644 src/main/java/com/meishu/dto/student/SearchVodsDTO.java delete mode 100644 src/main/java/com/meishu/dto/student/SubmitTestDTO.java delete mode 100644 src/main/java/com/meishu/dto/subject/BatchStatusOprDTO.java delete mode 100644 src/main/java/com/meishu/dto/subject/GetAllVodsStatusDTO.java delete mode 100644 src/main/java/com/meishu/dto/subject/GetSubjectAdministerDTO.java delete mode 100644 src/main/java/com/meishu/dto/subject/GetSubjectTreeDTO.java delete mode 100644 src/main/java/com/meishu/dto/subject/GetSubjectsDTO.java delete mode 100644 src/main/java/com/meishu/dto/subject/UpdateTreeOrderDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/ClassDoneInfoDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/ExeRightRatioDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/ExesDoneInfoPO.java delete mode 100644 src/main/java/com/meishu/dto/task/GetClassStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/GetClassesRequestVO.java delete mode 100644 src/main/java/com/meishu/dto/task/GetRecommendExeByTreeIdVO.java delete mode 100644 src/main/java/com/meishu/dto/task/GetRecommendVodByTreeIdVO.java delete mode 100644 src/main/java/com/meishu/dto/task/GetTaskByIdRequestDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/GetUserVodPlayDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/PerStudentExesDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/PerStudentExesRequestVO.java delete mode 100644 src/main/java/com/meishu/dto/task/QueryTaskDetailDTO.java delete mode 100644 src/main/java/com/meishu/dto/task/StudentDoneInfoRequestVO.java delete mode 100644 src/main/java/com/meishu/dto/test/CommentDTO.java delete mode 100644 src/main/java/com/meishu/dto/test/GetAllTestDTO.java delete mode 100644 src/main/java/com/meishu/dto/test/GetOnePublishDTO.java delete mode 100644 src/main/java/com/meishu/dto/test/GetPublishHistoryDTO.java delete mode 100644 src/main/java/com/meishu/dto/test/GetTestReportDTO.java delete mode 100644 src/main/java/com/meishu/dto/test/PublishTestDTO.java delete mode 100644 src/main/java/com/meishu/dto/token/GetAllStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/token/GetAllTeachersDTO.java delete mode 100644 src/main/java/com/meishu/dto/userrole/AccountLoginDTO.java delete mode 100644 src/main/java/com/meishu/dto/userrole/AddStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/userrole/QueryStudentsDTO.java delete mode 100644 src/main/java/com/meishu/dto/voddict/CheckVodDTO.java delete mode 100644 src/main/java/com/meishu/dto/voddict/DeleteOriginVodDTO.java delete mode 100644 src/main/java/com/meishu/dto/voddict/GetToCheckVodCountsDTO.java delete mode 100644 src/main/java/com/meishu/dto/voddict/GetTreeVodsDTO.java delete mode 100644 src/main/java/com/meishu/dto/voddict/MediaProcessResultSet.java delete mode 100644 src/main/java/com/meishu/dto/voddict/Output.java delete mode 100644 src/main/java/com/meishu/dto/voddict/ProcedureStateChangeEvent.java delete mode 100644 src/main/java/com/meishu/dto/voddict/PublicCheckingDTO.java delete mode 100644 src/main/java/com/meishu/dto/voddict/TranscodeTask.java delete mode 100644 src/main/java/com/meishu/dto/voddict/UploadVodsDTO.java delete mode 100644 src/main/java/com/meishu/dto/wechat/AuthenRequestDTO.java delete mode 100644 src/main/java/com/meishu/dto/wechat/InviteDTO.java delete mode 100644 src/main/java/com/meishu/dto/wechat/JsSdkDTO.java delete mode 100644 src/main/java/com/meishu/dto/wechat/PushMsgVO.java delete mode 100644 src/main/java/com/meishu/dto/wechat/SignDTO.java delete mode 100644 src/main/java/com/meishu/dto/wechat/WechatInviteDTO.java delete mode 100644 src/main/java/com/meishu/job/UpgradeClassJob.java delete mode 100644 src/main/java/com/meishu/mapper/AccessTokenMapper.java delete mode 100644 src/main/java/com/meishu/mapper/AdministerDepartmentMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/AdministerMapper.java delete mode 100644 src/main/java/com/meishu/mapper/AdministerPermissionMapper.java delete mode 100644 src/main/java/com/meishu/mapper/AdministerSubjectMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/AnsweringQuestionMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ClassSubjectTaskMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ClassesDictHistoryMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ClassesDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ClassesUserMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/CourseAdministerMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/CourseStudentStatusHistoryMapper.java delete mode 100644 src/main/java/com/meishu/mapper/CourseTreeExerciseStudentResultMapper.java delete mode 100644 src/main/java/com/meishu/mapper/CourseTreeVodStudentResultMapper.java delete mode 100644 src/main/java/com/meishu/mapper/CourseVodTressStudentResultMapper.java delete mode 100644 src/main/java/com/meishu/mapper/DepartmentDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ExerciseCourseTreeMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ExerciseDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ExerciseDoneHistoryMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ExerciseExpandMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ExerciseRelatedMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ExerciseTreeMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/ExerciseUserInfoMapper.java delete mode 100644 src/main/java/com/meishu/mapper/KnowledgeSubjectDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/LaboratoryAttendanceMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/LaboratoryDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/LaboratoryDictMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/LaboratorySessionMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/LaboratoryUserMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/PermissionsDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/RoleAdministerMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/RoleDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/RolePermissionMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SessionsDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SignInRecordMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SmsCodeMapper.java delete mode 100644 src/main/java/com/meishu/mapper/StudentMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectDimensionDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectDimensionStarDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectRuleMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectSemesterMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectStarTreeMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectStudentAnswerStarMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectTestDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectTestGradeExampleMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectTestGradeStarMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectTestPublishGradeMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectTestPublishHistoryMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectTestStudentAnswerMapper.java delete mode 100644 src/main/java/com/meishu/mapper/SubjectTreeMapper.java delete mode 100644 src/main/java/com/meishu/mapper/TaskCompletionStatusMapper.java delete mode 100644 src/main/java/com/meishu/mapper/TaskContentDoneInfoMapper.java delete mode 100644 src/main/java/com/meishu/mapper/TaskContentMapper.java delete mode 100644 src/main/java/com/meishu/mapper/TaskDoneHistoryMapper.java delete mode 100644 src/main/java/com/meishu/mapper/UserRoleCopy1Mapper.java delete mode 100644 src/main/java/com/meishu/mapper/UserRoleMapper.java delete mode 100644 src/main/java/com/meishu/mapper/UserSubjectMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/UserSubjectPermissionDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/UuidHistoryMapper.java delete mode 100644 src/main/java/com/meishu/mapper/VodDictMapper.java delete mode 100644 src/main/java/com/meishu/mapper/VodPlayHistoryMapper.java delete mode 100644 src/main/java/com/meishu/mapper/VodSubjectTreeMappingMapper.java delete mode 100644 src/main/java/com/meishu/mapper/WrittenHomeworkMapper.java delete mode 100644 src/main/java/com/meishu/model/AccessTokenDO.java delete mode 100644 src/main/java/com/meishu/model/AdministerDO.java delete mode 100644 src/main/java/com/meishu/model/AdministerDepartmentMappingDO.java delete mode 100644 src/main/java/com/meishu/model/AdministerPermissionDO.java delete mode 100644 src/main/java/com/meishu/model/AdministerSubjectMappingDO.java delete mode 100644 src/main/java/com/meishu/model/AnsweringQuestionDO.java delete mode 100644 src/main/java/com/meishu/model/CampusAdministerMappingDO.java delete mode 100644 src/main/java/com/meishu/model/CampusDictDO.java delete mode 100644 src/main/java/com/meishu/model/ClassSubjectTaskDO.java delete mode 100644 src/main/java/com/meishu/model/ClassesDictDO.java delete mode 100644 src/main/java/com/meishu/model/ClassesDictHistoryDO.java delete mode 100644 src/main/java/com/meishu/model/ClassesUserMappingDO.java delete mode 100644 src/main/java/com/meishu/model/CourseAdministerMappingDO.java delete mode 100644 src/main/java/com/meishu/model/CourseChapterDO.java delete mode 100644 src/main/java/com/meishu/model/CourseDictDO.java delete mode 100644 src/main/java/com/meishu/model/CourseStudentStatusHistoryDO.java delete mode 100644 src/main/java/com/meishu/model/CourseTreeDO.java delete mode 100644 src/main/java/com/meishu/model/CourseTreeExerciseStudentResultDO.java delete mode 100644 src/main/java/com/meishu/model/CourseTreeVodStudentResultDO.java delete mode 100644 src/main/java/com/meishu/model/DepartmentDictDO.java delete mode 100644 src/main/java/com/meishu/model/ExerciseCourseTreeMappingDO.java delete mode 100644 src/main/java/com/meishu/model/ExerciseDictDO.java delete mode 100644 src/main/java/com/meishu/model/ExerciseDoneHistoryDO.java delete mode 100644 src/main/java/com/meishu/model/ExerciseExpandMappingDO.java delete mode 100644 src/main/java/com/meishu/model/ExerciseRelatedMappingDO.java delete mode 100644 src/main/java/com/meishu/model/ExerciseTreeMappingDO.java delete mode 100644 src/main/java/com/meishu/model/ExerciseUserInfoDO.java delete mode 100644 src/main/java/com/meishu/model/KnowledgeSubjectDictDO.java delete mode 100644 src/main/java/com/meishu/model/LaboratoryAttendanceMappingDO.java delete mode 100644 src/main/java/com/meishu/model/LaboratoryDictDO.java delete mode 100644 src/main/java/com/meishu/model/LaboratoryDictMappingDO.java delete mode 100644 src/main/java/com/meishu/model/LaboratorySessionMappingDO.java delete mode 100644 src/main/java/com/meishu/model/LaboratoryUserMappingDO.java delete mode 100644 src/main/java/com/meishu/model/PermissionsDictDO.java delete mode 100644 src/main/java/com/meishu/model/PtStudentScoreDO.java delete mode 100644 src/main/java/com/meishu/model/RoleAdministerMappingDO.java delete mode 100644 src/main/java/com/meishu/model/RoleDictDO.java delete mode 100644 src/main/java/com/meishu/model/RolePermissionMappingDO.java delete mode 100644 src/main/java/com/meishu/model/SessionsDictDO.java delete mode 100644 src/main/java/com/meishu/model/SignInRecordDO.java delete mode 100644 src/main/java/com/meishu/model/SmsCodeDO.java delete mode 100644 src/main/java/com/meishu/model/StudentCourseMappingDO.java delete mode 100644 src/main/java/com/meishu/model/StudentDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectDictDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectDimensionDictDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectDimensionStarDictDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectRuleDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectSemesterDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectStarTreeMappingDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectStudentAnswerStarDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectTestDictDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectTestGradeExampleMappingDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectTestGradeStarMappingDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectTestPublishGradeDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectTestPublishHistoryDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectTestStudentAnswerDO.java delete mode 100644 src/main/java/com/meishu/model/SubjectTreeDO.java delete mode 100644 src/main/java/com/meishu/model/TaskCompletionStatusDO.java delete mode 100644 src/main/java/com/meishu/model/TaskContentDO.java delete mode 100644 src/main/java/com/meishu/model/TaskContentDoneInfoDO.java delete mode 100644 src/main/java/com/meishu/model/TaskDoneHistoryDO.java delete mode 100644 src/main/java/com/meishu/model/UserRoleCopy1DO.java delete mode 100644 src/main/java/com/meishu/model/UserRoleDO.java delete mode 100644 src/main/java/com/meishu/model/UserSubjectMappingDO.java delete mode 100644 src/main/java/com/meishu/model/UserSubjectPermissionDictDO.java delete mode 100644 src/main/java/com/meishu/model/UuidHistoryDO.java delete mode 100644 src/main/java/com/meishu/model/VodDictDO.java delete mode 100644 src/main/java/com/meishu/model/VodPlayHistoryDO.java delete mode 100644 src/main/java/com/meishu/model/VodSubjectTreeMappingDO.java delete mode 100644 src/main/java/com/meishu/model/WrittenHomeworkDO.java delete mode 100644 src/main/java/com/meishu/service/AccessTokenService.java delete mode 100644 src/main/java/com/meishu/service/AdministerDepartmentMappingService.java delete mode 100644 src/main/java/com/meishu/service/AdministerPermissionService.java delete mode 100644 src/main/java/com/meishu/service/AdministerService.java delete mode 100644 src/main/java/com/meishu/service/AdministerSubjectMappingService.java delete mode 100644 src/main/java/com/meishu/service/AnsweringQuestionService.java delete mode 100644 src/main/java/com/meishu/service/ClassSubjectTaskService.java delete mode 100644 src/main/java/com/meishu/service/ClassesDictHistoryService.java delete mode 100644 src/main/java/com/meishu/service/ClassesDictService.java delete mode 100644 src/main/java/com/meishu/service/ClassesUserMappingService.java delete mode 100644 src/main/java/com/meishu/service/CourseAdministerMappingService.java delete mode 100644 src/main/java/com/meishu/service/CourseStudentStatusHistoryService.java delete mode 100644 src/main/java/com/meishu/service/CourseTreeExerciseStudentResultService.java delete mode 100644 src/main/java/com/meishu/service/CourseTreeVodStudentResultService.java delete mode 100644 src/main/java/com/meishu/service/DepartmentDictService.java delete mode 100644 src/main/java/com/meishu/service/ExerciseCourseTreeMappingService.java delete mode 100644 src/main/java/com/meishu/service/ExerciseDictService.java delete mode 100644 src/main/java/com/meishu/service/ExerciseDoneHistoryService.java delete mode 100644 src/main/java/com/meishu/service/ExerciseExpandMappingService.java delete mode 100644 src/main/java/com/meishu/service/ExerciseRelatedMappingService.java delete mode 100644 src/main/java/com/meishu/service/ExerciseTreeMappingService.java delete mode 100644 src/main/java/com/meishu/service/ExerciseUserInfoService.java delete mode 100644 src/main/java/com/meishu/service/KnowledgeSubjectDictService.java delete mode 100644 src/main/java/com/meishu/service/LaboratoryAttendanceMappingService.java delete mode 100644 src/main/java/com/meishu/service/LaboratoryDictMappingService.java delete mode 100644 src/main/java/com/meishu/service/LaboratoryDictService.java delete mode 100644 src/main/java/com/meishu/service/LaboratorySessionMappingService.java delete mode 100644 src/main/java/com/meishu/service/LaboratoryUserMappingService.java delete mode 100644 src/main/java/com/meishu/service/PermissionsDictService.java delete mode 100644 src/main/java/com/meishu/service/RoleAdministerMappingService.java delete mode 100644 src/main/java/com/meishu/service/RoleDictService.java delete mode 100644 src/main/java/com/meishu/service/RolePermissionMappingService.java delete mode 100644 src/main/java/com/meishu/service/SessionsDictService.java delete mode 100644 src/main/java/com/meishu/service/SignInRecordService.java delete mode 100644 src/main/java/com/meishu/service/SmsCodeService.java delete mode 100644 src/main/java/com/meishu/service/StudentService.java delete mode 100644 src/main/java/com/meishu/service/SubjectDictService.java delete mode 100644 src/main/java/com/meishu/service/SubjectDimensionDictService.java delete mode 100644 src/main/java/com/meishu/service/SubjectDimensionStarDictService.java delete mode 100644 src/main/java/com/meishu/service/SubjectRuleService.java delete mode 100644 src/main/java/com/meishu/service/SubjectSemesterService.java delete mode 100644 src/main/java/com/meishu/service/SubjectStarTreeMappingService.java delete mode 100644 src/main/java/com/meishu/service/SubjectStudentAnswerStarService.java delete mode 100644 src/main/java/com/meishu/service/SubjectTestDictService.java delete mode 100644 src/main/java/com/meishu/service/SubjectTestGradeExampleMappingService.java delete mode 100644 src/main/java/com/meishu/service/SubjectTestGradeStarMappingService.java delete mode 100644 src/main/java/com/meishu/service/SubjectTestPublishGradeService.java delete mode 100644 src/main/java/com/meishu/service/SubjectTestPublishHistoryService.java delete mode 100644 src/main/java/com/meishu/service/SubjectTestStudentAnswerService.java delete mode 100644 src/main/java/com/meishu/service/SubjectTreeService.java delete mode 100644 src/main/java/com/meishu/service/TaskCompletionStatusService.java delete mode 100644 src/main/java/com/meishu/service/TaskContentDoneInfoService.java delete mode 100644 src/main/java/com/meishu/service/TaskContentService.java delete mode 100644 src/main/java/com/meishu/service/TaskDoneHistoryService.java delete mode 100644 src/main/java/com/meishu/service/UserRoleCopy1Service.java delete mode 100644 src/main/java/com/meishu/service/UserRoleService.java delete mode 100644 src/main/java/com/meishu/service/UserSubjectMappingService.java delete mode 100644 src/main/java/com/meishu/service/UserSubjectPermissionDictService.java delete mode 100644 src/main/java/com/meishu/service/UuidHistoryService.java delete mode 100644 src/main/java/com/meishu/service/VodDictService.java delete mode 100644 src/main/java/com/meishu/service/VodPlayHistoryService.java delete mode 100644 src/main/java/com/meishu/service/VodSubjectTreeMappingService.java delete mode 100644 src/main/java/com/meishu/service/WrittenHomeworkService.java delete mode 100644 src/main/java/com/meishu/service/impl/AccessTokenServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/AdministerDepartmentMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/AdministerPermissionServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/AdministerServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/AdministerSubjectMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/AnsweringQuestionServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ClassSubjectTaskServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ClassesDictHistoryServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ClassesDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ClassesUserMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/CourseAdministerMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/CourseStudentStatusHistoryServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/CourseTreeExerciseStudentResultServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/CourseTreeVodStudentResultServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/CourseVodTreeStudentResultServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/DepartmentDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ExerciseCourseTreeMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ExerciseDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ExerciseDoneHistoryServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ExerciseExpandMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ExerciseRelatedMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ExerciseTreeMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/ExerciseUserInfoServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/KnowledgeSubjectDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/LaboratoryAttendanceMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/LaboratoryDictMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/LaboratoryDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/LaboratorySessionMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/LaboratoryUserMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/PermissionsDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/RoleAdministerMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/RoleDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/RolePermissionMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SessionsDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SignInRecordServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SmsCodeServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/StudentServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectDimensionDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectDimensionStarDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectRuleServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectSemesterServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectStarTreeMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectStudentAnswerStarServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectTestDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectTestGradeExampleMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectTestGradeStarMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectTestPublishGradeServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectTestPublishHistoryServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectTestStudentAnswerServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/SubjectTreeServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/TaskCompletionStatusServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/TaskContentDoneInfoServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/TaskContentServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/TaskDoneHistoryServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/UserRoleCopy1ServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/UserRoleServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/UserSubjectMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/UserSubjectPermissionDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/UuidHistoryServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/VodDictServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/VodPlayHistoryServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/VodSubjectTreeMappingServiceImpl.java delete mode 100644 src/main/java/com/meishu/service/impl/WrittenHomeworkServiceImpl.java delete mode 100644 src/main/java/com/meishu/util/BaseModel.java delete mode 100644 src/main/java/com/meishu/util/CodeGenerator.java delete mode 100644 src/main/java/com/meishu/util/CodeTrans.java delete mode 100644 src/main/java/com/meishu/util/ConstantUtils.java delete mode 100644 src/main/java/com/meishu/util/DateFormatUtil.java delete mode 100644 src/main/java/com/meishu/util/EncryptUtil.java delete mode 100644 src/main/java/com/meishu/util/HttpUtil.java delete mode 100644 src/main/java/com/meishu/util/JwtUtil.java delete mode 100644 src/main/java/com/meishu/util/LatexUtils.java delete mode 100644 src/main/java/com/meishu/util/Localstorage.java delete mode 100644 src/main/java/com/meishu/util/MathUtil.java delete mode 100644 src/main/java/com/meishu/util/RandomUtil.java delete mode 100644 src/main/java/com/meishu/util/SMSUtils.java delete mode 100644 src/main/java/com/meishu/util/SecretUtils.java delete mode 100644 src/main/java/com/meishu/util/Signature.java delete mode 100644 src/main/java/com/meishu/util/TestMain.java delete mode 100644 src/main/java/com/meishu/util/WechatUtil.java delete mode 100644 src/main/java/com/meishu/util/excel/ExcelColumn.java delete mode 100644 src/main/java/com/meishu/util/excel/ExcelColumnUtil.java delete mode 100644 src/main/java/com/meishu/util/excel/ExcelUtil.java delete mode 100644 src/main/java/com/meishu/util/tree/Node.java delete mode 100644 src/main/java/com/meishu/util/tree/NumberTree.java delete mode 100644 src/main/java/com/meishu/util/tree/SerialNumber.java delete mode 100644 src/main/java/com/meishu/vo/PerStudentComplicationVO.java delete mode 100644 src/main/java/com/meishu/vo/accesstoken/GetAllStudentsVO.java delete mode 100644 src/main/java/com/meishu/vo/accesstoken/GetAllTeachersVO.java delete mode 100644 src/main/java/com/meishu/vo/administer/AdministerPermissionVO.java delete mode 100644 src/main/java/com/meishu/vo/administer/GetClassesDetailResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/administer/GetTeacherClassVO.java delete mode 100644 src/main/java/com/meishu/vo/administer/GetTeacherSubjectVO.java delete mode 100644 src/main/java/com/meishu/vo/administer/GetTeachersVO.java delete mode 100644 src/main/java/com/meishu/vo/administer/LoginVO.java delete mode 100644 src/main/java/com/meishu/vo/administer/PermissionsVO.java delete mode 100644 src/main/java/com/meishu/vo/campus/CampusListVO.java delete mode 100644 src/main/java/com/meishu/vo/campus/CampusStudentVO.java delete mode 100644 src/main/java/com/meishu/vo/classes/GetClassStudentsVO.java delete mode 100644 src/main/java/com/meishu/vo/classes/GetClassesVO.java delete mode 100644 src/main/java/com/meishu/vo/classes/SubjectDictVO.java delete mode 100644 src/main/java/com/meishu/vo/course/CourseAdministerVO.java delete mode 100644 src/main/java/com/meishu/vo/course/CourseProgressVO.java delete mode 100644 src/main/java/com/meishu/vo/course/CourseVodVO.java delete mode 100644 src/main/java/com/meishu/vo/course/GetAllCourseVO.java delete mode 100644 src/main/java/com/meishu/vo/course/GetCourseStudentsVO.java delete mode 100644 src/main/java/com/meishu/vo/course/GetCourseTreeVodsVO.java delete mode 100644 src/main/java/com/meishu/vo/course/GetExerciseDetailVO.java delete mode 100644 src/main/java/com/meishu/vo/course/GetStudentHistoryVO.java delete mode 100644 src/main/java/com/meishu/vo/course/GetVodIndexVO.java delete mode 100644 src/main/java/com/meishu/vo/course/QueryCourseInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/course/QueryCoursesVO.java delete mode 100644 src/main/java/com/meishu/vo/course/StudentDetailVO.java delete mode 100644 src/main/java/com/meishu/vo/dimension/GetAllDimensionStarVO.java delete mode 100644 src/main/java/com/meishu/vo/dimension/GetAllDimensionStarsVO.java delete mode 100644 src/main/java/com/meishu/vo/dimension/StarVO.java delete mode 100644 src/main/java/com/meishu/vo/exercise/GetExerciseDetailResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/exercise/GetExerciseDetailVO.java delete mode 100644 src/main/java/com/meishu/vo/exercise/GetTreeExercisesVO.java delete mode 100644 src/main/java/com/meishu/vo/exercise/QueryCourseTreeExerciseVO.java delete mode 100644 src/main/java/com/meishu/vo/grade/DimensionStarVO.java delete mode 100644 src/main/java/com/meishu/vo/grade/QueryOneGradeVO.java delete mode 100644 src/main/java/com/meishu/vo/laboratorySession/CalendarStatusVO.java delete mode 100644 src/main/java/com/meishu/vo/laboratorySession/GetLaboratorySessionVO.java delete mode 100644 src/main/java/com/meishu/vo/laboratorySession/LaboratoryDictPageVO.java delete mode 100644 src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionMappingVO.java delete mode 100644 src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionVO.java delete mode 100644 src/main/java/com/meishu/vo/laboratorySession/StatisticsVO.java delete mode 100644 src/main/java/com/meishu/vo/laboratoryUser/LaboratoryUserPageVO.java delete mode 100644 src/main/java/com/meishu/vo/question/GetClassQuestionsVO.java delete mode 100644 src/main/java/com/meishu/vo/question/QueryOneQuestionVO.java delete mode 100644 src/main/java/com/meishu/vo/question/QueryQuestionsVO.java delete mode 100644 src/main/java/com/meishu/vo/role/GetAllRolesVO.java delete mode 100644 src/main/java/com/meishu/vo/role/GetRoleTeachersVO.java delete mode 100644 src/main/java/com/meishu/vo/rule/GetAllRulesVO.java delete mode 100644 src/main/java/com/meishu/vo/rule/GetOneExaminationDetailVO.java delete mode 100644 src/main/java/com/meishu/vo/rule/GetRuleReportVO.java delete mode 100644 src/main/java/com/meishu/vo/rule/GetStudentRulesVO.java delete mode 100644 src/main/java/com/meishu/vo/rule/StudentStarVO.java delete mode 100644 src/main/java/com/meishu/vo/semester/GetAllPastSemesterVO.java delete mode 100644 src/main/java/com/meishu/vo/semester/GetAllStudyingSemesterVO.java delete mode 100644 src/main/java/com/meishu/vo/semester/GetSemesterScoreVO.java delete mode 100644 src/main/java/com/meishu/vo/semester/GetStudentDetailVO.java delete mode 100644 src/main/java/com/meishu/vo/semester/GetStudentRecordVO.java delete mode 100644 src/main/java/com/meishu/vo/sign/ClassSignInVO.java delete mode 100644 src/main/java/com/meishu/vo/student/ChapterTestVO.java delete mode 100644 src/main/java/com/meishu/vo/student/ClassVO.java delete mode 100644 src/main/java/com/meishu/vo/student/GetChildTreesVO.java delete mode 100644 src/main/java/com/meishu/vo/student/GetStudyProgressVO.java delete mode 100644 src/main/java/com/meishu/vo/student/LoginVO.java delete mode 100644 src/main/java/com/meishu/vo/student/ParentReportVO.java delete mode 100644 src/main/java/com/meishu/vo/student/QueryChapterTestVO.java delete mode 100644 src/main/java/com/meishu/vo/student/QueryClassVO.java delete mode 100644 src/main/java/com/meishu/vo/student/QueryStudentVO.java delete mode 100644 src/main/java/com/meishu/vo/student/SearchVodsVO.java delete mode 100644 src/main/java/com/meishu/vo/student/StudentCampusVO.java delete mode 100644 src/main/java/com/meishu/vo/student/StudentCourseVO.java delete mode 100644 src/main/java/com/meishu/vo/student/StudentTreeVodDoneVO.java delete mode 100644 src/main/java/com/meishu/vo/student/StudentVO.java delete mode 100644 src/main/java/com/meishu/vo/student/StudentVodVO.java delete mode 100644 src/main/java/com/meishu/vo/student/StudyReportVO.java delete mode 100644 src/main/java/com/meishu/vo/student/SubjectReportVO.java delete mode 100644 src/main/java/com/meishu/vo/subject/GetAllNoAuthenVodsVO.java delete mode 100644 src/main/java/com/meishu/vo/subject/GetNextNodeVO.java delete mode 100644 src/main/java/com/meishu/vo/subject/GetSubjectTreeVO.java delete mode 100644 src/main/java/com/meishu/vo/subject/SubjectTreeOrder.java delete mode 100644 src/main/java/com/meishu/vo/task/ClassDoneInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/task/ExeRightRatioVO.java delete mode 100644 src/main/java/com/meishu/vo/task/ExerciseDoneInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/task/ExerciseUserInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetClassExeDoneInfoRequestVO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetClassExeDoneInfoResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetExeByIdResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetExercisesInfoByIdsResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetExpandingsPO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetPreTaskContentVO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetTaskByIdVO.java delete mode 100644 src/main/java/com/meishu/vo/task/GetVodDetailResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/PerStuExeDoneResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/PerStudentExesResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/PreExpandExerciseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/PreHomeWorkInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/task/PreRelateExeVO.java delete mode 100644 src/main/java/com/meishu/vo/task/PreVodInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/task/QueryTaskDetailResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/StudentDoneInfoResponseVO.java delete mode 100644 src/main/java/com/meishu/vo/task/TeacherClassVO.java delete mode 100644 src/main/java/com/meishu/vo/test/CommentVO.java delete mode 100644 src/main/java/com/meishu/vo/test/GetAllTestVO.java delete mode 100644 src/main/java/com/meishu/vo/test/GetOnePublishVO.java delete mode 100644 src/main/java/com/meishu/vo/test/GetPublishHistoryVO.java delete mode 100644 src/main/java/com/meishu/vo/test/GetTestReportVO.java delete mode 100644 src/main/java/com/meishu/vo/userrole/QueryStudentsVO.java delete mode 100644 src/main/java/com/meishu/vo/userrole/UserInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/userrole/UserRoleVO.java delete mode 100644 src/main/java/com/meishu/vo/voddict/GetCourseTreesVodsVO.java delete mode 100644 src/main/java/com/meishu/vo/voddict/GetStatusVodsVO.java delete mode 100644 src/main/java/com/meishu/vo/voddict/GetToCheckCountsVO.java delete mode 100644 src/main/java/com/meishu/vo/voddict/GetTreeVodsVO.java delete mode 100644 src/main/java/com/meishu/vo/voddict/GetVodDetailVO.java delete mode 100644 src/main/java/com/meishu/vo/voddict/SignatureVO.java delete mode 100644 src/main/java/com/meishu/vo/wechat/AccessTokenVO.java delete mode 100644 src/main/java/com/meishu/vo/wechat/AuthenTokenVO.java delete mode 100644 src/main/java/com/meishu/vo/wechat/MemberVO.java delete mode 100644 src/main/java/com/meishu/vo/wechat/QrConnectVO.java delete mode 100644 src/main/java/com/meishu/vo/wechat/WXUserInfoVO.java delete mode 100644 src/main/java/com/meishu/vo/wechat/WechatInviteVO.java delete mode 100644 src/main/resources/mapper/AccessTokenMapper.xml delete mode 100644 src/main/resources/mapper/AdministerDepartmentMappingMapper.xml delete mode 100644 src/main/resources/mapper/AdministerPermissionMapper.xml delete mode 100644 src/main/resources/mapper/AdministerSubjectMappingMapper.xml delete mode 100644 src/main/resources/mapper/ClassSubjectTaskMapper.xml delete mode 100644 src/main/resources/mapper/ClassesDictHistoryMapper.xml delete mode 100644 src/main/resources/mapper/ClassesDictMapper.xml delete mode 100644 src/main/resources/mapper/ClassesUserMappingMapper.xml delete mode 100644 src/main/resources/mapper/CourseAdministerMappingMapper.xml delete mode 100644 src/main/resources/mapper/CourseStudentStatusHistoryMapper.xml delete mode 100644 src/main/resources/mapper/CourseTreeExerciseStudentResultMapper.xml delete mode 100644 src/main/resources/mapper/CourseTreeVodStudentResultMapper.xml delete mode 100644 src/main/resources/mapper/CourseVodTressStudentResultMapper.xml delete mode 100644 src/main/resources/mapper/ExerciseCourseTreeMappingMapper.xml delete mode 100644 src/main/resources/mapper/ExerciseDoneHistoryMapper.xml delete mode 100644 src/main/resources/mapper/ExerciseExpandMappingMapper.xml delete mode 100644 src/main/resources/mapper/ExerciseRelatedMappingMapper.xml delete mode 100644 src/main/resources/mapper/ExerciseTreeMappingMapper.xml delete mode 100644 src/main/resources/mapper/ExerciseUserInfoMapper.xml delete mode 100644 src/main/resources/mapper/KnowledgeSubjectDictMapper.xml delete mode 100644 src/main/resources/mapper/LaboratoryAttendanceMappingMapper.xml delete mode 100644 src/main/resources/mapper/LaboratoryDictMapper.xml delete mode 100644 src/main/resources/mapper/LaboratoryDictMappingMapper.xml delete mode 100644 src/main/resources/mapper/LaboratorySessionMappingMapper.xml delete mode 100644 src/main/resources/mapper/LaboratoryUserMappingMapper.xml delete mode 100644 src/main/resources/mapper/SessionsDictMapper.xml delete mode 100644 src/main/resources/mapper/SmsCodeMapper.xml delete mode 100644 src/main/resources/mapper/SubjectDictMapper.xml delete mode 100644 src/main/resources/mapper/SubjectDimensionDictMapper.xml delete mode 100644 src/main/resources/mapper/SubjectDimensionStarDictMapper.xml delete mode 100644 src/main/resources/mapper/SubjectRuleMapper.xml delete mode 100644 src/main/resources/mapper/SubjectSemesterMapper.xml delete mode 100644 src/main/resources/mapper/SubjectStarTreeMappingMapper.xml delete mode 100644 src/main/resources/mapper/SubjectStudentAnswerStarMapper.xml delete mode 100644 src/main/resources/mapper/SubjectTestDictMapper.xml delete mode 100644 src/main/resources/mapper/SubjectTestGradeExampleMappingMapper.xml delete mode 100644 src/main/resources/mapper/SubjectTestGradeStarMappingMapper.xml delete mode 100644 src/main/resources/mapper/SubjectTestPublishGradeMapper.xml delete mode 100644 src/main/resources/mapper/SubjectTestPublishHistoryMapper.xml delete mode 100644 src/main/resources/mapper/SubjectTestStudentAnswerMapper.xml delete mode 100644 src/main/resources/mapper/SubjectTreeMapper.xml delete mode 100644 src/main/resources/mapper/TaskCompletionStatusMapper.xml delete mode 100644 src/main/resources/mapper/TaskContentDoneInfoMapper.xml delete mode 100644 src/main/resources/mapper/TaskContentMapper.xml delete mode 100644 src/main/resources/mapper/TaskDoneHistoryMapper.xml delete mode 100644 src/main/resources/mapper/UserRoleCopy1Mapper.xml delete mode 100644 src/main/resources/mapper/UserRoleMapper.xml delete mode 100644 src/main/resources/mapper/UserSubjectMappingMapper.xml delete mode 100644 src/main/resources/mapper/UserSubjectPermissionDictMapper.xml delete mode 100644 src/main/resources/mapper/UuidHistoryMapper.xml delete mode 100644 src/main/resources/mapper/VodSubjectTreeMappingMapper.xml delete mode 100644 src/main/resources/mapper/WrittenHomeworkMapper.xml diff --git a/src/main/java/com/meishu/MeishuApplication.java b/src/main/java/com/meishu/MeishuApplication.java deleted file mode 100644 index 986f2e8..0000000 --- a/src/main/java/com/meishu/MeishuApplication.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu; - -import com.alibaba.druid.support.http.StatViewServlet; -import org.mybatis.spring.annotation.MapperScan; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.web.servlet.ServletRegistrationBean; -import org.springframework.context.annotation.Bean; -import org.springframework.scheduling.annotation.EnableAsync; -import org.springframework.scheduling.annotation.EnableScheduling; -import org.springframework.web.bind.annotation.RestController; - -@RestController -@SpringBootApplication -@MapperScan(basePackages = {"com.meishu.mapper"}) -@EnableScheduling -@EnableAsync -public class MeishuApplication { - - public static void main(String[] args) { - SpringApplication.run(MeishuApplication.class, args); - } - - @Bean - public ServletRegistrationBean druidStatViewServlet() { - //先配置管理后台的servLet,访问的入口为/druid/ - ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean( - new StatViewServlet(), "/druid/*"); - // IP白名单 (没有配置或者为空,则允许所有访问) - servletRegistrationBean.addInitParameter("allow", "127.0.0.1"); - // IP黑名单 (存在共同时,deny优先于allow) - servletRegistrationBean.addInitParameter("deny", ""); - servletRegistrationBean.addInitParameter("loginUsername", "admin"); - servletRegistrationBean.addInitParameter("loginPassword", "yhkl1234"); - servletRegistrationBean.addInitParameter("resetEnable", "false"); - return servletRegistrationBean; - } - -} diff --git a/src/main/java/com/meishu/common/Code.java b/src/main/java/com/meishu/common/Code.java deleted file mode 100644 index 8aa1868..0000000 --- a/src/main/java/com/meishu/common/Code.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.common; - -public enum Code { - - USERNAMENOTFOUND(10001, "用户不存在"), - BADCREDENTIALS(10002,"账户或者密码错误"), - ACCOUNTEXPIRED(10003,"账户过期"), - LOCKEDEXCEPTION(10004, "账户已锁定"), - DISABLEDEXCEPTION(10005,"账户已禁用"), - ACCESSDENIED(10006,"无权限访问"), - AUTHENTICATION(10007,"身份验证异常"), - NOHANDLERFOUND(10008,"找不到相应的视图处理器"), - PARAM_INVALID(10009, "参数不合法"), - TOKEN_EXCEPTION(10010, "Token不合法"), - TOKEN_EXPIRED(10011, "Token已过期"), - OSS_ERROR(10012, "OSS文件上传异常"), - Network_ERROR(90000, "网络请求失败"), - SERVER_INTERNAL_ERROR(99999, "服务器内部错误"), - ; - - private Integer code; - - private String message; - - Code(Integer code, String message) { - this.code = code; - this.message = message; - } - - public Integer getCode() { - return code; - } - - public void setCode(Integer code) { - this.code = code; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } -} diff --git a/src/main/java/com/meishu/common/ResponseData.java b/src/main/java/com/meishu/common/ResponseData.java deleted file mode 100644 index c80c3a8..0000000 --- a/src/main/java/com/meishu/common/ResponseData.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.meishu.common; - -import com.meishu.common.configure.RemoteProperties; -import lombok.Data; -import org.springframework.boot.context.properties.EnableConfigurationProperties; - -/** - * 返回数据 - * - * @author DengMin - * @date 2019/08/27 13:57 - **/ -@Data -@EnableConfigurationProperties(RemoteProperties.class) -public class ResponseData { - - public static ResponseVO generateCreatedResponse(int code) { - return (ResponseVO) ResponseVO.builder() - .code(code) - .message(RemoteProperties.getMessage(code)) - .build(); - } - - public static ResponseVO generateCreatedResponse(int code, String message) { - return (ResponseVO) ResponseVO.builder() - .code(code) - .message(message) - .build(); - } - - public static ResponseVO generateCreatedResponse(int code, T data) { - return (ResponseVO) ResponseVO.builder() - .code(code) - .message(RemoteProperties.getMessage(code)) - .data(data) - .build(); - } - - public static ResponseVO generateCreatedResponse(int code, String message, T data) { - return (ResponseVO) ResponseVO.builder() - .code(code) - .message(message) - .data(data) - .build(); - } - - public static ResponseVO generateCreatedResponse(int code, String message, String path) { - return (ResponseVO) ResponseVO.builder() - .code(code) - .message(message) - .path(path) - .build(); - } -} \ No newline at end of file diff --git a/src/main/java/com/meishu/common/ResponseVO.java b/src/main/java/com/meishu/common/ResponseVO.java deleted file mode 100644 index 7cc4173..0000000 --- a/src/main/java/com/meishu/common/ResponseVO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.common; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -@Data -@Builder -@AllArgsConstructor -@NoArgsConstructor -public class ResponseVO { - - private Integer code; - - private String message; - - private T data; - - private String path; -} \ No newline at end of file diff --git a/src/main/java/com/meishu/common/configure/AliyunSmsProperties.java b/src/main/java/com/meishu/common/configure/AliyunSmsProperties.java deleted file mode 100644 index d47f388..0000000 --- a/src/main/java/com/meishu/common/configure/AliyunSmsProperties.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.meishu.common.configure; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; - -@Data -@Component -@ConfigurationProperties(prefix = "sms") -public class AliyunSmsProperties { - - private String product; - - private String domain; - - private String accessKeyId; - - private String accessKeySecret; -} diff --git a/src/main/java/com/meishu/common/configure/MybatisPlusConfig.java b/src/main/java/com/meishu/common/configure/MybatisPlusConfig.java deleted file mode 100644 index a95a738..0000000 --- a/src/main/java/com/meishu/common/configure/MybatisPlusConfig.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.meishu.common.configure; - -import com.baomidou.mybatisplus.annotation.DbType; -import com.baomidou.mybatisplus.core.config.GlobalConfig; -import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; -import com.meishu.common.handler.MetaHandler; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * @author: tuyp - * @create: 2020-08-12 12:01 - */ -@Configuration -@ConditionalOnClass(value = {PaginationInterceptor.class}) -public class MybatisPlusConfig { - - /** - * 分页 - * @return - */ - @Bean - public PaginationInterceptor paginationInterceptor(){ - PaginationInterceptor paginationInterceptor = new PaginationInterceptor(); - paginationInterceptor.setDialectType(DbType.MYSQL.getDb()); - return paginationInterceptor; - } -// -// /** -// * 打印 sql -// */ -// @Bean -// public PerformanceInterceptor performanceInterceptor() { -// PerformanceInterceptor performanceInterceptor = new PerformanceInterceptor(); -// //格式化sql语句 -// Properties properties = new Properties(); -// properties.setProperty("format", "false"); -// performanceInterceptor.setProperties(properties); -// return performanceInterceptor; -// } - - /** - * 自动填充功能 - * @return - */ - @Bean - public GlobalConfig globalConfig() { - GlobalConfig globalConfig = new GlobalConfig(); - globalConfig.setMetaObjectHandler(new MetaHandler()); - return globalConfig; - } - -} diff --git a/src/main/java/com/meishu/common/configure/RemoteProperties.java b/src/main/java/com/meishu/common/configure/RemoteProperties.java deleted file mode 100644 index 043c5e9..0000000 --- a/src/main/java/com/meishu/common/configure/RemoteProperties.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.meishu.common.configure; - -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.annotation.PropertySource; -import org.springframework.stereotype.Component; - -import java.util.HashMap; -import java.util.Map; - -/** - *

- * 读取状态码 - *

- * - * @author DengMin - * @date Created in 2020/08/24 - */ -@Component -@ConfigurationProperties(prefix = "meishu") -@PropertySource(value = "classpath:code.properties", encoding = "UTF-8") -public class RemoteProperties { - - private static Map codeMessage = new HashMap<>(); - - public static String getMessage(Integer code) { - return codeMessage.get(code); - } - - public Map getCodeMessage() { - return codeMessage; - } - - public void setCodeMessage(Map codeMessage) { - RemoteProperties.codeMessage = codeMessage; - } -} \ No newline at end of file diff --git a/src/main/java/com/meishu/common/configure/RestTemplateConfig.java b/src/main/java/com/meishu/common/configure/RestTemplateConfig.java deleted file mode 100644 index 5f9887c..0000000 --- a/src/main/java/com/meishu/common/configure/RestTemplateConfig.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.common.configure; - -import org.springframework.context.annotation.Bean; -import org.springframework.http.MediaType; -import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; -import org.springframework.stereotype.Component; -import org.springframework.web.client.RestTemplate; - -import java.util.ArrayList; -import java.util.List; - -@Component -public class RestTemplateConfig { - - @Bean - public RestTemplate restTemplate() { - RestTemplate restTemplate = new RestTemplate(); - restTemplate.getMessageConverters().add(new WxMappingJackson2HttpMessageConverter()); - return restTemplate; - } - - public class WxMappingJackson2HttpMessageConverter extends MappingJackson2HttpMessageConverter { - public WxMappingJackson2HttpMessageConverter(){ - List mediaTypes = new ArrayList<>(); - mediaTypes.add(MediaType.TEXT_PLAIN); - mediaTypes.add(MediaType.TEXT_HTML); - setSupportedMediaTypes(mediaTypes); - } - } - -} diff --git a/src/main/java/com/meishu/common/configure/SwaggerConfig.java b/src/main/java/com/meishu/common/configure/SwaggerConfig.java deleted file mode 100644 index ae3f471..0000000 --- a/src/main/java/com/meishu/common/configure/SwaggerConfig.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.common.configure; - -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import springfox.documentation.builders.ApiInfoBuilder; -import springfox.documentation.builders.PathSelectors; -import springfox.documentation.builders.RequestHandlerSelectors; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spring.web.plugins.Docket; -import springfox.documentation.swagger2.annotations.EnableSwagger2; - -@Configuration -@EnableSwagger2 -public class SwaggerConfig { - @Bean - public Docket createRestApi() { - return new Docket(DocumentationType.SWAGGER_2) - .pathMapping("/") - .select() - .apis(RequestHandlerSelectors.basePackage("com.meishu")) - .paths(PathSelectors.any()) - .build().apiInfo(new ApiInfoBuilder() - .title("市西cms") - .description("接口文档规范") - .version("1.0") -// .contact(new Contact("啊啊啊啊","www.youkehulian.com","tcp@meishu.com")) -// .license("The Apache License") -// .licenseUrl("http://www.baidu.com") - .build()); - } -} diff --git a/src/main/java/com/meishu/common/configure/VODConfig.java b/src/main/java/com/meishu/common/configure/VODConfig.java deleted file mode 100644 index 0b42810..0000000 --- a/src/main/java/com/meishu/common/configure/VODConfig.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.common.configure; - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.stereotype.Component; - -/** - * @author: tuyp - * @create: 2020-06-01 16:46 - */ -@Component -@Data -@ConfigurationProperties(prefix = "vod") -public class VODConfig { - - private String appId; - - private String secretId; - - private String secretKey; - - private String api; - - private String region; -} diff --git a/src/main/java/com/meishu/common/configure/WebConfig.java b/src/main/java/com/meishu/common/configure/WebConfig.java deleted file mode 100644 index a8b746a..0000000 --- a/src/main/java/com/meishu/common/configure/WebConfig.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.meishu.common.configure; - -import com.meishu.common.interceptor.AuthenticationInterceptor; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.annotation.Configuration; -import org.springframework.web.servlet.config.annotation.CorsRegistry; -import org.springframework.web.servlet.config.annotation.InterceptorRegistry; -import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -/** - * @author DengMin - * @date 2020/07/06 - **/ -@Configuration -public class WebConfig implements WebMvcConfigurer { - - @Autowired - private AuthenticationInterceptor authenticationInterceptor; - - /** - * 跨域支持 - * - * @param registry - */ - @Override - public void addCorsMappings(CorsRegistry registry) { - registry.addMapping("/**") -// .allowCredentials(true) - .allowedOrigins("*") - .allowedMethods("GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS") - .maxAge(3600); - } - - /** - * Swagger - * @param registry - */ - @Override - public void addResourceHandlers(ResourceHandlerRegistry registry) { - registry.addResourceHandler("/**").addResourceLocations("classpath:/static/"); - registry.addResourceHandler("swagger-ui.html") - .addResourceLocations("classpath:/META-INF/resources/"); - registry.addResourceHandler("/webjars/**") - .addResourceLocations("classpath:/META-INF/resources/webjars/"); - } - - /** - * 鉴权 - * @param registry - */ - @Override - public void addInterceptors(InterceptorRegistry registry) { - registry.addInterceptor(authenticationInterceptor) - .excludePathPatterns("/static/*") - .addPathPatterns("/**"); - } - - - -} \ No newline at end of file diff --git a/src/main/java/com/meishu/common/configure/WebLogAspect.java b/src/main/java/com/meishu/common/configure/WebLogAspect.java deleted file mode 100644 index c4deaf1..0000000 --- a/src/main/java/com/meishu/common/configure/WebLogAspect.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.meishu.common.configure; - -import org.aspectj.lang.JoinPoint; -import org.aspectj.lang.annotation.*; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.stereotype.Component; -import org.springframework.web.context.request.RequestAttributes; -import org.springframework.web.context.request.RequestContextHolder; -import org.springframework.web.context.request.ServletRequestAttributes; - -import javax.servlet.http.HttpServletRequest; -import java.util.Arrays; - -@Aspect -@Component -public class WebLogAspect { - - private final Logger logger = LoggerFactory.getLogger(WebLogAspect.class); - - @Pointcut("execution(public * com.meishu.controller.*.*(..))")//切入点描述 这个是controller包的切入点 - public void controllerLog(){}//签名,可以理解成这个切入点的一个名称 - - @Pointcut("execution(public * com.meishu.controller.*.*(..))") - public void serviceImplLog(){} - - @Before("controllerLog()") //在切入点的方法run之前要干的 - public void logBeforeController(JoinPoint joinPoint) { - - - RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); - //这个RequestContextHolder是Springmvc提供来获得请求的东西 - HttpServletRequest request = ((ServletRequestAttributes)requestAttributes).getRequest(); - - // 记录下请求内容 - logger.info("####requestUrl : " + request.getRequestURL().toString()); - logger.info("####requestParam : " + Arrays.toString(joinPoint.getArgs())); - - } - -// @Around("serviceImplLog()") -// public Object afterController(ProceedingJoinPoint proceedingJoinPoint) { -// -// Object result = null; -// -// try{ -// result = proceedingJoinPoint.proceed(); -// logger.info("====reulst"+result); -// }catch (Throwable e){ -// MyException myException =(MyException)e; -// throw myException; -// } -// return result; -// } - -} \ No newline at end of file diff --git a/src/main/java/com/meishu/common/configure/WechatConfig.java b/src/main/java/com/meishu/common/configure/WechatConfig.java deleted file mode 100644 index 042038f..0000000 --- a/src/main/java/com/meishu/common/configure/WechatConfig.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.common.configure; - - -import lombok.Data; -import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.context.annotation.Configuration; - -@Data -@Configuration -@ConfigurationProperties(prefix = "wechat") -public class WechatConfig { - - private String appId; - - private String appSecret; - - private String msgUrl; - - private String templateId; - - private String agentId; - - -} diff --git a/src/main/java/com/meishu/common/constant/AttendanceConstant.java b/src/main/java/com/meishu/common/constant/AttendanceConstant.java deleted file mode 100644 index 33b119d..0000000 --- a/src/main/java/com/meishu/common/constant/AttendanceConstant.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.meishu.common.constant; - -public class AttendanceConstant { - - /** - * 创建预约api - */ - public static final String CREATE_TOPIC_URL = "https://open.api.roomis.com.cn/api/my/booking/spaces/{spaceId}/events"; - - /** - * 考勤api - */ - public static final String GET_ATTENDANCE_URL = "https://open.api.roomis.com.cn/api/attendance/{id}"; - - /** - * 创建人ID - */ - public static Long organizerId = 200000222L; - - /** - * 开始时间 - */ - public static String startTime = "07:00:00"; - - /** - * 结束时间 - */ - public static String endTime = "21:00:00"; -} diff --git a/src/main/java/com/meishu/common/constant/Code.java b/src/main/java/com/meishu/common/constant/Code.java deleted file mode 100644 index 58388c5..0000000 --- a/src/main/java/com/meishu/common/constant/Code.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.common.constant; - -import lombok.Getter; - -@Getter -public enum Code { - - USERNAMENOTFOUND(1001, "用户不存在"), - BADCREDENTIALS(1002,"账户或者密码错误"), - ACCOUNTEXPIRED(1003,"账户过期"), - LOCKEDEXCEPTION(1004, "账户已锁定"), - DISABLEDEXCEPTION(1005,"账户已禁用"), - ACCESSDENIED(1006,"无权限访问"), - AUTHENTICATION(1007,"身份验证异常"), - NOHANDLERFOUND(1008,"找不到相应的视图处理器"), - PARAM_INVALID(1009, "参数不合法"), - TOKEN_EXCEPTION(1010, "无效的令牌"), - TOKEN_EXPIRED(1011, "令牌已过期"), - TOKEN_VERIFICATION_FAILED(1013, "令牌验证失败"), - OSS_ERROR(1012, "OSS文件上传异常"), - Network_ERROR(9000, "网络请求失败"), - SERVER_INTERNAL_ERROR(99999, "服务器内部错误"), - ; - - private Integer code; - - private String message; - - Code(Integer code, String message) { - this.code = code; - this.message = message; - } -} diff --git a/src/main/java/com/meishu/common/constant/WxConstant.java b/src/main/java/com/meishu/common/constant/WxConstant.java deleted file mode 100644 index b9ad76d..0000000 --- a/src/main/java/com/meishu/common/constant/WxConstant.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.meishu.common.constant; - -public class WxConstant { - - /** - * app id - */ - public static final String APPID = "wx75ec06e9ce50ef73"; - - /** - * 秘钥 - */ - public static final String SECRENT = "c039d32804278503474dfcf7cb3944b9"; - - /** - * 获取访问用户身份 - */ - public static final String GETUSERINFO = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token={access_token}&code={code}"; - - /** - * 读取成员 - */ - public static final String GET = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token={access_token}&userid={userid}"; - - /** - * 获取access_token - */ - public static final String GET_SUITE_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={secret}"; - - - /** - * 扫码登陆回调地址 - */ - public static final String QR_REDIRECT_URL = "http://massadmin.youkehulian.com"; -} diff --git a/src/main/java/com/meishu/common/exception/GlobalExceptionHandler.java b/src/main/java/com/meishu/common/exception/GlobalExceptionHandler.java deleted file mode 100644 index f20187c..0000000 --- a/src/main/java/com/meishu/common/exception/GlobalExceptionHandler.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.meishu.common.exception; - -import com.baomidou.mybatisplus.core.toolkit.StringUtils; -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.configure.RemoteProperties; -import com.meishu.common.constant.Code; -import lombok.extern.slf4j.Slf4j; -import org.apache.poi.ss.formula.functions.T; -import org.springframework.http.converter.HttpMessageNotReadableException; -import org.springframework.validation.BindException; -import org.springframework.web.HttpRequestMethodNotSupportedException; -import org.springframework.web.bind.MethodArgumentNotValidException; -import org.springframework.web.bind.annotation.ExceptionHandler; -import org.springframework.web.bind.annotation.RestControllerAdvice; -import org.springframework.web.servlet.NoHandlerFoundException; - -import javax.servlet.http.HttpServletRequest; -import java.util.ArrayList; -import java.util.List; - -/** - * 异常处理 - * @author DengMin - * @date 2020/07/14 - **/ -@Slf4j -@RestControllerAdvice -public class GlobalExceptionHandler { - - /** - * 自定义异常 - * @param e - * @return - */ - @ExceptionHandler(value = HttpException.class) - public ResponseVO handlerException(HttpServletRequest request, HttpException e) { - String message = RemoteProperties.getMessage(e.getCode()); - if(StringUtils.isBlank(message)) { - message = e.getMessage(); - } - String url = request.getRequestURI(); - return ResponseData.generateCreatedResponse(e.getCode(), message, url); - } - - /** - * 404 - * @param request - * @return - */ - @ExceptionHandler(value = NoHandlerFoundException.class) - public ResponseVO NoHandlerFoundException(HttpServletRequest request) { - String url = request.getRequestURI(); - return ResponseData.generateCreatedResponse(Code.NOHANDLERFOUND.getCode(), Code.NOHANDLERFOUND.getMessage(), url); - } - - /** - * 请求方式错误 - * @param request - * @return - */ - @ExceptionHandler(value = HttpRequestMethodNotSupportedException.class) - public ResponseVO HttpRequestMethodNotSupportedException(HttpServletRequest request) { - String url = request.getRequestURI(); - return ResponseData.generateCreatedResponse(Code.NOHANDLERFOUND.getCode(), Code.NOHANDLERFOUND.getMessage(), url); - } - - /** - * 参数不合法 - * @param e - * @return - */ - @ExceptionHandler(MethodArgumentNotValidException.class) - public ResponseVO validateException(MethodArgumentNotValidException e){ - final List errList = new ArrayList<>(); - e.getBindingResult().getAllErrors().stream().forEach(x -> { - errList.add(x.getDefaultMessage()); - }); - return ResponseData.generateCreatedResponse(Code.PARAM_INVALID.getCode(), Code.PARAM_INVALID.getMessage(), errList.toString()); - } - - /** - * JSON 序列化异常 - * @param e - * @return - */ - @ExceptionHandler(HttpMessageNotReadableException.class) - public ResponseVO exceptionHandler(HttpMessageNotReadableException e) { - log.error(e.getMessage()); - return ResponseData.generateCreatedResponse(Code.PARAM_INVALID.getCode(), Code.PARAM_INVALID.getMessage()+":{"+e.getMessage()+"}"); - } - - /** - * 校验异常 - * @param e - * @return - */ - @ExceptionHandler(BindException.class) - public ResponseVO BindException(BindException e){ - final List errList = new ArrayList<>(); - e.getBindingResult().getAllErrors().stream().forEach(x -> { - errList.add(x.getDefaultMessage()); - }); - return ResponseData.generateCreatedResponse(Code.PARAM_INVALID.getCode(), Code.PARAM_INVALID.getMessage(), errList.toString()); - } - - /** - * 服务器内部错误 - * @return - */ - @ExceptionHandler(value = Exception.class) - public ResponseVO serverInternalError(Exception e, HttpServletRequest request) { - String url = request.getRequestURI(); - log.error("path:"+url); - log.error("---- error message: ---"+e.toString()); - return ResponseData.generateCreatedResponse(Code.SERVER_INTERNAL_ERROR.getCode(), Code.SERVER_INTERNAL_ERROR.getMessage(), url); - } -} \ No newline at end of file diff --git a/src/main/java/com/meishu/common/exception/HttpException.java b/src/main/java/com/meishu/common/exception/HttpException.java deleted file mode 100644 index d38b63a..0000000 --- a/src/main/java/com/meishu/common/exception/HttpException.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.common.exception; - - -import com.meishu.common.configure.RemoteProperties; - -/** - * 异常处理 - * @author DengMin - * @date 2020/08/12 - **/ -public class HttpException extends RuntimeException{ - - private Integer code; - - private String message; - - public Integer getCode() { - return code; - } - - public void setCode(Integer code) { - this.code = code; - } - - @Override - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public HttpException(Integer code) { - super(RemoteProperties.getMessage(code)); - String message = RemoteProperties.getMessage(code); - this.message = message; - this.code = code; - } - - public HttpException(Integer code, String message) { - this.message = message; - this.code = code; - } -} diff --git a/src/main/java/com/meishu/common/handler/MetaHandler.java b/src/main/java/com/meishu/common/handler/MetaHandler.java deleted file mode 100644 index 3d42a8f..0000000 --- a/src/main/java/com/meishu/common/handler/MetaHandler.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.common.handler; - -import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; -import org.apache.ibatis.reflection.MetaObject; -import org.springframework.stereotype.Component; - -import java.time.LocalDateTime; - -/** - * 填充配置 - * @author DengMin - * @date 2020/07/21 - **/ -@Component -public class MetaHandler implements MetaObjectHandler { - - @Override - public void insertFill(MetaObject metaObject) { - this.setFieldValByName("createDate", LocalDateTime.now(), metaObject); - } - - @Override - public void updateFill(MetaObject metaObject) { - this.setFieldValByName("updateDate", LocalDateTime.now(), metaObject); - } -} diff --git a/src/main/java/com/meishu/common/interceptor/AuthenticationInterceptor.java b/src/main/java/com/meishu/common/interceptor/AuthenticationInterceptor.java deleted file mode 100644 index a3dc6e7..0000000 --- a/src/main/java/com/meishu/common/interceptor/AuthenticationInterceptor.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.meishu.common.interceptor; - -import com.auth0.jwt.interfaces.Claim; -import com.baomidou.mybatisplus.core.toolkit.StringUtils; -import com.meishu.common.exception.HttpException; -import com.meishu.mapper.AdministerMapper; -import com.meishu.model.AdministerDO; -import com.meishu.util.JwtUtil; -import com.meishu.util.Localstorage; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; -import org.springframework.web.method.HandlerMethod; -import org.springframework.web.servlet.HandlerInterceptor; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.lang.reflect.Method; -import java.util.Map; - -/** - *

- * 鉴权拦截器 - *

- * - * @author DengMin - * @since 2021/4/14 - */ -@Component -public class AuthenticationInterceptor implements HandlerInterceptor { - - - @Autowired - private AdministerMapper administerMapper; - - @Override - public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { - // 不需要进行拦截 - if (!(handler instanceof HandlerMethod)) { - return true; - } - - HandlerMethod handlerMethod = (HandlerMethod) handler; - Method method = handlerMethod.getMethod(); - LoginRequired methodAnnotation = method.getAnnotation(LoginRequired.class); - if (methodAnnotation != null) { - String authorization = request.getHeader("Authorization"); - if (!StringUtils.isBlank(authorization)) { - String token = authorization; - if (authorization.startsWith("Bearer")) { - token = authorization.replace("Bearer ", ""); - } - /*Token不存在*/ - if (token == null || JwtUtil.isExpired(token) || !JwtUtil.verifyToken(token)) { - throw new HttpException(1010); - } - - Map claimMap = JwtUtil.getClaims(token); - if (claimMap != null) { - String[] role = methodAnnotation.value(); - String type = claimMap.get("type").asString(); - if (role.length > 0) { - if ("administer".equals(type)) { - AdministerDO administerDO = administerMapper.selectById(claimMap.get("id").asLong()); - if (administerDO != null) { - Localstorage.setUser(administerDO); - return true; - } - } else { - throw new HttpException(1010); - } - } else { - AdministerDO administerDO = administerMapper.selectById(claimMap.get("id").asLong()); - if (administerDO != null) { - Localstorage.setUser(administerDO); - return true; - } - } - } -// return true; - } - throw new HttpException(1010); - } - return true; - } -} diff --git a/src/main/java/com/meishu/common/interceptor/LoginRequired.java b/src/main/java/com/meishu/common/interceptor/LoginRequired.java deleted file mode 100644 index 0dab707..0000000 --- a/src/main/java/com/meishu/common/interceptor/LoginRequired.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.common.interceptor; - -import java.lang.annotation.*; - -/** - *

- * 自定义验证登陆注解 - *

- * - * @author DengMin - * @since 2020/12/18 - */ -@Target({ElementType.METHOD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -@Inherited -public @interface LoginRequired { - - String[] value(); -} \ No newline at end of file diff --git a/src/main/java/com/meishu/common/schedule/ChangeStudentStatus.java b/src/main/java/com/meishu/common/schedule/ChangeStudentStatus.java deleted file mode 100644 index 5b16f0a..0000000 --- a/src/main/java/com/meishu/common/schedule/ChangeStudentStatus.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.common.schedule; - -import com.meishu.mapper.StudentMapper; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -@Component -public class ChangeStudentStatus { - - @Autowired - private StudentMapper studentMapper; - - @Scheduled(cron = "0 30 20 * * ?") - public void changeStudentStatus(){ - System.out.println("========="); - studentMapper.changeStudentStatus(); - } - -} diff --git a/src/main/java/com/meishu/controller/AccessTokenController.java b/src/main/java/com/meishu/controller/AccessTokenController.java deleted file mode 100644 index 186f3a7..0000000 --- a/src/main/java/com/meishu/controller/AccessTokenController.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.token.GetAllStudentsDTO; -import com.meishu.dto.token.GetAllTeachersDTO; -import com.meishu.model.AdministerDO; -import com.meishu.model.UserRoleDO; -import com.meishu.service.AccessTokenService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-10 - */ -@RestController -@Api(tags = "公共接口") -@RequestMapping("/public") -public class AccessTokenController { - - @Autowired - private AccessTokenService accessTokenService; - - @PostMapping("getAllTeachers") - public ResponseVO getAllTeachers(@RequestBody GetAllTeachersDTO getAllTeachersDTO){ - return ResponseData.generateCreatedResponse(0,accessTokenService.getAllTeachers(getAllTeachersDTO)); - } - - @PostMapping("getAllStudents") - public ResponseVO getAllStudents(@RequestBody GetAllStudentsDTO getAllStudentsDTO){ - return ResponseData.generateCreatedResponse(0,accessTokenService.getAllStudents(getAllStudentsDTO)); - } - -} diff --git a/src/main/java/com/meishu/controller/AdministerController.java b/src/main/java/com/meishu/controller/AdministerController.java deleted file mode 100644 index 2845495..0000000 --- a/src/main/java/com/meishu/controller/AdministerController.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.administer.AddAdministerDTO; -import com.meishu.dto.administer.ChangeStatusDTO; -import com.meishu.dto.administer.PublishTasksDTO; -import com.meishu.dto.administer.UpdateAdministerDTO; -import com.meishu.dto.exercise.UpdateStatusDTO; -import com.meishu.dto.test.PublishTestDTO; -import com.meishu.model.AdministerDO; -import com.meishu.model.SmsCodeDO; -import com.meishu.service.AdministerService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; - -/** - *

- * 中心管理账户表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@RestController -@Api(tags= "管理平台用户") -@RequestMapping("/administer") -public class AdministerController { - - @Autowired - private AdministerService administerService; - - @PostMapping("sendMsg") - @ApiOperation("发送短信验证码 {telephone}") - public ResponseVO sendMsg(@RequestBody AdministerDO administerDO){ - return ResponseData.generateCreatedResponse(0,administerService.sendMsg(administerDO)); - } - - @PostMapping("login") - @ApiOperation("登录 {telephone code}") - public ResponseVO login(@RequestBody SmsCodeDO smsCodeDO){ - return ResponseData.generateCreatedResponse(0,administerService.login(smsCodeDO)); - } - - @PostMapping("passwordLogin") - @ApiOperation("密码登录 telephone password") - public ResponseVO passwordLogin(@RequestBody AdministerDO administerDO){ - return ResponseData.generateCreatedResponse(0,administerService.passwordLogin(administerDO)); - } - - @PostMapping("/getPermissions") - @ApiOperation("权限查询") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getPermissions() { - return ResponseData.generateCreatedResponse(0, administerService.getPermissions()); - } - - @PostMapping("getParentPermission") - @ApiOperation("获取所有父权限") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getParentPermission(){ - return ResponseData.generateCreatedResponse(0,administerService.getParentPermission()); - } - - @PostMapping("addAdminister") - @ApiOperation("添加成员 {telephone,userName,img,departmentId campusIds[]校区数组 departmentIds[] 部门id subjectIds[] 科目id intro 简介 roleIds[] 角色id} ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addAdminister(@RequestBody AddAdministerDTO addAdministerDTO){ - return ResponseData.generateCreatedResponse(0,administerService.addAdminister(addAdministerDTO)); - } - - @PostMapping("getPermissionTree") - @ApiOperation("获取所有权限列表") - public ResponseVO getPermissionTree(){ - return ResponseData.generateCreatedResponse(0,administerService.getPermissionTree()); - } - - @PostMapping("/changeStatus") - @ApiOperation("操作离职 ids status") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO changeStatus(@RequestBody ChangeStatusDTO changeStatusDTO){ - return ResponseData.generateCreatedResponse(0,administerService.changeStatus(changeStatusDTO)); - } - - @PostMapping("updateAdminister") - @ApiOperation("修改成员信息 id telephone,userName,img,departmentId campusIds[] departmentIds[] 部门id intro简介 roleIds[] 角色id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateAdminister(@RequestBody UpdateAdministerDTO updateAdministerDTO){ - return ResponseData.generateCreatedResponse(0,administerService.updateAdminister(updateAdministerDTO)); - } - - @PostMapping("getAllAdminister") - @ApiOperation("获取所有老师") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllAdminister(){ - return ResponseData.generateCreatedResponse(0,administerService.getAllAdminister()); - } - - -} diff --git a/src/main/java/com/meishu/controller/AdministerDepartmentMappingController.java b/src/main/java/com/meishu/controller/AdministerDepartmentMappingController.java deleted file mode 100644 index ece777b..0000000 --- a/src/main/java/com/meishu/controller/AdministerDepartmentMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 老师部门映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -@RestController -@Api(tags = "老师部门映射表") -@RequestMapping("/administer-department-mapping-do") -public class AdministerDepartmentMappingController { - -} diff --git a/src/main/java/com/meishu/controller/AdministerPermissionController.java b/src/main/java/com/meishu/controller/AdministerPermissionController.java deleted file mode 100644 index 6a7abe5..0000000 --- a/src/main/java/com/meishu/controller/AdministerPermissionController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 系统用户角色表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@RestController -@Api(tags = "系统用户角色表") -@RequestMapping("/administerPermission") -public class AdministerPermissionController { - -} diff --git a/src/main/java/com/meishu/controller/AdministerSubjectMappingController.java b/src/main/java/com/meishu/controller/AdministerSubjectMappingController.java deleted file mode 100644 index c94e5d3..0000000 --- a/src/main/java/com/meishu/controller/AdministerSubjectMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 老师科目映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -@RestController -@Api(tags = "老师科目映射表") -@RequestMapping("/administer-subject-mapping-do") -public class AdministerSubjectMappingController { - -} diff --git a/src/main/java/com/meishu/controller/AnsweringQuestionController.java b/src/main/java/com/meishu/controller/AnsweringQuestionController.java deleted file mode 100644 index 956fcc5..0000000 --- a/src/main/java/com/meishu/controller/AnsweringQuestionController.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.question.QueryQuestionsDTO; -import com.meishu.model.AnsweringQuestionDO; -import com.meishu.model.UserSubjectPermissionDictDO; -import com.meishu.service.AnsweringQuestionService; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 问题答疑表 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@RestController -@Api(tags = "问题答疑表") -@RequestMapping("/answeringQuestion") -public class AnsweringQuestionController { - - @Autowired - private AnsweringQuestionService answeringQuestionService; - - @PostMapping("queryQuestions") - @ApiOperation("获取某个科目里的答疑{pageNum pageSize userName startDate endDate subjectId}") - public ResponseVO queryQuestions(@RequestBody QueryQuestionsDTO queryQuestionsDTO){ - return ResponseData.generateCreatedResponse(0,answeringQuestionService.queryQuestions(queryQuestionsDTO)); - } - - @PostMapping("deleteQuestion") - @ApiOperation("删除某个答疑 {id}") - public ResponseVO deleteQuestion(@RequestBody AnsweringQuestionDO answeringQuestionDO){ - return ResponseData.generateCreatedResponse(0,answeringQuestionService.deleteQuestion(answeringQuestionDO)); - } - - @PostMapping("queryOneQuestion") - @ApiOperation("查看单个答疑 {id}") - public ResponseVO queryOneQuestion(@RequestBody AnsweringQuestionDO answeringQuestionDO){ - return ResponseData.generateCreatedResponse(0,answeringQuestionService.queryOneQuestion(answeringQuestionDO)); - } - - @PostMapping("getClassQuestions") - @ApiOperation("查询老师的班级 {userId 教师id}") - public ResponseVO getClassQuestions(@RequestBody UserSubjectPermissionDictDO userSubjectPermissionDictDO){ - return ResponseData.generateCreatedResponse(0,answeringQuestionService.getClassQuestions(userSubjectPermissionDictDO)); - } - - @PostMapping("addQuestion") - @ApiOperation("新增答疑 {subjectId 科目id askId 学生id title:问题}") - public ResponseVO addQuestion(@RequestBody AnsweringQuestionDO answeringQuestionDO){ - return ResponseData.generateCreatedResponse(0,answeringQuestionService.addQuestion(answeringQuestionDO)); - } - - @PostMapping("answerQuestion") - @ApiOperation("老师回答某个问题 id 主键 answer 答案") - public ResponseVO answerQuestion(@RequestBody AnsweringQuestionDO answeringQuestionDO){ - return ResponseData.generateCreatedResponse(0,answeringQuestionService.answerQuestion(answeringQuestionDO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/ClassSubjectTaskController.java b/src/main/java/com/meishu/controller/ClassSubjectTaskController.java deleted file mode 100644 index 9bb8c49..0000000 --- a/src/main/java/com/meishu/controller/ClassSubjectTaskController.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.task.GetClassStudentsDTO; -import com.meishu.dto.administer.PublishTasksDTO; -import com.meishu.dto.exercise.GetExerciseRequestDTO; -import com.meishu.dto.task.*; -import com.meishu.model.ClassSubjectTaskDO; -import com.meishu.model.ExerciseDictDO; -import com.meishu.model.SubjectTreeDO; -import com.meishu.model.TaskContentDO; -import com.meishu.service.ClassSubjectTaskService; -import com.meishu.vo.task.GetExpandingsPO; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import io.swagger.annotations.Api; - -/** - *

- * 学习任务列表 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@RestController -@Api(tags = "学习任务列表") -@RequestMapping("/classSubjectTask") -public class ClassSubjectTaskController { - - @Autowired - private ClassSubjectTaskService classSubjectTaskService; - - @GetMapping("/code") - public String code(String telephone){ - String code = classSubjectTaskService.code(telephone); - return code; - } - - @PostMapping("getTeacherClass") - @ApiOperation("获取某个老师的班级 {userId:教师id }") - public ResponseVO getTeacherClass(@RequestBody GetClassesRequestVO getClassesRequestVO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getTeacherClass(getClassesRequestVO)); - } - - @PostMapping("publishTasks") - @ApiOperation("老师发布学习任务 {treeName任务名称 taskType任务类型 0:预学作业 1:课后作业 2:每周推荐 treeIds:知识点 taskDate 任务日期 subjectIds 科目id userId 教师id \" +\n" + - "关联视频vodIds 关联习题 relatedIds publishExpandingVOS [ expandingExeIds 习题ids expandingStudents学生ids expandingName拓展习题名字]\" +\n" + - " \" adviceLength:书面作业时间长度 书面作业时间 publishHomeworkVOS[ homeworkType 作业类型 1:附件 2:通知 homeworkContent:内容/附件 fileName 文件名称 fileSize:文件大小 fileType:文件类型 ] }") - public ResponseVO publishTasks(@RequestBody PublishTasksDTO publishTasksDTO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.publishTasks(publishTasksDTO)); - } - - @PostMapping("/getTaskById") - @ApiOperation("通过科目id获取已经发布任务 { subjectId 课程id taskType 任务类型:0 预学作业 1 课后作业 startDate endDate 任务日期 pageSize pageNum}") - public ResponseVO getTaskById(@RequestBody GetTaskByIdRequestDTO getTaskByIdRequestDTO) { - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getTaskById(getTaskByIdRequestDTO)); - } - - @PostMapping("/deletePreTasksById") - @ApiOperation("删除预发布任务 {id 任务id}") - public ResponseVO deletePreTasks(@RequestBody ClassSubjectTaskDO classSubjectTask) { - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.deletePreTasks(classSubjectTask)); - } - - @PostMapping("/queryTaskDetail") - @ApiOperation("通过任务id查看已发布的预学作业/课后作业详情 { id 任务id") - public ResponseVO queryTaskDetail(@RequestBody QueryTaskDetailDTO queryTaskDetailDTO) { - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.queryTaskDetail(queryTaskDetailDTO)); - } - - @PostMapping("/getRelativeExercises") - @ApiOperation("通过知识点获取关联习题 {treeId 知识点id userId 用户id }") - public ResponseVO getRelativeExercises(@RequestBody GetExerciseRequestDTO getExerciseRequestDTO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getRelativeExercises(getExerciseRequestDTO)); - } - - @PostMapping("/perStudentVod") - @ApiOperation("通过任务id查看学生短视频学习情况 { vodId 视频id 任务时间 taskDate taskId 任务id}") - public ResponseVO perStudentVod(@RequestBody GetUserVodPlayDTO getUserVodPlayDTO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.perStudentVod(getUserVodPlayDTO)); - } - - @PostMapping("/perStudentRelateExes") - @ApiOperation("通过任务id查看学生的关联习题完成情况 { taskId 任务id treeId 知识点id subjectId 科目id}") - public ResponseVO perStudentRelateExes(@RequestBody PerStudentExesDTO perStudentExesDTO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.perStudentRelateExes(perStudentExesDTO)); - } - - @PostMapping("/exeRightRatio") - @ApiOperation("习题班级正确率+整体正确率 {任务taskId 科目id treeId 知识点id/拓展习题 exerciseType:0 关联习题 1拓展习题 }") - public ResponseVO exeRightRatio(@RequestBody ExeRightRatioDTO exeRightRatioPO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.exeRightRatio(exeRightRatioPO)); - } - - @PostMapping("/studentRelateDoneInfo") - @ApiOperation("学生个人关联习题的完成度 { userId 学生id taskId:任务id treeId 知识点id }") - public ResponseVO studentRelateDoneInfo(@RequestBody StudentDoneInfoRequestVO studentDoneInfoRequestVO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.studentRelateDoneInfo(studentDoneInfoRequestVO)); - } - - @PostMapping(value = "/getExeById") - @ApiOperation("通过id查询题目 {id 题目id }") - public ResponseVO getExeById(@RequestBody ExerciseDictDO exerciseDict){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getExeById(exerciseDict)); - } - - @PostMapping("/getExpandings") - @ApiOperation("通过id获取拓展题组 {id 拓展题id userId 用户id}") - public ResponseVO getExpandings(@RequestBody GetExpandingsPO getExpandingsPO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getExpandings(getExpandingsPO)); - } - - @PostMapping("/studentxpandingDoneInfo") - @ApiOperation("学生个人拓展习题的完成度 {userId 学生id taskId:任务id treeId 知识点id}") - public ResponseVO studentxpandingDoneInfo(@RequestBody StudentDoneInfoRequestVO studentDoneInfoRequestVO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.studentxpandingDoneInfo(studentDoneInfoRequestVO)); - } - - @PostMapping("/perStudentExpandingExes") - @ApiOperation("通过任务id查看学生的拓展习题完成情况 { taskId 任务id treeId 拓展习题组id }") - public ResponseVO perStudentExpandingExes(@RequestBody PerStudentExesRequestVO perStudentExesRequestVO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.perStudentExpandingExes(perStudentExesRequestVO)); - } - - @PostMapping("/getRecommendVodByTreeId") - @ApiOperation("获取某个学校针对某个知识点的推荐视频 {treeIds 知识点id }") - public ResponseVO getRecommendVodByTreeId(@RequestBody GetRecommendVodByTreeIdVO getRecommendVodByTreeIdVO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getRecommendVodByTreeId(getRecommendVodByTreeIdVO)); - } - - @PostMapping("/getRecommendExeByTreeId") - @ApiOperation("获取某个学校针对某个知识点的推荐习题 {treeIds 知识点id}") - public ResponseVO getRecommendExeByTreeId(@RequestBody GetRecommendExeByTreeIdVO getRecommendVodByTreeIdVO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getRecommendExeByTreeId(getRecommendVodByTreeIdVO)); - } - - @PostMapping("/allNodes") - @ApiOperation("返回知识图谱 {subjectId 科目id}") - public ResponseVO allNodes(@RequestBody SubjectTreeDO knowledgeTree){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.allNodes(knowledgeTree)); - } - - @PostMapping("getClassStudents") - @ApiOperation("获取多个班级里的学生 ids ") - public ResponseVO getClassStudents(@RequestBody GetClassStudentsDTO getClassStudentsDTO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.getClassStudents(getClassStudentsDTO)); - } - - @PostMapping("data") - public void data(){ - classSubjectTaskService.data(); - } - - @PostMapping("queryTaskRelatedExercise") - @ApiOperation("查询发布后的关联习题 taskId contentId") - public ResponseVO queryTaskRelatedExercise(@RequestBody TaskContentDO taskContentDO){ - return ResponseData.generateCreatedResponse(0,classSubjectTaskService.queryTaskRelatedExercise(taskContentDO)); - } - -} diff --git a/src/main/java/com/meishu/controller/ClassesDictController.java b/src/main/java/com/meishu/controller/ClassesDictController.java deleted file mode 100644 index 3ea5565..0000000 --- a/src/main/java/com/meishu/controller/ClassesDictController.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.classes.*; -import com.meishu.dto.exercise.ExeLatexExpressDTO; -import com.meishu.service.ClassesDictService; -import com.meishu.util.LatexUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学校班级字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@RestController -@Api(tags = "学校班级字典表") -@RequestMapping("/classesDict") -public class ClassesDictController { - - @Autowired - private ClassesDictService classesDictService; - - @PostMapping("getClasses") - @ApiOperation("获取行政班级 {className grade session status} ") - public ResponseVO getClasses(@RequestBody GetClassesDTO getClassesDTO) { - return ResponseData.generateCreatedResponse(0, classesDictService.getClasses(getClassesDTO)); - } - - @PostMapping("addClass") - @ApiOperation("添加班级 {classes grade session subjects [] upgradeDate}") - public ResponseVO addClass(@RequestBody AddClassDTO addClassDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.addClass(addClassDTO)); - } - - @PostMapping("updateClass") - @ApiOperation("更新班级 {id grade classes session subject[] upgradeDate}") - public ResponseVO updateClass(@RequestBody AddClassDTO addClassDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.updateClass(addClassDTO)); - } - - @PostMapping("addSubjectTeacherMapping") - @ApiOperation("将某老师配置到某班级的科目下 {addSubjectTeacherMappingDTOS[subjectId 科目id teacherIds[]:老师id ]classId: 班级id }") - public ResponseVO addSubjectTeacherMapping(@RequestBody AddSubjectTeacherDTO addSubjectTeacherDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.addSubjectTeacherMapping(addSubjectTeacherDTO)); - } - - @PostMapping("getClassStudents") - @ApiOperation("获取某班级下的学生 {pageSize pageNum classId :班级id userName 学生 }") - public ResponseVO getClassStudents(@RequestBody GetClassStudentsDTO getClassStudentsDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.getClassStudents(getClassStudentsDTO)); - } - - @PostMapping("queryNoClassStudents") - @ApiOperation("获取没有班级的学生列表 {pageSize pageNum userName }") - public ResponseVO queryNoClassStudents(@RequestBody QueryNoClassStudentsDTO queryNoClassStudentsDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.queryNoClassStudents(queryNoClassStudentsDTO)); - } - - @PostMapping("batchAddStudentToClass") - @ApiOperation("批量添加学生到某班级里 ids[] 多个学生id classId 班级id") - public ResponseVO batchAddStudentToClass(@RequestBody BatchAddStudentToClassDTO batchAddStudentToClassDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.batchAddStudentToClass(batchAddStudentToClassDTO)); - } - - @PostMapping("batchDeleteStudent") - @ApiOperation("批量移除班级 ids[] 多个学生 classId 班级id") - public ResponseVO batchDeleteStudent(@RequestBody BatchAddStudentToClassDTO batchAddStudentToClassDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.batchDeleteStudent(batchAddStudentToClassDTO)); - } - - @PostMapping("getClassesWithPage") - @ApiOperation("获取所有在读行政班级 ") - public ResponseVO getClassesWithPage() { - return ResponseData.generateCreatedResponse(0, classesDictService.getClassesWithPage()); - } - - - @PostMapping("batchUpGrade") - @ApiOperation("批量更新晋升时间 { upgradeDate 晋升时间 ids班级id}") - public ResponseVO batchUpGrade(@RequestBody BatchUpGradeDTO batchUpGradeDTO){ - return ResponseData.generateCreatedResponse(0,classesDictService.batchUpGrade(batchUpGradeDTO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/ClassesDictHistoryController.java b/src/main/java/com/meishu/controller/ClassesDictHistoryController.java deleted file mode 100644 index 5424f96..0000000 --- a/src/main/java/com/meishu/controller/ClassesDictHistoryController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学校班级字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@RestController -@Api(tags = "学校班级字典表") -@RequestMapping("/classes-dict-history-do") -public class ClassesDictHistoryController { - -} diff --git a/src/main/java/com/meishu/controller/ClassesUserMappingController.java b/src/main/java/com/meishu/controller/ClassesUserMappingController.java deleted file mode 100644 index c88535c..0000000 --- a/src/main/java/com/meishu/controller/ClassesUserMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 班级--学生--映射表(包括以前的班级) 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@RestController -@Api(tags = "班级--学生--映射表(包括以前的班级)") -@RequestMapping("/classes-user-mapping-do") -public class ClassesUserMappingController { - -} diff --git a/src/main/java/com/meishu/controller/CourseAdministerMappingController.java b/src/main/java/com/meishu/controller/CourseAdministerMappingController.java deleted file mode 100644 index 7ba8714..0000000 --- a/src/main/java/com/meishu/controller/CourseAdministerMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 课程老师映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -@RestController -@Api(tags = "课程老师映射表") -@RequestMapping("/course-administer-mapping-do") -public class CourseAdministerMappingController { - -} diff --git a/src/main/java/com/meishu/controller/CourseStudentStatusHistoryController.java b/src/main/java/com/meishu/controller/CourseStudentStatusHistoryController.java deleted file mode 100644 index fe66fb2..0000000 --- a/src/main/java/com/meishu/controller/CourseStudentStatusHistoryController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-27 - */ -@RestController -@Api(tags = "学生授权历史表") -@RequestMapping("/course-student-status-history-do") -public class CourseStudentStatusHistoryController { - -} diff --git a/src/main/java/com/meishu/controller/CourseTreeExerciseStudentResultController.java b/src/main/java/com/meishu/controller/CourseTreeExerciseStudentResultController.java deleted file mode 100644 index bf16799..0000000 --- a/src/main/java/com/meishu/controller/CourseTreeExerciseStudentResultController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 课程--学生做题记录 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -@RestController -@Api(tags = "课程--学生做题记录") -@RequestMapping("/course-tree-exercise-student-result-do") -public class CourseTreeExerciseStudentResultController { - -} diff --git a/src/main/java/com/meishu/controller/CourseTreeVodStudentResultController.java b/src/main/java/com/meishu/controller/CourseTreeVodStudentResultController.java deleted file mode 100644 index 464b7df..0000000 --- a/src/main/java/com/meishu/controller/CourseTreeVodStudentResultController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学生视频完成情况 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@RestController -@Api(tags = "学生视频完成情况") -@RequestMapping("/course-vod-student-result-do") -public class CourseTreeVodStudentResultController { - -} diff --git a/src/main/java/com/meishu/controller/DepartmentDictController.java b/src/main/java/com/meishu/controller/DepartmentDictController.java deleted file mode 100644 index b525857..0000000 --- a/src/main/java/com/meishu/controller/DepartmentDictController.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.department.BatchOprDTO; -import com.meishu.dto.department.GetTeachersDTO; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.model.DepartmentDictDO; -import com.meishu.service.DepartmentDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 部门字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@RestController -@Api(tags = "部门字典表") -@RequestMapping("/departmentDict") -public class DepartmentDictController { - - @Autowired - private DepartmentDictService departmentDictService; - - @PostMapping("getDepartmentInfo") - @ApiOperation("获取全部部门 包含老师信息和人数信息") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllDepartment() { - return ResponseData.generateCreatedResponse(0, departmentDictService.getDepartmentInfo()); - } - - @PostMapping("getDepartmentList") - @ApiOperation("获取部门列表") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getDepartmentList(@RequestBody GetSubjectTreeDTO getSubjectTreeDTO) { - return ResponseData.generateCreatedResponse(0, departmentDictService.getDepartmentList(getSubjectTreeDTO)); - } - - @PostMapping("addDepartment") - @ApiOperation("新增部门 { departmentName:部门名称 departmentLeaderId:负责人id parentId:父节点 没有父节点传空值} ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addDepartment(@RequestBody DepartmentDictDO departmentDictDO) { - return ResponseData.generateCreatedResponse(0, departmentDictService.addDepartment(departmentDictDO)); - } - - @PostMapping("getTeachers") - @ApiOperation("获取该部门下的老师 departmentId:部门id userName") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getTeachers(@RequestBody GetTeachersDTO getTeachersDTO) { - return ResponseData.generateCreatedResponse(0, departmentDictService.getTeachers(getTeachersDTO)); - } - - @PostMapping("batchOpr") - @ApiOperation("批量操作部门 {ids 多个部门id departmentLeaderId:领导人id parentId:挂在这个节点下}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO batchOpr(@RequestBody BatchOprDTO batchOprDTO){ - return ResponseData.generateCreatedResponse(0,departmentDictService.batchOpr(batchOprDTO)); - } - - @PostMapping("deleteDepartment") - @ApiOperation("删除部门 id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteDepartment(@RequestBody BatchOprDTO batchOprDTO){ - return ResponseData.generateCreatedResponse(0,departmentDictService.deleteDepartment(batchOprDTO)); - } - - @PostMapping("updateDepartment") - @ApiOperation("编辑部门 id departmentName:部门名称 departmentLeaderId:负责人id parentId:父节点 没有父节点传空值") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateDepartment(@RequestBody DepartmentDictDO departmentDictDO){ - return ResponseData.generateCreatedResponse(0,departmentDictService.updateDepartment(departmentDictDO)); - } - -} diff --git a/src/main/java/com/meishu/controller/ExerciseCourseTreeMappingController.java b/src/main/java/com/meishu/controller/ExerciseCourseTreeMappingController.java deleted file mode 100644 index b41e742..0000000 --- a/src/main/java/com/meishu/controller/ExerciseCourseTreeMappingController.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.exercise.QueryCourseTreeExerciseDTO; -import com.meishu.dto.exercise.UpdateStatusDTO; -import com.meishu.mapper.ExerciseCourseTreeMappingMapper; -import com.meishu.model.ExerciseCourseTreeMappingDO; -import com.meishu.model.ExerciseTreeMappingDO; -import com.meishu.service.ExerciseCourseTreeMappingService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 课程知识树--题目字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-24 - */ -@RestController -@Api(tags = "课程知识树--题目字典表") -@RequestMapping("/exerciseCourse") -public class ExerciseCourseTreeMappingController { - - - @Autowired - private ExerciseCourseTreeMappingService exerciseCourseTreeMappingService; - - @PostMapping("updateStatus") - @ApiOperation("修改题目的开放状态 ids [] 题目id status 0:隐藏 1:开放") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateStatus(@RequestBody UpdateStatusDTO updateStatusDTO){ - return ResponseData.generateCreatedResponse(0,exerciseCourseTreeMappingService.updateStatus(updateStatusDTO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/ExerciseDictController.java b/src/main/java/com/meishu/controller/ExerciseDictController.java deleted file mode 100644 index c4e812f..0000000 --- a/src/main/java/com/meishu/controller/ExerciseDictController.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.exercise.*; -import com.meishu.dto.voddict.GetToCheckVodCountsDTO; -import com.meishu.dto.voddict.PublicCheckingDTO; -import com.meishu.model.ExerciseDictDO; -import com.meishu.model.ExerciseTreeMappingDO; -import com.meishu.service.ExerciseDictService; -import com.meishu.util.ConstantUtils; -import com.meishu.util.LatexUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 习题库 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "习题库") -@RequestMapping("/exerciseDict") -public class ExerciseDictController { - - @Autowired - private ExerciseDictService exerciseDictService; - - @PostMapping("getTreeExercises") - @ApiOperation("获取某个知识点下的题目 {subjectId treeId exerciseType difficulty shareStatus 0:个人库 1:公共库 title pageSize pageNum}") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getTreeExercises(@RequestBody GetTreeExercisesDTO getTreeExercisesDTO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.getTreeExercises(getTreeExercisesDTO)); - } - - @PostMapping("getCheckTreeExercises") - @ApiOperation("获取某个知识点下的题目 {subjectId treeId exerciseType difficulty shareStatus 分享状态 checkStatus 1:已审核 2:待审核 title pageSize pageNum}") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getCheckTreeExercises(@RequestBody GetTreeExercisesDTO getTreeExercisesDTO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.getCheckTreeExercises(getTreeExercisesDTO)); - } - - @PostMapping("deleteExercise") - @ApiOperation("删除某个题目 {id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteExercise(@RequestBody ExerciseDictDO exerciseDictDO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.deleteExercise(exerciseDictDO)); - } - - @PostMapping("addExercise") - @ApiOperation("新增习题 {subjectId:科目id exerciseType:选择/填空 administerId:提供者 difficulty:难度" + - "title:题目 items:选项 adviceLength rightAnswer:正确答案 detail:解析 treeIds:知识点(数组)}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addExercise(@RequestBody AddExerciseDTO addExerciseDTO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.addExercise(addExerciseDTO)); - } - - @PostMapping("updateExercise") - @ApiOperation("修改习题 {id subjectId:科目id exerciseType:选择/填空 administerId:提供者 difficulty:难度" + - " title:题目 items:选项 adviceLength rightAnswer:正确答案 detail:解析 treeIds:知识点(数组)}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateExercise(@RequestBody AddExerciseDTO addExerciseDTO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.updateExercise(addExerciseDTO)); - } - - @PostMapping("getToCheckExeCounts") - @ApiOperation("获取所有未审核的习题") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getToCheckExeCounts(GetToCheckVodCountsDTO getToCheckVodCountsDTO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.getToCheckExeCounts(getToCheckVodCountsDTO)); - } - - @PostMapping("checkExercise") - @ApiOperation("审核题目 {checkId 审核人id id 题目id treeIds checkStatus difficulty adviceLength 1:审核通过 3:未通过 reason 不通过原因}") - public ResponseVO checkExercise(@RequestBody CheckExerciseDTO checkExerciseDTO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.checkExercise(checkExerciseDTO)); - } - - @PostMapping("publicUpload") - @ApiOperation("公共资源上载 {userId checkStatus 1:审核通过 2:审核中 3:未通过}") - public ResponseVO publicUpload(@RequestBody PublicCheckingDTO publicCheckingDTO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.publicUpload(publicCheckingDTO)); - } - - @PostMapping("withdraw") - @ApiOperation("撤回题目 id 题目id") - public ResponseVO withdraw(@RequestBody ExerciseDictDO exerciseDictDO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.withdraw(exerciseDictDO)); - } - - @PostMapping("getExerciseDetail") - @ApiOperation("获取一个视频详情{id}") - public ResponseVO getVodDetail(@RequestBody ExerciseDictDO exerciseDictDO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.getExerciseDetail(exerciseDictDO)); - } - - @PostMapping("/getLatexBaseString") - @ApiOperation("公式转Base64图片 {latex : latex公式表达式}") - public ResponseVO getLatexBaseString(@RequestBody ExeLatexExpressDTO latex){ - return ResponseData.generateCreatedResponse(0,(Object) LatexUtils.latex2Png(latex.getLatex()).replace("\r\n","")); - } - - @PostMapping("/setRelatedExercise") - @ApiOperation("设置为关联习题 {status 关联:1 取消:0 exerciseId 习题id}") - public ResponseVO setRelatedExercise(@RequestBody ExerciseTreeMappingDO exerciseTreeMappingDO){ - return ResponseData.generateCreatedResponse(0,exerciseDictService.setRelatedExercise(exerciseTreeMappingDO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/ExerciseDoneHistoryController.java b/src/main/java/com/meishu/controller/ExerciseDoneHistoryController.java deleted file mode 100644 index 06ee11b..0000000 --- a/src/main/java/com/meishu/controller/ExerciseDoneHistoryController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学生做题记录表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "学生做题记录表") -@RequestMapping("/exerciseDoneHistory") -public class ExerciseDoneHistoryController { - -} diff --git a/src/main/java/com/meishu/controller/ExerciseExpandMappingController.java b/src/main/java/com/meishu/controller/ExerciseExpandMappingController.java deleted file mode 100644 index 1e9aef3..0000000 --- a/src/main/java/com/meishu/controller/ExerciseExpandMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学生--拓展习题映射表 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@RestController -@Api(tags = "学生--拓展习题映射表") -@RequestMapping("/exercise-expand-mapping-do") -public class ExerciseExpandMappingController { - -} diff --git a/src/main/java/com/meishu/controller/ExerciseRelatedMappingController.java b/src/main/java/com/meishu/controller/ExerciseRelatedMappingController.java deleted file mode 100644 index 32faeea..0000000 --- a/src/main/java/com/meishu/controller/ExerciseRelatedMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学生--拓展习题映射表 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@RestController -@Api(tags = "学生--拓展习题映射表") -@RequestMapping("/exercise-related-mapping-do") -public class ExerciseRelatedMappingController { - -} diff --git a/src/main/java/com/meishu/controller/ExerciseTreeMappingController.java b/src/main/java/com/meishu/controller/ExerciseTreeMappingController.java deleted file mode 100644 index efccdee..0000000 --- a/src/main/java/com/meishu/controller/ExerciseTreeMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 题目知识树映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "题目知识树映射表") -@RequestMapping("/exercise-tree-mapping-do") -public class ExerciseTreeMappingController { - -} diff --git a/src/main/java/com/meishu/controller/ExerciseUserInfoController.java b/src/main/java/com/meishu/controller/ExerciseUserInfoController.java deleted file mode 100644 index a218de6..0000000 --- a/src/main/java/com/meishu/controller/ExerciseUserInfoController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 题目收藏信息表 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-17 - */ -@RestController -@Api(tags = "题目收藏信息表") -@RequestMapping("/exercise-user-info-do") -public class ExerciseUserInfoController { - -} diff --git a/src/main/java/com/meishu/controller/KnowledgeSubjectDictController.java b/src/main/java/com/meishu/controller/KnowledgeSubjectDictController.java deleted file mode 100644 index 50a57e2..0000000 --- a/src/main/java/com/meishu/controller/KnowledgeSubjectDictController.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.subject.GetSubjectAdministerDTO; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.dto.subject.GetSubjectsDTO; -import com.meishu.model.KnowledgeSubjectDictDO; -import com.meishu.service.KnowledgeSubjectDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学科字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "学科字典表") -@RequestMapping("/subjectDict") -public class KnowledgeSubjectDictController { - - @Autowired - private KnowledgeSubjectDictService knowledgeSubjectDictService; - - @PostMapping("getSubjects") - @ApiOperation("获取所有学科 {userId登录人id subjectType:学科类型 subjectName 学科名称 pageSize pageNum}") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getSubjects(@RequestBody GetSubjectsDTO getSubjectsDTO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.getSubjects(getSubjectsDTO)); - } - - @PostMapping("getAllSubjects") - @ApiOperation("获取所有学科 {subjectType:学科类型 subjectName 学科名称 }") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllSubjects(@RequestBody GetSubjectsDTO getSubjectsDTO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.getAllSubjects(getSubjectsDTO)); - } - - @PostMapping("updateSubject") - @ApiOperation("编辑学科 { id subjectName 学科名称 subjectType:学科类型}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateSubject(@RequestBody KnowledgeSubjectDictDO subjectDictDO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.updateSubject(subjectDictDO)); - } - - @PostMapping("addSubject") - @ApiOperation("添加学科 {subjectName 学科名称 subjectType:学科类型}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addSubject(@RequestBody KnowledgeSubjectDictDO subjectDictDO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.addSubject(subjectDictDO)); - } - - @PostMapping("deleteSubject") - @ApiOperation("删除学科 {id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteSubject(@RequestBody KnowledgeSubjectDictDO subjectDictDO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.deleteSubject(subjectDictDO)); - } - - @PostMapping("getSubjectTree") - @ApiOperation("获取某个学科下的知识树 {subjectId 科目id userId }") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getSubjectTree(@RequestBody GetSubjectTreeDTO getSubjectTreeDTO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.getSubjectTree(getSubjectTreeDTO)); - } - - @PostMapping("getSubject") - @ApiOperation("获取学科详情 id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getSubject(@RequestBody KnowledgeSubjectDictDO subjectDictDO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.getSubject(subjectDictDO)); - } - - @PostMapping("getSubjectAdminister") - @ApiOperation("获取某个科目下的老师 subjectId 科目id userName名字") - public ResponseVO getSubjectAdminister(@RequestBody GetSubjectAdministerDTO getSubjectAdministerDTO){ - return ResponseData.generateCreatedResponse(0,knowledgeSubjectDictService.getSubjectAdminister(getSubjectAdministerDTO)); - } - -} diff --git a/src/main/java/com/meishu/controller/LaboratoryAttendanceMappingController.java b/src/main/java/com/meishu/controller/LaboratoryAttendanceMappingController.java deleted file mode 100644 index 7683928..0000000 --- a/src/main/java/com/meishu/controller/LaboratoryAttendanceMappingController.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.controller; - -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 实验室场次预约考勤记录 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-15 - */ -@RestController -@Api(tags = "实验室场次预约考勤记录") -@RequestMapping("/laboratoryAttendanceMapping") -public class LaboratoryAttendanceMappingController { - -} diff --git a/src/main/java/com/meishu/controller/LaboratoryDictController.java b/src/main/java/com/meishu/controller/LaboratoryDictController.java deleted file mode 100644 index 932adca..0000000 --- a/src/main/java/com/meishu/controller/LaboratoryDictController.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.meishu.controller; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.laboratory.LaboratoryDictDTO; -import com.meishu.dto.laboratory.LaboratoryPageDTO; -import com.meishu.model.LaboratoryDictDO; -import com.meishu.service.LaboratoryDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 实验室 前端控制器 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@RestController -@Api(tags = "实验室管理") -@RequestMapping("/laboratoryDict") -public class LaboratoryDictController { - - @Autowired - private LaboratoryDictService laboratoryDictService; - - @PostMapping(value = "/getLaboratoryPage") - @ApiOperation("分页查询实验室:laboratoryType/实验室类型, name/搜索名称, pageNo/当前页数, pageSize/每页显示条数") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getLaboratoryPage(@RequestBody LaboratoryPageDTO laboratoryPageDTO) { - return ResponseData.generateCreatedResponse(0, laboratoryDictService.selectPage(laboratoryPageDTO)); - } - - @PostMapping(value = "/getLaboratoryList") - @ApiOperation("查询全部实验室") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getLaboratoryList() { - return ResponseData.generateCreatedResponse(0, laboratoryDictService.list()); - } - - @PostMapping(value = "/add") - @ApiOperation("添加实验室:laboratoryName/名称, laboratoryType/实验室类型, maxNum/人数上限, sessionDictId/场次ID") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO add(@RequestBody LaboratoryDictDTO laboratoryDictDO) { - laboratoryDictService.add(laboratoryDictDO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/update") - @ApiOperation("编辑实验室:id/ID, laboratoryName/名称, laboratoryType/实验室类型, maxNum/人数上限, sessionDictId/场次ID") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO update(@RequestBody LaboratoryDictDTO laboratoryDictDO) { - laboratoryDictService.updateLaboratory(laboratoryDictDO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/delete") - @ApiOperation("删除实验室:id/ID") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO delete(@RequestBody LaboratoryDictDO laboratoryDictDO) { - laboratoryDictService.delete(laboratoryDictDO.getId()); - return ResponseData.generateCreatedResponse(0); - } -} diff --git a/src/main/java/com/meishu/controller/LaboratoryDictMappingController.java b/src/main/java/com/meishu/controller/LaboratoryDictMappingController.java deleted file mode 100644 index ca3f800..0000000 --- a/src/main/java/com/meishu/controller/LaboratoryDictMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 实验室场次关联表 前端控制器 - *

- * - * @author DengMin - * @since 2021-08-30 - */ -@RestController -@Api(tags = "实验室场次关联表") -@RequestMapping("/laboratoryDictMapping") -public class LaboratoryDictMappingController { - -} diff --git a/src/main/java/com/meishu/controller/LaboratorySessionMappingController.java b/src/main/java/com/meishu/controller/LaboratorySessionMappingController.java deleted file mode 100644 index 46ad495..0000000 --- a/src/main/java/com/meishu/controller/LaboratorySessionMappingController.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.meishu.controller; - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.laboratorySession.CalendarStatusDTO; -import com.meishu.dto.laboratorySession.GetLaboratorySessionDTO; -import com.meishu.dto.laboratorySession.LaboratorySessionListDTO; -import com.meishu.dto.laboratorySession.SetLaboratorySessionDTO; -import com.meishu.model.LaboratorySessionMappingDO; -import com.meishu.service.LaboratorySessionMappingService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 实验室场次预约安排表 前端控制器 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@RestController -@Api(tags = "实验室场次预约安排表 - D") -@RequestMapping("/laboratorySessionMapping") -public class LaboratorySessionMappingController { - - @Autowired - private LaboratorySessionMappingService laboratorySessionMappingService; - - @PostMapping(value = "/getLaboratorySessionDate") - @ApiOperation("手机端 -- 查询实验室场次预约日期") - public ResponseVO getLaboratorySessionDate(@RequestBody GetLaboratorySessionDTO getLaboratorySessionDTO) { - return ResponseData.generateCreatedResponse(0, laboratorySessionMappingService.getLaboratorySessionDate(getLaboratorySessionDTO)); - } - - @PostMapping(value = "/getLaboratorySession") - @ApiOperation("手机端 -- 查询实验室场次预约: laboratoryType/实验室类型, studentId/学生ID, startDate/预约日期, sessionsDictId/场次ID(数组)") - public ResponseVO getLaboratorySession(@RequestBody GetLaboratorySessionDTO getLaboratorySessionDTO) { - return ResponseData.generateCreatedResponse(0, laboratorySessionMappingService.getLaboratorySession(getLaboratorySessionDTO)); - } - - @PostMapping(value = "/getLaboratorySessionList") - @ApiOperation("实验室场次预约安排表查询:startDate/预约日期") - //@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getLaboratorySessionList(@RequestBody LaboratorySessionListDTO laboratorySessionListDTO) { - return ResponseData.generateCreatedResponse(0, laboratorySessionMappingService.getLaboratorySessionList(laboratorySessionListDTO.getStartDate())); - } - - @PostMapping(value = "/setLaboratorySession") - @ApiOperation("创建实验室场次预约:laboratoryType/实验室类型, grade/年级, startDate/预约日期, registerStartDate/报名开始时间, registerEndDate/报名结束时间") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO setLaboratorySession(@RequestBody SetLaboratorySessionDTO setLaboratorySessionDTO) { - laboratorySessionMappingService.setLaboratorySession(setLaboratorySessionDTO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/updateLaboratorySession") - @ApiOperation("编辑实验室场次预约:laboratoryDictId/实验室ID, grade/年级, sessionDictId/场次ID(数组), startDate/预约日期, registerStartDate/报名开始时间, registerEndDate/报名结束时间") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateLaboratorySession(@RequestBody SetLaboratorySessionDTO setLaboratorySessionDTO) { - laboratorySessionMappingService.updateLaboratorySession(setLaboratorySessionDTO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/deleteLaboratorySession") - @ApiOperation("删除实验室场次预约:laboratoryDictId/实验室ID, startDate/预约日期") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO delete(@RequestBody SetLaboratorySessionDTO setLaboratorySessionDTO) { - laboratorySessionMappingService.deleteLaboratorySession(setLaboratorySessionDTO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/getCalendarStatus") - @ApiOperation("日历预约状态:selectDate/选择日期(年月/2021-09)") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getCalendarStatus(@RequestBody CalendarStatusDTO calendarStatusDTO) { - return ResponseData.generateCreatedResponse(0, laboratorySessionMappingService.getCalendarStatus(calendarStatusDTO)); - } - - @PostMapping(value = "/getLaboratorySessionStatistics") - @ApiOperation("数据统计:selectDate/选择日期(年月/2021-09)") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getLaboratorySessionStatistics(@RequestBody CalendarStatusDTO calendarStatusDTO) { - return ResponseData.generateCreatedResponse(0, laboratorySessionMappingService.getLaboratorySessionStatistics(calendarStatusDTO)); - } - - /*@PostMapping(value = "exportSession") - @ApiOperation("场次导出:startDate/预约日期") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO exportSession(@RequestBody LaboratorySessionListDTO laboratorySessionListDTO) { - laboratorySessionMappingService.exportSession(laboratorySessionListDTO); - return ResponseData.generateCreatedResponse(0); - }*/ -} diff --git a/src/main/java/com/meishu/controller/LaboratoryUserMappingController.java b/src/main/java/com/meishu/controller/LaboratoryUserMappingController.java deleted file mode 100644 index 51edd63..0000000 --- a/src/main/java/com/meishu/controller/LaboratoryUserMappingController.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.laboratoryUser.ApplyDTO; -import com.meishu.dto.laboratoryUser.LaboratoryUserPageDTO; -import com.meishu.model.LaboratoryUserMappingDO; -import com.meishu.service.LaboratoryUserMappingService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 实验室场次预约报名记录 前端控制器 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@RestController -@Api(tags = "实验室场次预约报名记录- D") -@RequestMapping("/laboratoryUserMapping") -public class LaboratoryUserMappingController { - - @Autowired - private LaboratoryUserMappingService laboratoryUserMappingService; - - @PostMapping(value = "/registration") - @ApiOperation("学生端 -- 报名: studentId/学生ID, laboratorySessionId/实验室场次预约ID") - public ResponseVO registration(@RequestBody ApplyDTO applyDTO) { - laboratoryUserMappingService.registration(applyDTO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/cancelRegistration") - @ApiOperation("学生端 -- 取消报名: studentId/学生ID, laboratorySessionId/实验室场次预约ID") - public ResponseVO cancelRegistration(@RequestBody ApplyDTO applyDTO) { - laboratoryUserMappingService.cancelRegistration(applyDTO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/getLaboratoryUserPage") - @ApiOperation("查看实验室预约名单:laboratorySessionId/实验室场次预约ID、startDate/预约时间") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getLaboratoryUserPage(@RequestBody LaboratoryUserPageDTO laboratoryUserPageDTO) { - return ResponseData.generateCreatedResponse(0, laboratoryUserMappingService.getLaboratoryUserPage(laboratoryUserPageDTO)); - } - - @PostMapping(value = "/delete") - @ApiOperation("删除查看实验室预约学生名单:id/学生报名记录ID") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO delete(@RequestBody LaboratoryUserMappingDO laboratoryUserMappingDO) { - laboratoryUserMappingService.removeById(laboratoryUserMappingDO.getId()); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/exportLaboratoryUser") - @ApiOperation("导出名单:laboratorySessionId/实验室场次预约ID、startDate/预约时间") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO exportLaboratoryUser(@RequestBody LaboratoryUserPageDTO laboratoryUserPageDTO) { - laboratoryUserMappingService.exportLaboratoryUser(laboratoryUserPageDTO); - return ResponseData.generateCreatedResponse(0); - } - -} diff --git a/src/main/java/com/meishu/controller/PermissionsDictController.java b/src/main/java/com/meishu/controller/PermissionsDictController.java deleted file mode 100644 index 18b51f0..0000000 --- a/src/main/java/com/meishu/controller/PermissionsDictController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.service.PermissionsDictService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 权限表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@RestController -@Api(tags = "权限表") -@RequestMapping("/permissionsDict") -public class PermissionsDictController { - -} diff --git a/src/main/java/com/meishu/controller/RoleAdministerMappingController.java b/src/main/java/com/meishu/controller/RoleAdministerMappingController.java deleted file mode 100644 index 04fa6b6..0000000 --- a/src/main/java/com/meishu/controller/RoleAdministerMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@RestController -@Api(tags = "用户角色映射表") -@RequestMapping("/roleAdministerMapping") -public class RoleAdministerMappingController { - -} diff --git a/src/main/java/com/meishu/controller/RoleDictController.java b/src/main/java/com/meishu/controller/RoleDictController.java deleted file mode 100644 index 73d4d9d..0000000 --- a/src/main/java/com/meishu/controller/RoleDictController.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.role.AddPermissionDTO; -import com.meishu.dto.role.DeletePermissionDTO; -import com.meishu.dto.role.GetRoleTeachersDTO; -import com.meishu.dto.role.RoleTeacherDTO; -import com.meishu.mapper.RoleAdministerMappingMapper; -import com.meishu.model.RoleAdministerMappingDO; -import com.meishu.service.RoleDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 角色表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@RestController -@Api(tags = "角色字典表") -@RequestMapping("/roleDict") -public class RoleDictController { - - @Autowired - private RoleDictService roleDictService; - - @PostMapping("getAllRoles") - @ApiOperation("获取所有的角色") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllRoles(){ - return ResponseData.generateCreatedResponse(0,roleDictService.getAllRoles()); - } - - @PostMapping("getRoleTeachers") - @ApiOperation("获取某一角色下的所有老师 {roleId :角色id userName:老师名字 pageSize pageNum}") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getRoleTeachers(@RequestBody GetRoleTeachersDTO getRoleTeachersDTO){ - return ResponseData.generateCreatedResponse(0,roleDictService.getRoleTeachers(getRoleTeachersDTO)); - } - - @PostMapping("removeTeacher") - @ApiOperation("移除某一角色下的老师 ids {映射id} roleId :角色id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO removeTeacher(@RequestBody RoleTeacherDTO roleTeacherDTO){ - return ResponseData.generateCreatedResponse(0,roleDictService.removeTeacher(roleTeacherDTO)); - } - - @PostMapping("roleTeacher") - @ApiOperation("添加老师的角色 ids:老师id[] roleId :角色id ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO roleTeacher(@RequestBody RoleTeacherDTO roleTeacherDTO){ - return ResponseData.generateCreatedResponse(0,roleDictService.roleTeacher(roleTeacherDTO)); - } - - @PostMapping("addPermission") - @ApiOperation("给角色添加权限 {roleId 角色id permissionIds 多个权限}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addPermission(@RequestBody AddPermissionDTO addPermissionDTO){ - return ResponseData.generateCreatedResponse(0,roleDictService.addPermission(addPermissionDTO)); - } - - @PostMapping("deletePermission") - @ApiOperation("给角色删除权限 {roleId 角色id permissionIds 多个权限ids}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deletePermission(@RequestBody DeletePermissionDTO deletePermissionDTO){ - return ResponseData.generateCreatedResponse(0,roleDictService.deletePermission(deletePermissionDTO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/RolePermissionMappingController.java b/src/main/java/com/meishu/controller/RolePermissionMappingController.java deleted file mode 100644 index fb30161..0000000 --- a/src/main/java/com/meishu/controller/RolePermissionMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 系统用户角色表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@RestController -@Api(tags = "角色权限表") -@RequestMapping("/rolePermissionMapping") -public class RolePermissionMappingController { - -} diff --git a/src/main/java/com/meishu/controller/SessionsDictController.java b/src/main/java/com/meishu/controller/SessionsDictController.java deleted file mode 100644 index c77a968..0000000 --- a/src/main/java/com/meishu/controller/SessionsDictController.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.meishu.controller; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.sessions.SessionsDictPageDTO; -import com.meishu.model.LaboratorySessionMappingDO; -import com.meishu.model.SessionsDictDO; -import com.meishu.service.SessionsDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 场次字典表 前端控制器 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@RestController -@Api(tags = "场次字典表 - D") -@RequestMapping("/sessionsDict") -public class SessionsDictController { - - @Autowired - private SessionsDictService sessionsDictService; - - @PostMapping(value = "/getListAll") - @ApiOperation("手机端 -- 查询全部场次") - public ResponseVO getListAll() { - return ResponseData.generateCreatedResponse(0, sessionsDictService.list()); - } - - @PostMapping(value = "/getListById") - @ApiOperation("根据实验室ID查询场次: laboratoryDictId/实验室ID") - public ResponseVO getListById(@RequestBody LaboratorySessionMappingDO laboratorySessionMappingDO) { - return ResponseData.generateCreatedResponse(0, sessionsDictService.getListById(laboratorySessionMappingDO.getLaboratoryDictId())); - } - - @PostMapping(value = "/getSessionsDictPage") - @ApiOperation("分页查询场次:pageNo/当前页数, pageSize/每页显示条数") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getSessionsDictPage(@RequestBody SessionsDictPageDTO sessionsDictPageDTO) { - return ResponseData.generateCreatedResponse(0, sessionsDictService.page(new Page(sessionsDictPageDTO.getPageNo(), sessionsDictPageDTO.getPageSize()))); - } - - @PostMapping(value = "/add") - @ApiOperation("添加场次:timeSlot/时间段(字符串:08:20 - 08:4)") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO add(@RequestBody SessionsDictDO sessionsDictDO) { - sessionsDictService.save(sessionsDictDO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/update") - @ApiOperation("编辑场次:id/ID, timeSlot/时间段(字符串:08:20 - 08:04)") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO update(@RequestBody SessionsDictDO sessionsDictDO) { - sessionsDictService.updateById(sessionsDictDO); - return ResponseData.generateCreatedResponse(0); - } - - @PostMapping(value = "/delete") - @ApiOperation("删除场次:id/ID") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO delete(@RequestBody SessionsDictDO sessionsDictDO) { - sessionsDictService.removeById(sessionsDictDO.getId()); - return ResponseData.generateCreatedResponse(0); - } - -} diff --git a/src/main/java/com/meishu/controller/SignInRecordController.java b/src/main/java/com/meishu/controller/SignInRecordController.java deleted file mode 100644 index 5d0657e..0000000 --- a/src/main/java/com/meishu/controller/SignInRecordController.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.sign.ClassSignInDTO; -import com.meishu.service.SignInRecordService; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import io.swagger.annotations.Api; - -/** - *

- * 学生签到表 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@RestController -@Api(tags = "学生签到表") -@RequestMapping("/signInRecord") -public class SignInRecordController { - - @Autowired - private SignInRecordService signInRecordService; - - - @PostMapping("classSignIn") - @ApiOperation("获取某个班级的打卡记录 pageSize pageNum ") - public ResponseVO classSignIn(@RequestBody ClassSignInDTO classSignInDTO){ - return ResponseData.generateCreatedResponse(0,signInRecordService.classSignIn(classSignInDTO)); - } - - - - - - -} diff --git a/src/main/java/com/meishu/controller/SmsCodeController.java b/src/main/java/com/meishu/controller/SmsCodeController.java deleted file mode 100644 index 93ceb5f..0000000 --- a/src/main/java/com/meishu/controller/SmsCodeController.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.sms.SendVerifyCodeDTO; -import com.meishu.service.SmsCodeService; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - *

- * 短信验证码 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@RestController -@RequestMapping("/sms") -public class SmsCodeController { - - @Autowired - private SmsCodeService smsCodeService; - - @PostMapping(value = "/send") - @ApiOperation("发送短信验证码") - public ResponseVO sendVerifyCode(@RequestBody SendVerifyCodeDTO sendVerifyCodeDTO ) { - smsCodeService.sendVerifyCode(sendVerifyCodeDTO); - return ResponseData.generateCreatedResponse(0); - } -} diff --git a/src/main/java/com/meishu/controller/StudentController.java b/src/main/java/com/meishu/controller/StudentController.java deleted file mode 100644 index 347c639..0000000 --- a/src/main/java/com/meishu/controller/StudentController.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.campus.BatchUpdateStatusDTO; -import com.meishu.dto.student.*; -import com.meishu.dto.subject.BatchStatusOprDTO; -import com.meishu.model.*; -import com.meishu.service.StudentService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import lombok.extern.java.Log; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; - -/** - *

- * 白名单 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@RestController -@RequestMapping("/student") -@Api(tags = "学生端") -public class StudentController { - - - @Autowired - private StudentService studentService; - - @PostMapping("sendMsg") - @ApiOperation("小程序---发送短信验证码 {telephone}") - public ResponseVO sendMsg(@RequestBody StudentDO studentDO){ - return ResponseData.generateCreatedResponse(0,studentService.sendMsg(studentDO)); - } - - @PostMapping("login") - @ApiOperation("小程序---验证短信验证码 {telephone code}") - public ResponseVO login(@RequestBody SmsCodeDO smsCodeDO){ - return ResponseData.generateCreatedResponse(0,studentService.login(smsCodeDO)); - } - - @PostMapping("addStudent") - @ApiOperation("添加学生 {telephone,username,parentTelephone,campusId}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addStudent(@RequestBody StudentDO studentDO){ - return ResponseData.generateCreatedResponse(0,studentService.addStudent(studentDO)); - } - - @PostMapping("updateStudent" ) - @ApiOperation("修改学生 id,username,parentTelephone,campusId,status 0:禁用 1:启用") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateStudent(@RequestBody StudentDO studentDO){ - return ResponseData.generateCreatedResponse(0,studentService.updateStudent(studentDO)); - } - - @PostMapping("batchUpdateStudent") - @ApiOperation("批量修改学生状态 ids[] status") - public ResponseVO batchUpdateStudent(@RequestBody BatchStatusOprDTO batchStatusOprDTO){ - return ResponseData.generateCreatedResponse(0,studentService.batchUpdateStudent(batchStatusOprDTO)); - } - - @PostMapping("deleteStudent") - @ApiOperation("删除学生 {ids[]}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteStudent(@RequestBody DeleteStudentDTO deleteStudentDTO){ - return ResponseData.generateCreatedResponse(0,studentService.deleteStudent(deleteStudentDTO)); - } - - @PostMapping("queryStudent") - @ApiOperation("查询单个学生 id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO queryStudent(@RequestBody StudentDO studentDO){ - return ResponseData.generateCreatedResponse(0,studentService.queryStudent(studentDO)); - } - - - -} diff --git a/src/main/java/com/meishu/controller/StuentCourseMappingController.java b/src/main/java/com/meishu/controller/StuentCourseMappingController.java deleted file mode 100644 index 5e6406f..0000000 --- a/src/main/java/com/meishu/controller/StuentCourseMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-17 - */ -@RestController -@Api(tags = "") -@RequestMapping("/stuent-course-mapping-do") -public class StuentCourseMappingController { - -} diff --git a/src/main/java/com/meishu/controller/SubjectDictController.java b/src/main/java/com/meishu/controller/SubjectDictController.java deleted file mode 100644 index d87ac75..0000000 --- a/src/main/java/com/meishu/controller/SubjectDictController.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.service.SubjectDictService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学校科目字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@RestController -@Api(tags = "学校科目字典表") -@RequestMapping("/subject") -public class SubjectDictController { - - @Autowired - private SubjectDictService subjectDictService; - - - - - -} diff --git a/src/main/java/com/meishu/controller/SubjectDimensionDictController.java b/src/main/java/com/meishu/controller/SubjectDimensionDictController.java deleted file mode 100644 index 21ff10a..0000000 --- a/src/main/java/com/meishu/controller/SubjectDimensionDictController.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.model.SubjectDimensionDictDO; -import com.meishu.model.SubjectTestPublishGradeDO; -import com.meishu.service.SubjectDimensionDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 测评表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@RestController -@Api(tags = "测评表") -@RequestMapping("/subjectDimensionDict") -public class SubjectDimensionDictController { - - @Autowired - private SubjectDimensionDictService subjectDimensionDictService; - - @PostMapping("getAllDimensions") - @ApiOperation("获取所有的维度 {ruleId 规则id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllDimensions(@RequestBody SubjectDimensionDictDO subjectDimensionDictDO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionDictService.getAllDimensions(subjectDimensionDictDO)); - } - - @PostMapping("deleteDimensionById") - @ApiOperation("删除某个维度 {id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteDimensionById(@RequestBody SubjectDimensionDictDO subjectDimensionDictDO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionDictService.deleteDimensionById(subjectDimensionDictDO)); - } - - @PostMapping("updateDimension") - @ApiOperation("编辑维度 {id dimension:维度名称 }") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateDimension(@RequestBody SubjectDimensionDictDO subjectDimensionDictDO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionDictService.updateDimension(subjectDimensionDictDO)); - } - - @PostMapping("addDimension") - @ApiOperation("新增维度 {id ruleId: }") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addDimension(@RequestBody SubjectDimensionDictDO subjectDimensionDictDO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionDictService.addDimension(subjectDimensionDictDO)); - } - - @PostMapping("getAllDimensionStar") - @ApiOperation("获取某个【规则】下的全部权限星级 publishId 规则id") - public ResponseVO getAllDimensionStar(@RequestBody SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionDictService.getAllDimensionStar(subjectTestPublishGradeDO)); - } -} diff --git a/src/main/java/com/meishu/controller/SubjectDimensionStarDictController.java b/src/main/java/com/meishu/controller/SubjectDimensionStarDictController.java deleted file mode 100644 index d81dc71..0000000 --- a/src/main/java/com/meishu/controller/SubjectDimensionStarDictController.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.dimension.AddStarDTO; -import com.meishu.dto.dimension.DeleteStarByIdDTO; -import com.meishu.model.SubjectDimensionStarDictDO; -import com.meishu.service.SubjectDimensionStarDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 维度星级字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@RestController -@Api(tags = "维度星级字典表") -@RequestMapping("/subjectDimensionStartDict") -public class SubjectDimensionStarDictController { - - @Autowired - private SubjectDimensionStarDictService subjectDimensionStartDictService; - - @PostMapping("getAllDimensionStars") - @ApiOperation("获取某个维度下所有的星级 {dimensionId:维度id star星级 }") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllDimensionStars(@RequestBody SubjectDimensionStarDictDO subjectDimensionStartDictDO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionStartDictService.getAllDimensionStars(subjectDimensionStartDictDO)); - } - - @PostMapping("deleteStarById") - @ApiOperation("删除某个星级 ids:id数组") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteStarById(@RequestBody DeleteStarByIdDTO deleteDimensionByIdDTO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionStartDictService.deleteStarById(deleteDimensionByIdDTO)); - } - - @PostMapping("addStar") - @ApiOperation("新建星级 treeIds:多个知识点的数组 dimensionId:维度i1111d star:星级 description:评析") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addStar(@RequestBody AddStarDTO addStarDTO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionStartDictService.addStar(addStarDTO)); - } - - @PostMapping("updateStar") - @ApiOperation("修改星级 id treeIds:多个知识点的数组 dimensionId:维度id star:星级 description:评析") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateStar(@RequestBody AddStarDTO addStarDTO){ - return ResponseData.generateCreatedResponse(0,subjectDimensionStartDictService.updateStar(addStarDTO)); - } - -} diff --git a/src/main/java/com/meishu/controller/SubjectRuleController.java b/src/main/java/com/meishu/controller/SubjectRuleController.java deleted file mode 100644 index edc8ecb..0000000 --- a/src/main/java/com/meishu/controller/SubjectRuleController.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.rule.GetAllRulesDTO; -import com.meishu.dto.rule.GetRuleReportDTO; -import com.meishu.model.SubjectRuleDO; -import com.meishu.service.SubjectRuleService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 规则字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@RestController -@Api(tags = "规则字典表") -@RequestMapping("/subjectRule") -public class SubjectRuleController { - - @Autowired - private SubjectRuleService subjectRuleService; - - @PostMapping("getAllRules") - @ApiOperation("获取所有规则 ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllRules(@RequestBody GetAllRulesDTO getAllRulesDTO){ - return ResponseData.generateCreatedResponse(0,subjectRuleService.getAllRules(getAllRulesDTO)); - } - - @PostMapping("getRules") - @ApiOperation("获取所有规则 ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getRules(){ - return ResponseData.generateCreatedResponse(0,subjectRuleService.getRules()); - } - - @PostMapping("addRule") - @ApiOperation("新建规则 {subjectId:科目id ruleName规则名称}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addRule(@RequestBody SubjectRuleDO subjectRuleDO){ - return ResponseData.generateCreatedResponse(0,subjectRuleService.addRule(subjectRuleDO)); - } - - @PostMapping("updateRule") - @ApiOperation("更新规则 {id subjectId:科目id ruleName规则名称 status }") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateRule(@RequestBody SubjectRuleDO subjectRuleDO){ - return ResponseData.generateCreatedResponse(0,subjectRuleService.updateRule(subjectRuleDO)); - } - - @PostMapping("deleteRule") - @ApiOperation("删除规则 {id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteRule(@RequestBody SubjectRuleDO subjectRuleDO){ - return ResponseData.generateCreatedResponse(0,subjectRuleService.deleteRule(subjectRuleDO)); - } - -} diff --git a/src/main/java/com/meishu/controller/SubjectSemesterController.java b/src/main/java/com/meishu/controller/SubjectSemesterController.java deleted file mode 100644 index 24d2012..0000000 --- a/src/main/java/com/meishu/controller/SubjectSemesterController.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.semester.GetSemesterScoreDTO; -import com.meishu.dto.semester.GetStudentDetailDTO; -import com.meishu.dto.semester.GetStudentRecordDTO; -import com.meishu.service.SubjectSemesterService; -import com.meishu.util.excel.ExcelUtil; -import com.meishu.vo.semester.GetSemesterScoreVO; -import com.meishu.vo.semester.GetStudentRecordVO; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -import java.util.List; - -/** - *

- * 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@RestController -@Api(tags = "学期表") -@RequestMapping("/semester") -public class SubjectSemesterController { - - @Autowired - private SubjectSemesterService subjectSemesterService; - - @PostMapping("getAllStudyingSemester") - @ApiOperation("获取所有在读班级") - public ResponseVO getAllStudyingSemester(){ - return ResponseData.generateCreatedResponse(0,subjectSemesterService.getAllStudyingSemester()); - } - - @PostMapping("getAllPastSemester") - @ApiOperation("获取所有归档班级") - public ResponseVO getAllPastSemester(){ - return ResponseData.generateCreatedResponse(0,subjectSemesterService.getAllPastSemester()); - } - - - @PostMapping("getSemesterScore") - @ApiOperation("查看某个学期下的成绩 {pageSize pageNum grade classes session userName semester 上/下 subject 语文/数学....") - public ResponseVO getSemesterScore(@RequestBody GetSemesterScoreDTO getSemesterScoreDTO){ - return ResponseData.generateCreatedResponse(0,subjectSemesterService.getSemesterScore(getSemesterScoreDTO)); - } - - @PostMapping("exportScore") - @ApiOperation("导出筛选后的数据 { grade classes session userName semester 上/下 subject 语文/数学....}") - public void exportScore(@RequestBody GetSemesterScoreDTO getSemesterScoreDTO){ - List getSemesterScoreVOS = subjectSemesterService.exportScore(getSemesterScoreDTO); - ExcelUtil.writeExcel(getSemesterScoreVOS,GetSemesterScoreVO.class); - } - - @PostMapping("getStudentDetail") - @ApiOperation("获取学生分数详情 {pageSize pageNum id 学科+学期id userId 学生id}") - public ResponseVO getStudentDetail(@RequestBody GetStudentDetailDTO getStudentDetailDTO){ - return ResponseData.generateCreatedResponse(0,subjectSemesterService.getStudentDetail(getStudentDetailDTO)); - } - - @PostMapping("getStudentRecord") - @ApiOperation("获取学生扣分记录 {startDate endDate}") - public void getStudentRecord(@RequestBody GetStudentRecordDTO getStudentRecordDTO){ - List getStudentRecordVOS = subjectSemesterService.getStudentRecord(getStudentRecordDTO); - ExcelUtil.writeExcel(getStudentRecordVOS,GetStudentRecordVO.class); - } - -} diff --git a/src/main/java/com/meishu/controller/SubjectStarTreeMappingController.java b/src/main/java/com/meishu/controller/SubjectStarTreeMappingController.java deleted file mode 100644 index f3a78e8..0000000 --- a/src/main/java/com/meishu/controller/SubjectStarTreeMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 测评-知识点关联表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@RestController -@Api(tags = "测评-知识点关联表") -@RequestMapping("/subject-star-tree-mapping-do") -public class SubjectStarTreeMappingController { - -} diff --git a/src/main/java/com/meishu/controller/SubjectStudentAnswerStarController.java b/src/main/java/com/meishu/controller/SubjectStudentAnswerStarController.java deleted file mode 100644 index 76e21c7..0000000 --- a/src/main/java/com/meishu/controller/SubjectStudentAnswerStarController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学生答卷星级表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@RestController -@Api(tags = "学生答卷星级表") -@RequestMapping("/subject-student-answer-star-do") -public class SubjectStudentAnswerStarController { - -} diff --git a/src/main/java/com/meishu/controller/SubjectTestDictController.java b/src/main/java/com/meishu/controller/SubjectTestDictController.java deleted file mode 100644 index 4bae51c..0000000 --- a/src/main/java/com/meishu/controller/SubjectTestDictController.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.test.GetAllTestDTO; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.service.SubjectTestDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 测评表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-20 - */ -@RestController -@Api(tags = "测评字典表") -@RequestMapping("/subjectTest") -public class SubjectTestDictController { - - @Autowired - private SubjectTestDictService subjectTestService; - - @PostMapping("getAllTest") - @ApiOperation("获取全部测评字典数据 分页 {ruleId testName pageSize pageNum}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllTest(@RequestBody GetAllTestDTO getAllTestDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestService.getAllTest(getAllTestDTO)); - } - - @PostMapping("getTest") - @ApiOperation("获取全不对测评 不分页 {ruleId testName}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getTest(@RequestBody GetAllTestDTO getAllTestDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestService.getTest(getAllTestDTO)); - } - - - @PostMapping("insertTest") - @ApiOperation("新增一个测评 {ruleId 规则id testName:测评名称 examination:卷面}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO insertTest(@RequestBody SubjectTestDictDO subjectTestDictDO){ - return ResponseData.generateCreatedResponse(0,subjectTestService.insertTest(subjectTestDictDO)); - } - - @PostMapping("updateTest") - @ApiOperation("修改一个测评 {id ruleId 规则id testName:测评名称 examination:卷面} ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateTest(@RequestBody SubjectTestDictDO subjectTestDictDO){ - return ResponseData.generateCreatedResponse(0,subjectTestService.updateTest(subjectTestDictDO)); - } - - @PostMapping("deleteByTestId") - @ApiOperation("删除一个测评 {id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteByTestId(@RequestBody SubjectTestDictDO subjectTestDictDO){ - return ResponseData.generateCreatedResponse(0,subjectTestService.deleteByTestId(subjectTestDictDO)); - } - - - -} diff --git a/src/main/java/com/meishu/controller/SubjectTestGradeExampleMappingController.java b/src/main/java/com/meishu/controller/SubjectTestGradeExampleMappingController.java deleted file mode 100644 index f93b650..0000000 --- a/src/main/java/com/meishu/controller/SubjectTestGradeExampleMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 样卷映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@RestController -@Api(tags = "样卷映射表") -@RequestMapping("/subject-test-grede-example-mapping-do") -public class SubjectTestGradeExampleMappingController { - -} diff --git a/src/main/java/com/meishu/controller/SubjectTestGradeStarMappingController.java b/src/main/java/com/meishu/controller/SubjectTestGradeStarMappingController.java deleted file mode 100644 index 031b520..0000000 --- a/src/main/java/com/meishu/controller/SubjectTestGradeStarMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 档次星级映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@RestController -@Api(tags = "档次星级映射表") -@RequestMapping("/subject-test-grede-star-mapping-do") -public class SubjectTestGradeStarMappingController { - -} diff --git a/src/main/java/com/meishu/controller/SubjectTestPublishGradeController.java b/src/main/java/com/meishu/controller/SubjectTestPublishGradeController.java deleted file mode 100644 index fb622a1..0000000 --- a/src/main/java/com/meishu/controller/SubjectTestPublishGradeController.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.grade.AddGradeDTO; -import com.meishu.model.SubjectTestPublishGradeDO; -import com.meishu.service.SubjectTestPublishGradeService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 档次表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@RestController -@Api(tags = "档次表") -@RequestMapping("/subjectGrade") -public class SubjectTestPublishGradeController { - - @Autowired - private SubjectTestPublishGradeService subjectTestPublishGradeService; - - @PostMapping("addGrade") - @ApiOperation("添加一个档次 gradeName档次名称 publishId 发布id content 综合评价 subjectTestGradeExampleMappingDOS [exampleView 样卷地址] subjectTestGradeStarMappingDOS [starId 星级id]") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addGrade(@RequestBody AddGradeDTO addGradeDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishGradeService.addGrade(addGradeDTO)); - } - - @PostMapping("deleteGrade") - @ApiOperation("删除一个档次 id 档次id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteGrade(@RequestBody SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishGradeService.deleteGrade(subjectTestPublishGradeDO)); - } - - @PostMapping("queryGrade") - @ApiOperation("查询档次全部档次") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO queryGrade(@RequestBody SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishGradeService.queryGrade(subjectTestPublishGradeDO)); - } - - @PostMapping("queryOneGrade") - @ApiOperation("查询单个档次 id") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO queryOneGrade(@RequestBody SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishGradeService.queryOneGrade(subjectTestPublishGradeDO)); - } - - @PostMapping("updateGrade") - @ApiOperation("编辑某个档次 id gradeName档次名称 publishId 发布id subjectTestGradeExampleMappingDOS [exampleView 样卷地址] subjectTestGradeStarMappingDOS [starId 星级id] ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateGrade(@RequestBody AddGradeDTO addGradeDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishGradeService.updateGrade(addGradeDTO)); - } - - @PostMapping("getRuleIdByPublishId") - @ApiOperation("通过publishId查询ruleId {publishId 发布id}") - public ResponseVO getRuleIdByPublishId(@RequestBody SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishGradeService.getRuleIdByPublishId(subjectTestPublishGradeDO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/SubjectTestPublishHistoryController.java b/src/main/java/com/meishu/controller/SubjectTestPublishHistoryController.java deleted file mode 100644 index b78b54a..0000000 --- a/src/main/java/com/meishu/controller/SubjectTestPublishHistoryController.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.test.*; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.model.SubjectTestPublishHistoryDO; -import com.meishu.service.SubjectTestPublishHistoryService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 测评发布记录表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@RestController -@Api(tags = "测评发布记录表") -@RequestMapping("/subjectTestPublishHistory") -public class SubjectTestPublishHistoryController { - - @Autowired - private SubjectTestPublishHistoryService subjectTestPublishHistoryService; - - - @PostMapping("publishTest") - @ApiOperation("发布一条测评 {testId 测评id outline studentIds coverPage 多个学生id testTime 测评时间}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO publishTest(@RequestBody PublishTestDTO publishTestDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishHistoryService.publishTest(publishTestDTO)); - } - - - @PostMapping("updatePublish") - @ApiOperation("修改一个测评 {publishId 发布id testId 测评id outline studentIds 多个学生id testTime 测评时间}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updatePublish(@RequestBody PublishTestDTO publishTestDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishHistoryService.updatePublish(publishTestDTO)); - } - - - @PostMapping("getPublishHistory") - @ApiOperation("获取所有的测评发布历史 {ruleId 规则id publishName测评名称 pageSize pageNum}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getPublishHistory(@RequestBody GetPublishHistoryDTO getPublishHistoryDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishHistoryService.getPublishHistory(getPublishHistoryDTO)); - } - - @PostMapping("getTestReport") - @ApiOperation("测评报告 {ruleId 规则id publishName测评名称 pageSize pageNum}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getTestReport(@RequestBody GetTestReportDTO getTestReportDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishHistoryService.getTestReport(getTestReportDTO)); - } - - @PostMapping("getOnePublish") - @ApiOperation("查看某个测评的报告 {id 发布的id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getOnePublish(@RequestBody GetOnePublishDTO getOnePublishDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishHistoryService.getOnePublish(getOnePublishDTO)); - } - - @PostMapping("comment") - @ApiOperation("评析卷子 {studentId 学生id publishId 发布id dimensionId 维度id starId 星级id administerId:评卷人id}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO comment(@RequestBody CommentDTO commentDTO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishHistoryService.comment(commentDTO)); - } - - @PostMapping("deletePublish") - @ApiOperation("删除一条发布测评 id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deletePublish(@RequestBody SubjectTestPublishHistoryDO subjectTestPublishHistoryDO){ - return ResponseData.generateCreatedResponse(0,subjectTestPublishHistoryService.deletePublish(subjectTestPublishHistoryDO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/SubjectTestStudentAnswerController.java b/src/main/java/com/meishu/controller/SubjectTestStudentAnswerController.java deleted file mode 100644 index 32445a9..0000000 --- a/src/main/java/com/meishu/controller/SubjectTestStudentAnswerController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 学生月考答卷 前端控制器 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@RestController -@Api(tags = "学生月考答卷") -@RequestMapping("/subject-test-student-answer-do") -public class SubjectTestStudentAnswerController { - -} diff --git a/src/main/java/com/meishu/controller/SubjectTreeController.java b/src/main/java/com/meishu/controller/SubjectTreeController.java deleted file mode 100644 index 951e4e1..0000000 --- a/src/main/java/com/meishu/controller/SubjectTreeController.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.dto.subject.UpdateTreeOrderDTO; -import com.meishu.model.SubjectTreeDO; -import com.meishu.service.SubjectTreeService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "知识树") -@RequestMapping("/subjectTree") -public class SubjectTreeController { - - @Autowired - private SubjectTreeService subjectTreeService; - - @PostMapping("updateSubjectTree") - @ApiOperation("更新知识树子节点 id treeName:知识点名称 parentId父节点id treeNode 编号") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateSubjectTree(@RequestBody SubjectTreeDO subjectTreeDO){ - return ResponseData.generateCreatedResponse(0,subjectTreeService.updateSubjectTree(subjectTreeDO)); - } - - @PostMapping("addSubjectTree") - @ApiOperation("添加知识树节点 subjectId 科目id parentId:父节点 treeName:知识点名称 " + - "treeNode 编号 ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO addSubjectTree(@RequestBody SubjectTreeDO subjectTreeDO){ - return ResponseData.generateCreatedResponse(0,subjectTreeService.addSubjectTree(subjectTreeDO)); - } - - @PostMapping("deleteSubjectTree") - @ApiOperation("删除子节点(递归删除) {id}") - //@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteSubjectTree(@RequestBody SubjectTreeDO subjectTreeDO){ - return ResponseData.generateCreatedResponse(0,subjectTreeService.deleteSubjectTree(subjectTreeDO)); - } - - @PostMapping("updateTreeOrder") - @ApiOperation("知识点排序 {ids[]知识树id parentId }") - public ResponseVO updateTreeOrder(@RequestBody UpdateTreeOrderDTO updateTreeOrderDTO){ - return ResponseData.generateCreatedResponse(0,subjectTreeService.updateTreeOrder(updateTreeOrderDTO)); - } - - @PostMapping("getTreesCnt") - @ApiOperation("获取知识树+ 题目视频数 subjectId userId") - public ResponseVO getTreesCnt(@RequestBody GetSubjectTreeDTO getSubjectTreeDTO){ - return ResponseData.generateCreatedResponse(0,subjectTreeService.getTreesCnt(getSubjectTreeDTO)); - } - - @PostMapping("getTreesCheckCnt") - @ApiOperation("获取知识树+ 视频题目审核数 subjectId userId shareStatus 2:待审核 1已审核") - public ResponseVO getTreesCheckCnt(@RequestBody GetSubjectTreeDTO getSubjectTreeDTO){ - return ResponseData.generateCreatedResponse(0,subjectTreeService.getTreesCheckCnt(getSubjectTreeDTO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/TaskCompletionStatusController.java b/src/main/java/com/meishu/controller/TaskCompletionStatusController.java deleted file mode 100644 index 7a5175b..0000000 --- a/src/main/java/com/meishu/controller/TaskCompletionStatusController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 作业任务完成状态 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@RestController -@Api(tags = "作业任务完成状态") -@RequestMapping("/task-completion-status-do") -public class TaskCompletionStatusController { - -} diff --git a/src/main/java/com/meishu/controller/TaskContentController.java b/src/main/java/com/meishu/controller/TaskContentController.java deleted file mode 100644 index 8ab4d30..0000000 --- a/src/main/java/com/meishu/controller/TaskContentController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 作业内容表(取题目,视频,书面作业) 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@RestController -@Api(tags = "作业内容表(取题目,视频,书面作业)") -@RequestMapping("/task-content-do") -public class TaskContentController { - -} diff --git a/src/main/java/com/meishu/controller/TaskContentDoneInfoController.java b/src/main/java/com/meishu/controller/TaskContentDoneInfoController.java deleted file mode 100644 index cc4813f..0000000 --- a/src/main/java/com/meishu/controller/TaskContentDoneInfoController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-30 - */ -@RestController -@Api(tags = "") -@RequestMapping("/task-content-done-info-do") -public class TaskContentDoneInfoController { - -} diff --git a/src/main/java/com/meishu/controller/TaskDoneHistoryController.java b/src/main/java/com/meishu/controller/TaskDoneHistoryController.java deleted file mode 100644 index 4f0945a..0000000 --- a/src/main/java/com/meishu/controller/TaskDoneHistoryController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@RestController -@Api(tags = "") -@RequestMapping("/task-done-history-do") -public class TaskDoneHistoryController { - -} diff --git a/src/main/java/com/meishu/controller/UserRoleController.java b/src/main/java/com/meishu/controller/UserRoleController.java deleted file mode 100644 index ec535bb..0000000 --- a/src/main/java/com/meishu/controller/UserRoleController.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.dto.sms.VerifyCodeDTO; -import com.meishu.dto.userrole.AccountLoginDTO; -import com.meishu.dto.userrole.AddStudentsDTO; -import com.meishu.dto.userrole.QueryStudentsDTO; -import com.meishu.model.UserRoleDO; -import com.meishu.service.UserRoleService; -import com.meishu.util.excel.ExcelUtil; -import com.meishu.vo.semester.GetSemesterScoreVO; -import com.meishu.vo.student.QueryStudentVO; -import com.meishu.vo.userrole.QueryStudentsVO; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -import java.util.List; - -/** - *

- * 学生表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-16 - */ -@RestController -@Api(tags = "学生表") -@RequestMapping("/userRole") -public class UserRoleController { - - @Autowired - private UserRoleService userRoleService; - - @PostMapping(value = "/login") - @ApiOperation("手机端:实验室预约登录:phone/手机号, verifyCode/验证码") - public ResponseVO login(@RequestBody VerifyCodeDTO verifyCodeDTO) { - return ResponseData.generateCreatedResponse(0, userRoleService.login(verifyCodeDTO)); - } - - @PostMapping(value = "/accountLogin") - @ApiOperation("手机端:实验室预约账户登录:idCard/身份证, password/密码") - public ResponseVO accountLogin(@RequestBody AccountLoginDTO accountLoginDTO) { - return ResponseData.generateCreatedResponse(0, userRoleService.accountLogin(accountLoginDTO)); - } - - @PostMapping(value = "/userInfo") - @ApiOperation("获取用户信息:id/学生ID") - public ResponseVO userInfo(@RequestBody UserRoleDO userRoleDO) { - return ResponseData.generateCreatedResponse(0, userRoleService.userInfo(userRoleDO.getUserId())); - } - - @PostMapping("queryStudents") - @ApiOperation("学生管理--查询所有学生 {pageSize pageNum userName 学生名称 grade 年级 session 入读时间 userStatus 状态 }") - public ResponseVO queryStudents(@RequestBody QueryStudentsDTO queryStudentsDTO){ - return ResponseData.generateCreatedResponse(0,userRoleService.queryStudents(queryStudentsDTO)); - } - - @PostMapping("addStudents") - @ApiOperation("学生管理--添加学生 {userName:学生姓名 studyCode:学籍号 phone:手机号 idCard:身份证号 session:入学年份 gender:性别 email:邮箱 }") - public ResponseVO addStudents(@RequestBody UserRoleDO userRoleDO){ - return ResponseData.generateCreatedResponse(0,userRoleService.addStudents(userRoleDO)); - } - - @PostMapping("updateStudent") - @ApiOperation("学生管理--编辑学生 {id userName:学生姓名 studyCode:学籍号 phone:手机号 idCard:身份证号 session:入学年份 gender:性别 email:邮箱}") - public ResponseVO updateStudent(@RequestBody UserRoleDO userRoleDO){ - return ResponseData.generateCreatedResponse(0,userRoleService.updateStudent(userRoleDO)); - } - - @PostMapping("exportStudents") - @ApiOperation("学生管理--导出 { userName 学生名称 grade 年级 session 入读时间 userStatus 状态 0:归档 1:在读 2:休学}") - public void exportStudents(@RequestBody QueryStudentsDTO queryStudentsDTO){ - List queryStudentsVOS = userRoleService.exportStudents(queryStudentsDTO); - ExcelUtil.writeExcel(queryStudentsVOS, QueryStudentsVO.class); - } - - @PostMapping("studycode") - public void studycode(){ - userRoleService.studycode(); - } - -} diff --git a/src/main/java/com/meishu/controller/UserSubjectMappingController.java b/src/main/java/com/meishu/controller/UserSubjectMappingController.java deleted file mode 100644 index b5a1507..0000000 --- a/src/main/java/com/meishu/controller/UserSubjectMappingController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 老师-科目映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@RestController -@Api(tags = "老师-科目映射表") -@RequestMapping("/user-subject-mapping-do") -public class UserSubjectMappingController { - -} diff --git a/src/main/java/com/meishu/controller/UserSubjectPermissionDictController.java b/src/main/java/com/meishu/controller/UserSubjectPermissionDictController.java deleted file mode 100644 index c4572b0..0000000 --- a/src/main/java/com/meishu/controller/UserSubjectPermissionDictController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 平时成绩---老师班级权限 前端控制器 - *

- * - * @author Tuyp - * @since 2021-08-18 - */ -@RestController -@Api(tags = "平时成绩---老师班级权限") -@RequestMapping("/user-subject-permission-dict-do") -public class UserSubjectPermissionDictController { - -} diff --git a/src/main/java/com/meishu/controller/UuidHistoryController.java b/src/main/java/com/meishu/controller/UuidHistoryController.java deleted file mode 100644 index 9a02c83..0000000 --- a/src/main/java/com/meishu/controller/UuidHistoryController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-29 - */ -@RestController -@Api(tags = "") -@RequestMapping("/uuid-history-do") -public class UuidHistoryController { - -} diff --git a/src/main/java/com/meishu/controller/VodDictController.java b/src/main/java/com/meishu/controller/VodDictController.java deleted file mode 100644 index 5e14208..0000000 --- a/src/main/java/com/meishu/controller/VodDictController.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.voddict.*; -import com.meishu.model.VodDictDO; -import com.meishu.model.VodPlayHistoryDO; -import com.meishu.model.VodSubjectTreeMappingDO; -import com.meishu.service.VodDictService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 视频字典表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "视频字典表") -@RequestMapping("/vodDict") -public class VodDictController { - - @Autowired - private VodDictService vodDictService; - - @PostMapping("/signature") - @ApiOperation("获取签名") - public ResponseVO signature()throws Exception{ - return ResponseData.generateCreatedResponse(0,vodDictService.signature()); - } - - @PostMapping("getTreeVods") - @ApiOperation("(个人库/公共库)获取某个知识树下的视频 subjectId 科目id vodType:课型 vodName:视频名称 shareStatus 0:个人库 1:公共库 treeId:知识树id userId 用户id pageSize pageNum") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getTreeVods (@RequestBody GetTreeVodsDTO getTreeVodsDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.getTreeVods(getTreeVodsDTO)); - } - - @PostMapping("getCheckTreeVods") - @ApiOperation("(审核)获取某个知识树下的视频 subjectId 科目id vodType:课型 vodName:视频名称 checkStatus 1:已审核 2:待审核 treeId:知识树id userId 用户id pageSize pageNum") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getCheckTreeVods (@RequestBody GetTreeVodsDTO getTreeVodsDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.getCheckTreeVods(getTreeVodsDTO)); - } - - @PostMapping("deleteVod") - @ApiOperation("删除某个视频(从腾讯云中也删除) id ") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO deleteVod(@RequestBody VodDictDO vodDictDO){ - return ResponseData.generateCreatedResponse(0,vodDictService.deleteVod(vodDictDO)); - } - - @PostMapping("uploadVods") - @ApiOperation("上传某个视频 {subjectId 科目id vodName视频名称 vodUrl 视频地址 vodType课型" + - "vodIntro 视频介绍 vodLength视频长度 vodCode:腾讯云上视频code administerId 视频提供者" + - "treeIds 多个知识点(数组)}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO uploadVods(@RequestBody UploadVodsDTO uploadVodsDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.uploadVods(uploadVodsDTO)); - } - - @PostMapping("updateVod") - @ApiOperation("修改某个视频 {id 视频名称 subjectId 科目id vodName视频名称 vodUrl 视频地址 vodType课型" + - " vodIntro 视频介绍 vodLength视频长度 vodCode:腾讯云上视频code administerId 视频提供者" + - "treeIds 多个知识点(数组)}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO updateVod(@RequestBody UploadVodsDTO uploadVodsDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.updateVod(uploadVodsDTO)); - } - - @PostMapping("getVodInfo") - @ApiOperation("小程序---获取视频详情 id:视频id") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getVodInfo(@RequestBody VodDictDO vodDictDO){ - return ResponseData.generateCreatedResponse(0,vodDictService.getVodInfo(vodDictDO)); - } - - @PostMapping("insertPlayHistory") - @ApiOperation("小程序--记录播放记录 {vodId 视频id treeId知识点 studentId 学生id playLength 观看时长 playRecord 播放位点}") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO insertPlayHistory(@RequestBody VodPlayHistoryDO vodPlayHistoryDO){ - return ResponseData.generateCreatedResponse(0,vodDictService.insertPlayHistory(vodPlayHistoryDO)); - } - - @PostMapping("getToCheckVodCounts") - @ApiOperation("获取所有未审核/已审核的视频个数 {subjectId 科目 checkStatus 审核状态 1:已审核 2:待审核}") -// @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getToCheckVodCounts(@RequestBody GetToCheckVodCountsDTO getToCheckVodCountsDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.getToCheckVodCounts(getToCheckVodCountsDTO)); - } - - @PostMapping("compressVodByCode") - @ApiOperation("通过code压缩视频并删除原视频 {id 视频id }") - public ResponseVO compressVodByCode(@RequestBody VodDictDO vodDictDO){ - return ResponseData.generateCreatedResponse(0,vodDictService.compressVodByCode(vodDictDO)); - } - - @PostMapping("deleteOriginVod") - @ApiOperation("删除原视频") - public ResponseVO deleteOriginVod(@RequestBody DeleteOriginVodDTO deleteOriginVodDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.deleteOriginVod(deleteOriginVodDTO)); - } - - @PostMapping("checkVod") - @ApiOperation("审核视频 {checkId 审核人id id 视频id vodType:课型 vodName:视频名称 treeIds:多个知识点id checkStatus 1:审核通过 3:未通过 reason:原因}") - public ResponseVO checkVod(@RequestBody CheckVodDTO checkVodDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.checkVod(checkVodDTO)); - } - - @PostMapping("publicUpload") - @ApiOperation("公共资源上载 {userId checkStatus 1:审核通过 2:审核中 3:未通过}") - public ResponseVO publicUpload(@RequestBody PublicCheckingDTO publicCheckingDTO){ - return ResponseData.generateCreatedResponse(0,vodDictService.publicUpload(publicCheckingDTO)); - } - - @PostMapping("withdraw") - @ApiOperation("撤回视频 id 视频id") - public ResponseVO withdraw(@RequestBody VodDictDO vodDictDO){ - return ResponseData.generateCreatedResponse(0,vodDictService.withdraw(vodDictDO)); - } - - @PostMapping("getVodDetail") - @ApiOperation("获取一个视频详情{id}") - public ResponseVO getVodDetail(@RequestBody VodDictDO vodDictDO){ - return ResponseData.generateCreatedResponse(0,vodDictService.getVodDetail(vodDictDO)); - } - - @PostMapping("setRelatedVod") - @ApiOperation("设置关联题目 {vodId 视频id status 1:关联 0:取消关联}") - public ResponseVO setRelatedVod(@RequestBody VodSubjectTreeMappingDO vodSubjectTreeMappingDO){ - return ResponseData.generateCreatedResponse(0,vodDictService.setRelatedVod(vodSubjectTreeMappingDO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/VodPlayHistoryController.java b/src/main/java/com/meishu/controller/VodPlayHistoryController.java deleted file mode 100644 index ce74c11..0000000 --- a/src/main/java/com/meishu/controller/VodPlayHistoryController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 视频播放历史记录表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "视频播放历史记录表") -@RequestMapping("/vod-play-history-do") -public class VodPlayHistoryController { - -} diff --git a/src/main/java/com/meishu/controller/VodSubjectTreeMappingController.java b/src/main/java/com/meishu/controller/VodSubjectTreeMappingController.java deleted file mode 100644 index 60f3926..0000000 --- a/src/main/java/com/meishu/controller/VodSubjectTreeMappingController.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.meishu.controller; - - -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.interceptor.LoginRequired; -import com.meishu.dto.subject.BatchStatusOprDTO; -import com.meishu.dto.subject.GetAllVodsStatusDTO; -import com.meishu.service.VodSubjectTreeMappingService; -import com.meishu.util.ConstantUtils; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 视频知识点映射表 前端控制器 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@RestController -@Api(tags = "视频知识点映射表") -@RequestMapping("/vodTreeMapping") -public class VodSubjectTreeMappingController { - - - @Autowired - private VodSubjectTreeMappingService vodSubjectTreeMappingService; - - @PostMapping("getAllVodsStatus") - @ApiOperation("获取所有未授权的视频 subjectId status 0:未授权 1:已授权") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO getAllVodsStatus(@RequestBody GetAllVodsStatusDTO getAllNoAuthenVodsDTO){ - return ResponseData.generateCreatedResponse(0,vodSubjectTreeMappingService.getAllNoAuthenVods(getAllNoAuthenVodsDTO)); - } - - @PostMapping("batchStatusOpr") - @ApiOperation("批量操作视频审核状态 {ids 多个视频id[] status 1:通过 0:驳回}") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) - public ResponseVO batchStatusOpr(@RequestBody BatchStatusOprDTO batchStatusOprDTO){ - return ResponseData.generateCreatedResponse(0,vodSubjectTreeMappingService.batchStatusOpr(batchStatusOprDTO)); - } - - -} diff --git a/src/main/java/com/meishu/controller/WechatController.java b/src/main/java/com/meishu/controller/WechatController.java deleted file mode 100644 index 9778e37..0000000 --- a/src/main/java/com/meishu/controller/WechatController.java +++ /dev/null @@ -1,138 +0,0 @@ -package com.meishu.controller; - - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.common.ResponseData; -import com.meishu.common.ResponseVO; -import com.meishu.common.configure.RestTemplateConfig; -import com.meishu.common.configure.WechatConfig; -import com.meishu.dto.wechat.AuthenRequestDTO; -import com.meishu.dto.wechat.JsSdkDTO; -import com.meishu.dto.wechat.SignDTO; -import com.meishu.mapper.AccessTokenMapper; -import com.meishu.mapper.StudentMapper; -import com.meishu.model.AccessTokenDO; -import com.meishu.model.StudentDO; -import com.meishu.util.SecretUtils; -import com.meishu.util.WechatUtil; -import com.meishu.vo.wechat.AuthenTokenVO; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpMethod; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.time.LocalDateTime; -import java.util.List; - -@RestController -@RequestMapping("/wechat") -@Api(tags = "微信授权") -public class WechatController { - - @Autowired - private RestTemplateConfig restTemplateConfig; - - @Autowired - private WechatConfig wechatConfig; - - @Autowired - private AccessTokenMapper accessTokenMapper; - - @Autowired - private StudentMapper studentMapper; - - @PostMapping(value = "/getJsapiTicket") - @ApiOperation("通过token请求获得jsapi_ticket {url}") - public ResponseVO getJsapiTicket(@RequestBody SignDTO signVO) { - - List accessTokens = accessTokenMapper.selectList(null); - - String accessToken = ""; - if (accessTokens.size() == 0) { - accessToken = WechatUtil.getAccessToken().getAccess_token(); - AccessTokenDO accessToken1 = new AccessTokenDO(); - accessToken1.setAccessToken(accessToken); - accessToken1.setUpdateDate(LocalDateTime.now()); - accessTokenMapper.insert(accessToken1); - } else { - AccessTokenDO accessToken1 = accessTokens.get(0); - int diff = LocalDateTime.now().getNano() - accessToken1.getUpdateDate().getNano(); - if (diff >= 2 * 60 * 60*1000000000 - 5*1000000000) { - accessToken = WechatUtil.getAccessToken().getAccess_token(); - accessToken1.setAccessToken(accessToken); - accessToken1.setUpdateDate(LocalDateTime.now()); - accessTokenMapper.updateById(accessToken1); - } else { - accessToken = accessToken1.getAccessToken(); - } - } - signVO.setAccess_token(accessToken); - String url1 = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=" + accessToken + "&type=jsapi"; - ResponseEntity response1 = restTemplateConfig.restTemplate() - .exchange(url1, HttpMethod.GET, null, JsSdkDTO.class); - - String ticket = response1.getBody().getTicket(); - signVO.setJsapi_ticket(ticket); - signVO.setNoncestr("Wm3WZYTPz0wzccnW"); - signVO.setTimestamp(String.valueOf(System.currentTimeMillis())); - String signStr = "jsapi_ticket=" + signVO.getJsapi_ticket() + "&noncestr=" + signVO.getNoncestr() + "×tamp=" + signVO.getTimestamp() - + "&url=" + signVO.getUrl(); - - signVO.setSign(SecretUtils.getSHAString(signStr)); - signVO.setAppId(wechatConfig.getAppId()); - signVO.setAgentId(wechatConfig.getAgentId()); - return ResponseData.generateCreatedResponse(0, signVO); - } - - - @PostMapping("/webAuthen") - @ApiOperation("网页授权 通过code换取身份信息 {code phone 手机号}") - public ResponseVO webAuthen(@RequestBody AuthenRequestDTO authenRequestDTO) { - - String url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + wechatConfig.getAppId() + "&secret=" + - wechatConfig.getAppSecret() + "&code=" + authenRequestDTO.getCode() + "&grant_type=authorization_code"; - ResponseEntity response = restTemplateConfig.restTemplate() - .exchange(url, HttpMethod.GET, null, AuthenTokenVO.class); - AuthenTokenVO authenTokenVO = response.getBody(); - - - //通过openId从库里查询 - StudentDO user = studentMapper.selectOne(new QueryWrapper() - .lambda() - .eq(StudentDO::getOpenid,authenTokenVO.getOpenid())); - - if (null==user){ - String url1 = "https://api.weixin.qq.com/sns/userinfo?access_token=" + authenTokenVO.getAccess_token() + "&openid=" + authenTokenVO.getOpenid() + "&lang=zh_CN"; - - ResponseEntity response1 = restTemplateConfig.restTemplate() - .exchange(url1, HttpMethod.GET, null, AuthenTokenVO.class); - return ResponseData.generateCreatedResponse(0,response1.getBody()); - }else { -// //该openId已存在,查出该用户的角色信息 -// -// List userInfoVOS = new ArrayList<>(); -// QueryWrapper queryWrapper = new QueryWrapper(); -// queryWrapper.eq("user_id",user.getId()); -// queryWrapper.eq("role_type","学生"); -// List userRoles = userRoleMapper.selectList(queryWrapper); -// for (UserRole userRole : userRoles){ -// UserInfoVO userInfoVO = new UserInfoVO(); -// BeanUtils.copyProperties(userRole,userInfoVO); -// ClassesDict classesDict = classesDictMapper.selectById(userRole.getClassesId()); -// userInfoVO.setSchool(classesDict.getSchool()); -// userInfoVO.setGrade(classesDict.getGrade()); -// userInfoVO.setClasses(classesDict.getClasses()); -// userInfoVO.setSession(classesDict.getSession()); -// userInfoVO.setSubjectType(classesDict.getSubjectType()); -// userInfoVOS.add(userInfoVO); -// } - return null; - } - } - -} diff --git a/src/main/java/com/meishu/controller/WrittenHomeworkController.java b/src/main/java/com/meishu/controller/WrittenHomeworkController.java deleted file mode 100644 index 3e3955c..0000000 --- a/src/main/java/com/meishu/controller/WrittenHomeworkController.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.controller; - - -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.RestController; -import io.swagger.annotations.Api; - -/** - *

- * 通知/附件作业表 前端控制器 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@RestController -@Api(tags = "通知/附件作业表") -@RequestMapping("/written-homework-do") -public class WrittenHomeworkController { - -} diff --git a/src/main/java/com/meishu/dto/administer/AddAdministerDTO.java b/src/main/java/com/meishu/dto/administer/AddAdministerDTO.java deleted file mode 100644 index 5bbab30..0000000 --- a/src/main/java/com/meishu/dto/administer/AddAdministerDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.administer; - -import com.meishu.model.AdministerDO; -import lombok.Data; - -import java.util.List; - -@Data -public class AddAdministerDTO extends AdministerDO { - - private List campusIds; - - private List departmentIds; - - private List subjectIds; - - private List roleIds; -} diff --git a/src/main/java/com/meishu/dto/administer/ChangeStatusDTO.java b/src/main/java/com/meishu/dto/administer/ChangeStatusDTO.java deleted file mode 100644 index 915d7bb..0000000 --- a/src/main/java/com/meishu/dto/administer/ChangeStatusDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.administer; - -import lombok.Data; - -import java.util.List; - -@Data -public class ChangeStatusDTO { - - private List ids; - - private String status; - -} diff --git a/src/main/java/com/meishu/dto/administer/GetClassesRequestVO.java b/src/main/java/com/meishu/dto/administer/GetClassesRequestVO.java deleted file mode 100644 index f19585f..0000000 --- a/src/main/java/com/meishu/dto/administer/GetClassesRequestVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.administer; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-06-22 18:18 - */ -@Data -public class GetClassesRequestVO { - - private Integer userId; - - private String status; - - private String subject; - - private String subjectType; - -} diff --git a/src/main/java/com/meishu/dto/administer/PublishExpandingVO.java b/src/main/java/com/meishu/dto/administer/PublishExpandingVO.java deleted file mode 100644 index ce9b14e..0000000 --- a/src/main/java/com/meishu/dto/administer/PublishExpandingVO.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.meishu.dto.administer; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-21 14:48 - */ -@Data -public class PublishExpandingVO { - - private String expandingExeIds; - - private String expandingStudents; - - private String expandingName; - - -} diff --git a/src/main/java/com/meishu/dto/administer/PublishHomeworkVO.java b/src/main/java/com/meishu/dto/administer/PublishHomeworkVO.java deleted file mode 100644 index 6eaf4c7..0000000 --- a/src/main/java/com/meishu/dto/administer/PublishHomeworkVO.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.dto.administer; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-21 14:52 - */ -@Data -public class PublishHomeworkVO { - - private Integer homeworkType; - - private String homeworkContent; - - private Integer adviceLength; - - private String fileSize; - - private String fileType; - - private String fileName; - - -} diff --git a/src/main/java/com/meishu/dto/administer/PublishTasksDTO.java b/src/main/java/com/meishu/dto/administer/PublishTasksDTO.java deleted file mode 100644 index a00033c..0000000 --- a/src/main/java/com/meishu/dto/administer/PublishTasksDTO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.meishu.dto.administer; - -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Data; - -import java.util.Date; -import java.util.List; - -@Data -public class PublishTasksDTO { - - - private Integer id; - - private String treeName; - - private Integer taskType; - - private String treeIds; - - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") - private Date taskDate; - - private List subjectIds; - - private Integer userId; - - private String vodIds; - - private String relatedIds; - - private Integer adviceLength; - - private List publishExpandingVOS; - - private List publishHomeworkVOS; - -} diff --git a/src/main/java/com/meishu/dto/administer/PushMsgPO.java b/src/main/java/com/meishu/dto/administer/PushMsgPO.java deleted file mode 100644 index c3b6972..0000000 --- a/src/main/java/com/meishu/dto/administer/PushMsgPO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.dto.administer; - -import lombok.Data; - -@Data -public class PushMsgPO { - - - private String title; - - private String school; - - private String teacherName; - - private String taskName; - - private String DateTime; - - private String remark; - - private String openId; - - -} diff --git a/src/main/java/com/meishu/dto/administer/UpdateAdministerDTO.java b/src/main/java/com/meishu/dto/administer/UpdateAdministerDTO.java deleted file mode 100644 index f238456..0000000 --- a/src/main/java/com/meishu/dto/administer/UpdateAdministerDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.administer; - -import com.meishu.model.AdministerDO; -import lombok.Data; - -import java.util.List; - -@Data -public class UpdateAdministerDTO extends AdministerDO { - - private List campusIds; - - private List departmentIds; - - private List subjectIds; - - private List roleIds; -} diff --git a/src/main/java/com/meishu/dto/campus/BatchUpdateStatusDTO.java b/src/main/java/com/meishu/dto/campus/BatchUpdateStatusDTO.java deleted file mode 100644 index 7b92d79..0000000 --- a/src/main/java/com/meishu/dto/campus/BatchUpdateStatusDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.campus; - -import lombok.Data; - -import java.util.List; - -@Data -public class BatchUpdateStatusDTO { - - private List id; - - private String status; - -} diff --git a/src/main/java/com/meishu/dto/campus/CampusStudentDTO.java b/src/main/java/com/meishu/dto/campus/CampusStudentDTO.java deleted file mode 100644 index b2868b9..0000000 --- a/src/main/java/com/meishu/dto/campus/CampusStudentDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.campus; - -import lombok.Data; - -@Data -public class CampusStudentDTO { - - private Long campusId; - - private String username; - - private Integer pageSize; - - private Integer pageNum; - -} diff --git a/src/main/java/com/meishu/dto/chapter/AddTreeToChapterDTO.java b/src/main/java/com/meishu/dto/chapter/AddTreeToChapterDTO.java deleted file mode 100644 index 7418f04..0000000 --- a/src/main/java/com/meishu/dto/chapter/AddTreeToChapterDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.chapter; - -import lombok.Data; - -import java.util.List; - -@Data -public class AddTreeToChapterDTO { - - private List ids; - - private Long chapterId; - -} diff --git a/src/main/java/com/meishu/dto/chapter/ChapterExerciseVO.java b/src/main/java/com/meishu/dto/chapter/ChapterExerciseVO.java deleted file mode 100644 index e3c31eb..0000000 --- a/src/main/java/com/meishu/dto/chapter/ChapterExerciseVO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.dto.chapter; - -import com.meishu.model.CourseTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class ChapterExerciseVO { - - private String createTime; - - private Integer rightCounts; - - private Integer totalCounts; - - private String chapter; - - private List courseTreeDOS; - -} diff --git a/src/main/java/com/meishu/dto/chapter/ChapterVodsVO.java b/src/main/java/com/meishu/dto/chapter/ChapterVodsVO.java deleted file mode 100644 index d99b4ae..0000000 --- a/src/main/java/com/meishu/dto/chapter/ChapterVodsVO.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.dto.chapter; - -import lombok.Data; - -@Data -public class ChapterVodsVO { - - private Long vodId; - - private String vodName; - - private String treeName; - - private Integer vodLength; - - private Integer playRecord; - - private String lengthPercent; - - private String createTime; - - private Integer playCounts; - - private Long id; -} diff --git a/src/main/java/com/meishu/dto/chapter/GetChapterCourseDetailVO.java b/src/main/java/com/meishu/dto/chapter/GetChapterCourseDetailVO.java deleted file mode 100644 index 5f06535..0000000 --- a/src/main/java/com/meishu/dto/chapter/GetChapterCourseDetailVO.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.meishu.dto.chapter; - -import com.meishu.vo.course.GetExerciseDetailVO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetChapterCourseDetailVO { - - private String chapter; - - private String createTime; - - private Integer rightCounts; - - private Integer totalCounts; - - private String avgRightPercent; - - private Integer useLength; - - private Integer avgLength; - - private List getExerciseDetailVOS; - -} diff --git a/src/main/java/com/meishu/dto/chapter/StudentChapterDTO.java b/src/main/java/com/meishu/dto/chapter/StudentChapterDTO.java deleted file mode 100644 index 8934eae..0000000 --- a/src/main/java/com/meishu/dto/chapter/StudentChapterDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.chapter; - -import lombok.Data; - -@Data -public class StudentChapterDTO { - - private Long studentId; - - private Long chapterId; - - private Long courseId; - -} diff --git a/src/main/java/com/meishu/dto/chapter/UpdateChapterOrderDTO.java b/src/main/java/com/meishu/dto/chapter/UpdateChapterOrderDTO.java deleted file mode 100644 index 351e705..0000000 --- a/src/main/java/com/meishu/dto/chapter/UpdateChapterOrderDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.chapter; - -import lombok.Data; - -import java.util.List; - -@Data -public class UpdateChapterOrderDTO { - - private List ids; - -} diff --git a/src/main/java/com/meishu/dto/classes/AddClassDTO.java b/src/main/java/com/meishu/dto/classes/AddClassDTO.java deleted file mode 100644 index e66e509..0000000 --- a/src/main/java/com/meishu/dto/classes/AddClassDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.classes; - -import com.meishu.model.ClassesDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class AddClassDTO extends ClassesDictDO { - - List subjects; - -} diff --git a/src/main/java/com/meishu/dto/classes/AddSubjectTeacherDTO.java b/src/main/java/com/meishu/dto/classes/AddSubjectTeacherDTO.java deleted file mode 100644 index 390debb..0000000 --- a/src/main/java/com/meishu/dto/classes/AddSubjectTeacherDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.classes; - -import lombok.Data; - -import java.util.List; - -@Data -public class AddSubjectTeacherDTO { - - private List addSubjectTeacherMappingDTOS; - - private Integer classId; - -} diff --git a/src/main/java/com/meishu/dto/classes/AddSubjectTeacherMappingDTO.java b/src/main/java/com/meishu/dto/classes/AddSubjectTeacherMappingDTO.java deleted file mode 100644 index f563e18..0000000 --- a/src/main/java/com/meishu/dto/classes/AddSubjectTeacherMappingDTO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.classes; - -import lombok.Data; - -import java.util.List; - -@Data -public class AddSubjectTeacherMappingDTO { - - private String subjectId; - - private List teacherIds; - - -} diff --git a/src/main/java/com/meishu/dto/classes/BatchAddStudentToClassDTO.java b/src/main/java/com/meishu/dto/classes/BatchAddStudentToClassDTO.java deleted file mode 100644 index f8b3ba1..0000000 --- a/src/main/java/com/meishu/dto/classes/BatchAddStudentToClassDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.classes; - -import lombok.Data; - -import java.util.List; - -@Data -public class BatchAddStudentToClassDTO { - - private List ids; - - private Integer classId; - -} diff --git a/src/main/java/com/meishu/dto/classes/BatchUpGradeDTO.java b/src/main/java/com/meishu/dto/classes/BatchUpGradeDTO.java deleted file mode 100644 index 253ee6e..0000000 --- a/src/main/java/com/meishu/dto/classes/BatchUpGradeDTO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.classes; - -import lombok.Data; - -import java.util.Date; -import java.util.List; - -@Data -public class BatchUpGradeDTO { - - private List ids; - - private Date upgradeDate; - -} diff --git a/src/main/java/com/meishu/dto/classes/GetClassStudentsDTO.java b/src/main/java/com/meishu/dto/classes/GetClassStudentsDTO.java deleted file mode 100644 index 9a9ee98..0000000 --- a/src/main/java/com/meishu/dto/classes/GetClassStudentsDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.classes; - -import lombok.Data; - -@Data -public class GetClassStudentsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Integer classId; - - private String userName; - -} diff --git a/src/main/java/com/meishu/dto/classes/GetClassesDTO.java b/src/main/java/com/meishu/dto/classes/GetClassesDTO.java deleted file mode 100644 index d6d11e8..0000000 --- a/src/main/java/com/meishu/dto/classes/GetClassesDTO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.classes; - -import lombok.Data; - -@Data -public class GetClassesDTO { - - private Integer pageNum; - - private Integer pageSize; - - private String className; - - private String grade; - - private String session; - - private String status; - -} diff --git a/src/main/java/com/meishu/dto/classes/QueryNoClassStudentsDTO.java b/src/main/java/com/meishu/dto/classes/QueryNoClassStudentsDTO.java deleted file mode 100644 index 7c7cf5b..0000000 --- a/src/main/java/com/meishu/dto/classes/QueryNoClassStudentsDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.classes; - -import lombok.Data; - -@Data -public class QueryNoClassStudentsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String userName; - -} diff --git a/src/main/java/com/meishu/dto/course/AddCourseDTO.java b/src/main/java/com/meishu/dto/course/AddCourseDTO.java deleted file mode 100644 index 5ed8383..0000000 --- a/src/main/java/com/meishu/dto/course/AddCourseDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.course; - -import com.meishu.model.CourseDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class AddCourseDTO extends CourseDictDO { - - private List administerIds; - -} diff --git a/src/main/java/com/meishu/dto/course/AddCourseTreeNodeDTO.java b/src/main/java/com/meishu/dto/course/AddCourseTreeNodeDTO.java deleted file mode 100644 index 362925b..0000000 --- a/src/main/java/com/meishu/dto/course/AddCourseTreeNodeDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.course; - - -import com.meishu.model.CourseTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class AddCourseTreeNodeDTO { - - private Long courseId; - - private List courseTreeDOS; - -} diff --git a/src/main/java/com/meishu/dto/course/AddStudentAuthenDTO.java b/src/main/java/com/meishu/dto/course/AddStudentAuthenDTO.java deleted file mode 100644 index 2caf633..0000000 --- a/src/main/java/com/meishu/dto/course/AddStudentAuthenDTO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.course; - -import lombok.Data; - -import java.util.List; - -@Data -public class AddStudentAuthenDTO { - - private List ids; - - private String startDate; - - private String endDate; - - private Long courseId; - - private Long administerId; - -} diff --git a/src/main/java/com/meishu/dto/course/BatchVodOprDTO.java b/src/main/java/com/meishu/dto/course/BatchVodOprDTO.java deleted file mode 100644 index d7b2953..0000000 --- a/src/main/java/com/meishu/dto/course/BatchVodOprDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.course; - -import lombok.Data; - -import java.util.List; - -@Data -public class BatchVodOprDTO { - - private List ids; - - private String status; - -} diff --git a/src/main/java/com/meishu/dto/course/CourseProgressDTO.java b/src/main/java/com/meishu/dto/course/CourseProgressDTO.java deleted file mode 100644 index a390de4..0000000 --- a/src/main/java/com/meishu/dto/course/CourseProgressDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.course; - -import lombok.Data; - -@Data -public class CourseProgressDTO { - - private Long courseId; - - private Integer pageSize; - - private Integer pageNum; - - private Long campusId; - - private String username; - -} diff --git a/src/main/java/com/meishu/dto/course/CourseVodDTO.java b/src/main/java/com/meishu/dto/course/CourseVodDTO.java deleted file mode 100644 index d32825d..0000000 --- a/src/main/java/com/meishu/dto/course/CourseVodDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.course; - -import lombok.Data; - -@Data -public class CourseVodDTO { - - private Long courseTreeId; - - private Long vodId; - -} diff --git a/src/main/java/com/meishu/dto/course/GetAllUnAuthenStudentsDTO.java b/src/main/java/com/meishu/dto/course/GetAllUnAuthenStudentsDTO.java deleted file mode 100644 index ffca948..0000000 --- a/src/main/java/com/meishu/dto/course/GetAllUnAuthenStudentsDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.course; - -import lombok.Data; - -@Data -public class GetAllUnAuthenStudentsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Long courseId; - - private String username; - - private String campus; - -} diff --git a/src/main/java/com/meishu/dto/course/GetCourseStudentsDTO.java b/src/main/java/com/meishu/dto/course/GetCourseStudentsDTO.java deleted file mode 100644 index 539d600..0000000 --- a/src/main/java/com/meishu/dto/course/GetCourseStudentsDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.course; - -import lombok.Data; - -@Data -public class GetCourseStudentsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Long courseId; - - private String username; - -} diff --git a/src/main/java/com/meishu/dto/course/GetExercisesByTreeDTO.java b/src/main/java/com/meishu/dto/course/GetExercisesByTreeDTO.java deleted file mode 100644 index d8507ce..0000000 --- a/src/main/java/com/meishu/dto/course/GetExercisesByTreeDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.course; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetExercisesByTreeDTO { - - private Long treeId; - - private List exerciseIds; - -} diff --git a/src/main/java/com/meishu/dto/department/BatchOprDTO.java b/src/main/java/com/meishu/dto/department/BatchOprDTO.java deleted file mode 100644 index 1eba2b0..0000000 --- a/src/main/java/com/meishu/dto/department/BatchOprDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.department; - -import lombok.Data; - -import java.util.List; - -@Data -public class BatchOprDTO { - - private List ids; - - private Long parentId; - - private Long departmentLeaderId; - -} diff --git a/src/main/java/com/meishu/dto/department/GetAllDepartmentVO.java b/src/main/java/com/meishu/dto/department/GetAllDepartmentVO.java deleted file mode 100644 index 93e39d5..0000000 --- a/src/main/java/com/meishu/dto/department/GetAllDepartmentVO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.meishu.dto.department; - -import com.meishu.model.AdministerDO; -import com.meishu.model.AdministerDepartmentMappingDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllDepartmentVO { - - private Long id; - - private String departmentName; - - private Long departmentLeaderId; - - private Long parentId; - - private String parentDepartmentName; - - private Long administerId; - - private String userName; - - private String img; - - private Integer count; - -// private Long administerDepartmentId; - - private List administerDOS; - - private List administerDepartmentMappingDOS; - - private List children; - -} diff --git a/src/main/java/com/meishu/dto/department/GetTeachersDTO.java b/src/main/java/com/meishu/dto/department/GetTeachersDTO.java deleted file mode 100644 index 755e67b..0000000 --- a/src/main/java/com/meishu/dto/department/GetTeachersDTO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.department; - -import lombok.Data; - -@Data -public class GetTeachersDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Long departmentId; - - private String userName; - - private Long campusId; - - private Long userId; - -} diff --git a/src/main/java/com/meishu/dto/dimension/AddStarDTO.java b/src/main/java/com/meishu/dto/dimension/AddStarDTO.java deleted file mode 100644 index f6bdda5..0000000 --- a/src/main/java/com/meishu/dto/dimension/AddStarDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.dimension; - -import com.meishu.model.SubjectDimensionStarDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class AddStarDTO extends SubjectDimensionStarDictDO { - - private List treeIds; - -} diff --git a/src/main/java/com/meishu/dto/dimension/DeleteStarByIdDTO.java b/src/main/java/com/meishu/dto/dimension/DeleteStarByIdDTO.java deleted file mode 100644 index b51f994..0000000 --- a/src/main/java/com/meishu/dto/dimension/DeleteStarByIdDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.dimension; - -import lombok.Data; - -import java.util.List; - -@Data -public class DeleteStarByIdDTO { - - private List ids; - -} diff --git a/src/main/java/com/meishu/dto/exercise/AddExerciseDTO.java b/src/main/java/com/meishu/dto/exercise/AddExerciseDTO.java deleted file mode 100644 index f2dd668..0000000 --- a/src/main/java/com/meishu/dto/exercise/AddExerciseDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.exercise; - -import com.meishu.model.ExerciseDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class AddExerciseDTO extends ExerciseDictDO { - - private List treeIds; - -} diff --git a/src/main/java/com/meishu/dto/exercise/CheckExerciseDTO.java b/src/main/java/com/meishu/dto/exercise/CheckExerciseDTO.java deleted file mode 100644 index 1efb139..0000000 --- a/src/main/java/com/meishu/dto/exercise/CheckExerciseDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.exercise; - -import com.meishu.model.ExerciseDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class CheckExerciseDTO extends ExerciseDictDO { - - private List treeIds; - -} diff --git a/src/main/java/com/meishu/dto/exercise/ExeLatexExpressDTO.java b/src/main/java/com/meishu/dto/exercise/ExeLatexExpressDTO.java deleted file mode 100644 index f877753..0000000 --- a/src/main/java/com/meishu/dto/exercise/ExeLatexExpressDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.exercise; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-08-08 23:20 - */ -@Data -public class ExeLatexExpressDTO { - - private String latex; - -} diff --git a/src/main/java/com/meishu/dto/exercise/GetExerciseRequestDTO.java b/src/main/java/com/meishu/dto/exercise/GetExerciseRequestDTO.java deleted file mode 100644 index 5e903dc..0000000 --- a/src/main/java/com/meishu/dto/exercise/GetExerciseRequestDTO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.dto.exercise; - -import com.meishu.model.ExerciseDictDO; -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-19 17:07 - */ -@Data -public class GetExerciseRequestDTO extends ExerciseDictDO { - - private Integer collectionStatus; - - private String school; - - private Integer userId; - - private Integer treeId; - -} diff --git a/src/main/java/com/meishu/dto/exercise/GetStatusVodsDTO.java b/src/main/java/com/meishu/dto/exercise/GetStatusVodsDTO.java deleted file mode 100644 index dba1d2b..0000000 --- a/src/main/java/com/meishu/dto/exercise/GetStatusVodsDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.exercise; - -import lombok.Data; - -@Data -public class GetStatusVodsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String status; - - private Long treeId; - -} diff --git a/src/main/java/com/meishu/dto/exercise/GetTreeExercisesDTO.java b/src/main/java/com/meishu/dto/exercise/GetTreeExercisesDTO.java deleted file mode 100644 index f1d0012..0000000 --- a/src/main/java/com/meishu/dto/exercise/GetTreeExercisesDTO.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.dto.exercise; - -import lombok.Data; - -@Data -public class GetTreeExercisesDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Long treeId; - - private String exerciseType; - - private Integer difficulty; - - private String title; - - private Long subjectId; - - private String status; - - private String shareStatus; - - private String checkStatus; - - private Long userId; - - -} diff --git a/src/main/java/com/meishu/dto/exercise/QueryCourseTreeExerciseDTO.java b/src/main/java/com/meishu/dto/exercise/QueryCourseTreeExerciseDTO.java deleted file mode 100644 index 451c629..0000000 --- a/src/main/java/com/meishu/dto/exercise/QueryCourseTreeExerciseDTO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.dto.exercise; - -import lombok.Data; - -@Data -public class QueryCourseTreeExerciseDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String title; - - private Integer difficulty; - - private String exerciseType; - - private Long courseId; - - private Long courseTreeId; - -} diff --git a/src/main/java/com/meishu/dto/exercise/UpdateStatusDTO.java b/src/main/java/com/meishu/dto/exercise/UpdateStatusDTO.java deleted file mode 100644 index 0242cbd..0000000 --- a/src/main/java/com/meishu/dto/exercise/UpdateStatusDTO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.exercise; - -import lombok.Data; - -import java.util.List; - -@Data -public class UpdateStatusDTO { - - private List ids; - - private String status; - - private String startDate; - - private String endDate; - - private Long administerId; - -} diff --git a/src/main/java/com/meishu/dto/grade/AddGradeDTO.java b/src/main/java/com/meishu/dto/grade/AddGradeDTO.java deleted file mode 100644 index 0b63cca..0000000 --- a/src/main/java/com/meishu/dto/grade/AddGradeDTO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.dto.grade; - -import com.meishu.model.SubjectTestGradeExampleMappingDO; -import com.meishu.model.SubjectTestGradeStarMappingDO; -import lombok.Data; - -import java.util.List; - -@Data -public class AddGradeDTO { - - private Long id; - - private String gradeName; - - private Long publishId; - - private String content; - - private List subjectTestGradeExampleMappingDOS; - - private List subjectTestGradeStarMappingDOS; - -} diff --git a/src/main/java/com/meishu/dto/laboratory/LaboratoryDictDTO.java b/src/main/java/com/meishu/dto/laboratory/LaboratoryDictDTO.java deleted file mode 100644 index dbb0070..0000000 --- a/src/main/java/com/meishu/dto/laboratory/LaboratoryDictDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.laboratory; - -import lombok.Data; -import java.util.List; - -@Data -public class LaboratoryDictDTO { - - private Long id; - - private String laboratoryName; - - private String laboratoryType; - - private Integer maxNum; - - private List sessionDictId; -} diff --git a/src/main/java/com/meishu/dto/laboratory/LaboratoryPageDTO.java b/src/main/java/com/meishu/dto/laboratory/LaboratoryPageDTO.java deleted file mode 100644 index 11c9de9..0000000 --- a/src/main/java/com/meishu/dto/laboratory/LaboratoryPageDTO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.laboratory; - -import lombok.Data; - -@Data -public class LaboratoryPageDTO { - - private String name; - - private String laboratoryType; - - private Integer pageNo; - - private Integer pageSize; -} diff --git a/src/main/java/com/meishu/dto/laboratorySession/CalendarStatusDTO.java b/src/main/java/com/meishu/dto/laboratorySession/CalendarStatusDTO.java deleted file mode 100644 index d8d8e24..0000000 --- a/src/main/java/com/meishu/dto/laboratorySession/CalendarStatusDTO.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.meishu.dto.laboratorySession; - -import lombok.Data; - -@Data -public class CalendarStatusDTO { - - private String selectDate; -} diff --git a/src/main/java/com/meishu/dto/laboratorySession/GetLaboratorySessionDTO.java b/src/main/java/com/meishu/dto/laboratorySession/GetLaboratorySessionDTO.java deleted file mode 100644 index 09b879b..0000000 --- a/src/main/java/com/meishu/dto/laboratorySession/GetLaboratorySessionDTO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.dto.laboratorySession; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetLaboratorySessionDTO { - - private Long studentId; - - private String startDate; - - private String laboratoryType; - - private List sessionsDictId; -} diff --git a/src/main/java/com/meishu/dto/laboratorySession/LaboratorySessionListDTO.java b/src/main/java/com/meishu/dto/laboratorySession/LaboratorySessionListDTO.java deleted file mode 100644 index 0021402..0000000 --- a/src/main/java/com/meishu/dto/laboratorySession/LaboratorySessionListDTO.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.meishu.dto.laboratorySession; - -import lombok.Data; - -@Data -public class LaboratorySessionListDTO { - - private String startDate; -} \ No newline at end of file diff --git a/src/main/java/com/meishu/dto/laboratorySession/SetLaboratorySessionDTO.java b/src/main/java/com/meishu/dto/laboratorySession/SetLaboratorySessionDTO.java deleted file mode 100644 index ed3ca68..0000000 --- a/src/main/java/com/meishu/dto/laboratorySession/SetLaboratorySessionDTO.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.dto.laboratorySession; - -import lombok.Data; - -import java.util.List; - -@Data -public class SetLaboratorySessionDTO { - - private Long laboratoryDictId; - - private String laboratoryType; - - private String grade; - - private String startDate; - - private String registerStartDate; - - private String registerEndDate; - - private List sessionDictId; -} diff --git a/src/main/java/com/meishu/dto/laboratoryUser/ApplyDTO.java b/src/main/java/com/meishu/dto/laboratoryUser/ApplyDTO.java deleted file mode 100644 index ef6b98a..0000000 --- a/src/main/java/com/meishu/dto/laboratoryUser/ApplyDTO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.dto.laboratoryUser; - -import lombok.Data; - -@Data -public class ApplyDTO { - - private Long studentId; - - private Long laboratorySessionId; -} diff --git a/src/main/java/com/meishu/dto/laboratoryUser/LaboratoryUserPageDTO.java b/src/main/java/com/meishu/dto/laboratoryUser/LaboratoryUserPageDTO.java deleted file mode 100644 index 8459516..0000000 --- a/src/main/java/com/meishu/dto/laboratoryUser/LaboratoryUserPageDTO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.laboratoryUser; - -import lombok.Data; - -@Data -public class LaboratoryUserPageDTO { - - private Long laboratorySessionId; - - private String startDate; - - private Integer pageNo; - - private Integer pageSize; -} diff --git a/src/main/java/com/meishu/dto/question/QueryQuestionsDTO.java b/src/main/java/com/meishu/dto/question/QueryQuestionsDTO.java deleted file mode 100644 index 0192166..0000000 --- a/src/main/java/com/meishu/dto/question/QueryQuestionsDTO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.dto.question; - -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Data; - -import java.util.Date; - -@Data -public class QueryQuestionsDTO { - - private Integer pageSize; - - private Integer pageNum; - - - private String userName; - - @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") - private Date startDate; - - @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") - private Date endDate; - - private Integer subjectId; - -} diff --git a/src/main/java/com/meishu/dto/role/AddPermissionDTO.java b/src/main/java/com/meishu/dto/role/AddPermissionDTO.java deleted file mode 100644 index 334b699..0000000 --- a/src/main/java/com/meishu/dto/role/AddPermissionDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.role; - -import lombok.Data; - -import java.util.List; - -@Data -public class AddPermissionDTO { - - private Long roleId; - - private List permissionIds; - -} diff --git a/src/main/java/com/meishu/dto/role/DeletePermissionDTO.java b/src/main/java/com/meishu/dto/role/DeletePermissionDTO.java deleted file mode 100644 index e3abffc..0000000 --- a/src/main/java/com/meishu/dto/role/DeletePermissionDTO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.role; - - -import lombok.Data; - -import java.util.List; - -@Data -public class DeletePermissionDTO { - - private List roleIds; - - private Long permissionId; - -} diff --git a/src/main/java/com/meishu/dto/role/GetRoleTeachersDTO.java b/src/main/java/com/meishu/dto/role/GetRoleTeachersDTO.java deleted file mode 100644 index 89b869a..0000000 --- a/src/main/java/com/meishu/dto/role/GetRoleTeachersDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.role; - -import lombok.Data; - -@Data -public class GetRoleTeachersDTO { - - private String userName; - - private Long roleId; - - private Integer pageSize; - - private Integer pageNum; - -} diff --git a/src/main/java/com/meishu/dto/role/RoleTeacherDTO.java b/src/main/java/com/meishu/dto/role/RoleTeacherDTO.java deleted file mode 100644 index 5c0239f..0000000 --- a/src/main/java/com/meishu/dto/role/RoleTeacherDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.role; - -import lombok.Data; - -import java.util.List; - -@Data -public class RoleTeacherDTO { - - private List ids; - - private Long roleId; - -} diff --git a/src/main/java/com/meishu/dto/rule/GetAllRulesDTO.java b/src/main/java/com/meishu/dto/rule/GetAllRulesDTO.java deleted file mode 100644 index 21ca3ca..0000000 --- a/src/main/java/com/meishu/dto/rule/GetAllRulesDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.rule; - -import lombok.Data; - -@Data -public class GetAllRulesDTO { - - private Integer pageSize; - - private Integer pageNum; - -} diff --git a/src/main/java/com/meishu/dto/rule/GetRuleReportDTO.java b/src/main/java/com/meishu/dto/rule/GetRuleReportDTO.java deleted file mode 100644 index c29ae0f..0000000 --- a/src/main/java/com/meishu/dto/rule/GetRuleReportDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.rule; - -import lombok.Data; - -@Data -public class GetRuleReportDTO { - - private Long ruleId; - - private Long campusId; - - private String ruleName; - -} diff --git a/src/main/java/com/meishu/dto/semester/GetSemesterScoreDTO.java b/src/main/java/com/meishu/dto/semester/GetSemesterScoreDTO.java deleted file mode 100644 index 7459c06..0000000 --- a/src/main/java/com/meishu/dto/semester/GetSemesterScoreDTO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.dto.semester; - -import lombok.Data; - -@Data -public class GetSemesterScoreDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String userName; - - private String semester; - - private String subject; - - private String grade; - - private String classes; - - private String session; - -} diff --git a/src/main/java/com/meishu/dto/semester/GetStudentDetailDTO.java b/src/main/java/com/meishu/dto/semester/GetStudentDetailDTO.java deleted file mode 100644 index 74e1a4a..0000000 --- a/src/main/java/com/meishu/dto/semester/GetStudentDetailDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.semester; - -import lombok.Data; - -@Data -public class GetStudentDetailDTO { - - private Integer pageNum; - - private Integer pageSize; - - private Integer id; - - private Integer userId; - -} diff --git a/src/main/java/com/meishu/dto/semester/GetStudentRecordDTO.java b/src/main/java/com/meishu/dto/semester/GetStudentRecordDTO.java deleted file mode 100644 index 3f6c0ee..0000000 --- a/src/main/java/com/meishu/dto/semester/GetStudentRecordDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.semester; - -import lombok.Data; - -@Data -public class GetStudentRecordDTO { - - private String startDate; - - private String endDate; - -} diff --git a/src/main/java/com/meishu/dto/sessions/SessionsDictPageDTO.java b/src/main/java/com/meishu/dto/sessions/SessionsDictPageDTO.java deleted file mode 100644 index e74af48..0000000 --- a/src/main/java/com/meishu/dto/sessions/SessionsDictPageDTO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.dto.sessions; - -import lombok.Data; - -@Data -public class SessionsDictPageDTO { - - private Integer pageNo; - - private Integer pageSize; -} diff --git a/src/main/java/com/meishu/dto/sign/ClassSignInDTO.java b/src/main/java/com/meishu/dto/sign/ClassSignInDTO.java deleted file mode 100644 index 5760c01..0000000 --- a/src/main/java/com/meishu/dto/sign/ClassSignInDTO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.dto.sign; - -import lombok.Data; - -import java.util.Date; - -@Data -public class ClassSignInDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Integer classId; - - private String userName; - - private Date startDate; - - private Date endDate; - -} diff --git a/src/main/java/com/meishu/dto/sms/SendVerifyCodeDTO.java b/src/main/java/com/meishu/dto/sms/SendVerifyCodeDTO.java deleted file mode 100644 index 47f80d0..0000000 --- a/src/main/java/com/meishu/dto/sms/SendVerifyCodeDTO.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.meishu.dto.sms; - -import lombok.Data; - -@Data -public class SendVerifyCodeDTO { - - private String phone; -} diff --git a/src/main/java/com/meishu/dto/sms/VerifyCodeDTO.java b/src/main/java/com/meishu/dto/sms/VerifyCodeDTO.java deleted file mode 100644 index d65a2e5..0000000 --- a/src/main/java/com/meishu/dto/sms/VerifyCodeDTO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.dto.sms; - -import lombok.Data; - -@Data -public class VerifyCodeDTO { - - private String phone; - - private String verifyCode; -} diff --git a/src/main/java/com/meishu/dto/student/DeleteStudentDTO.java b/src/main/java/com/meishu/dto/student/DeleteStudentDTO.java deleted file mode 100644 index 4fce943..0000000 --- a/src/main/java/com/meishu/dto/student/DeleteStudentDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.student; - - -import lombok.Data; - -import java.util.List; - -@Data -public class DeleteStudentDTO { - - private List ids; - -} diff --git a/src/main/java/com/meishu/dto/student/GetChildTreesDTO.java b/src/main/java/com/meishu/dto/student/GetChildTreesDTO.java deleted file mode 100644 index 0e2e9e3..0000000 --- a/src/main/java/com/meishu/dto/student/GetChildTreesDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.student; - -import lombok.Data; - -@Data -public class GetChildTreesDTO { - - private Long studentId; - - private Long courseTreeId; - -} diff --git a/src/main/java/com/meishu/dto/student/GetStudentRulesDTO.java b/src/main/java/com/meishu/dto/student/GetStudentRulesDTO.java deleted file mode 100644 index ffd48f2..0000000 --- a/src/main/java/com/meishu/dto/student/GetStudentRulesDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.student; - -import lombok.Data; - -@Data -public class GetStudentRulesDTO { - - private Long id; - - private Long subjectId; - -} diff --git a/src/main/java/com/meishu/dto/student/GetStudyProgressDTO.java b/src/main/java/com/meishu/dto/student/GetStudyProgressDTO.java deleted file mode 100644 index 051a189..0000000 --- a/src/main/java/com/meishu/dto/student/GetStudyProgressDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.student; - -import lombok.Data; - -@Data -public class GetStudyProgressDTO { - - private Long studentId; - - private Long chapterId; - -} diff --git a/src/main/java/com/meishu/dto/student/GetVodIndexDTO.java b/src/main/java/com/meishu/dto/student/GetVodIndexDTO.java deleted file mode 100644 index e72eac0..0000000 --- a/src/main/java/com/meishu/dto/student/GetVodIndexDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.student; - -import lombok.Data; - -@Data -public class GetVodIndexDTO { - - private Long studentId; - - private Long treeId; - - private Long chapterId; - -} diff --git a/src/main/java/com/meishu/dto/student/SearchVodsDTO.java b/src/main/java/com/meishu/dto/student/SearchVodsDTO.java deleted file mode 100644 index 2245124..0000000 --- a/src/main/java/com/meishu/dto/student/SearchVodsDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.student; - -import lombok.Data; - -@Data -public class SearchVodsDTO { - - private String treeName; - - private Long courseId; - - private Long studentId; -} diff --git a/src/main/java/com/meishu/dto/student/SubmitTestDTO.java b/src/main/java/com/meishu/dto/student/SubmitTestDTO.java deleted file mode 100644 index d5db469..0000000 --- a/src/main/java/com/meishu/dto/student/SubmitTestDTO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.dto.student; - -import com.meishu.model.CourseTreeExerciseStudentResultDO; -import lombok.Data; - -import java.util.List; - -@Data -public class SubmitTestDTO { - - private Long studentId; - - private Long chapterId; - - private List courseTreeExerciseStudentResultDOS; - -} diff --git a/src/main/java/com/meishu/dto/subject/BatchStatusOprDTO.java b/src/main/java/com/meishu/dto/subject/BatchStatusOprDTO.java deleted file mode 100644 index 138729e..0000000 --- a/src/main/java/com/meishu/dto/subject/BatchStatusOprDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.subject; - -import lombok.Data; - -import java.util.List; - -@Data -public class BatchStatusOprDTO { - - private List ids; - - private String status; - - private String isShow; - -} diff --git a/src/main/java/com/meishu/dto/subject/GetAllVodsStatusDTO.java b/src/main/java/com/meishu/dto/subject/GetAllVodsStatusDTO.java deleted file mode 100644 index 970abd7..0000000 --- a/src/main/java/com/meishu/dto/subject/GetAllVodsStatusDTO.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.meishu.dto.subject; - -import lombok.Data; - -@Data -public class GetAllVodsStatusDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String vodType; - - private Long treeId; - - private String status; - - -} diff --git a/src/main/java/com/meishu/dto/subject/GetSubjectAdministerDTO.java b/src/main/java/com/meishu/dto/subject/GetSubjectAdministerDTO.java deleted file mode 100644 index 53adae5..0000000 --- a/src/main/java/com/meishu/dto/subject/GetSubjectAdministerDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.subject; - -import lombok.Data; - -@Data -public class GetSubjectAdministerDTO { - - private Long subjectId; - - private String userName; - -} diff --git a/src/main/java/com/meishu/dto/subject/GetSubjectTreeDTO.java b/src/main/java/com/meishu/dto/subject/GetSubjectTreeDTO.java deleted file mode 100644 index 9c5186c..0000000 --- a/src/main/java/com/meishu/dto/subject/GetSubjectTreeDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.subject; - -import lombok.Data; - -@Data -public class GetSubjectTreeDTO { - - private Long userId; - - private Long subjectId; - - private String shareStatus; - -} diff --git a/src/main/java/com/meishu/dto/subject/GetSubjectsDTO.java b/src/main/java/com/meishu/dto/subject/GetSubjectsDTO.java deleted file mode 100644 index 036cb97..0000000 --- a/src/main/java/com/meishu/dto/subject/GetSubjectsDTO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.dto.subject; - -import lombok.Data; - -@Data -public class GetSubjectsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String subjectName; - - private String subjectType; - - private Long userId; -} diff --git a/src/main/java/com/meishu/dto/subject/UpdateTreeOrderDTO.java b/src/main/java/com/meishu/dto/subject/UpdateTreeOrderDTO.java deleted file mode 100644 index 0da8c10..0000000 --- a/src/main/java/com/meishu/dto/subject/UpdateTreeOrderDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.subject; - -import lombok.Data; - -import java.util.List; - -@Data -public class UpdateTreeOrderDTO { - - private List ids; - - private Long parentId; - - private String treeName; - -} diff --git a/src/main/java/com/meishu/dto/task/ClassDoneInfoDTO.java b/src/main/java/com/meishu/dto/task/ClassDoneInfoDTO.java deleted file mode 100644 index ea321d1..0000000 --- a/src/main/java/com/meishu/dto/task/ClassDoneInfoDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -@Data -public class ClassDoneInfoDTO { - - private Integer taskId; - - private Integer treeId; - - private String subject; - - private Integer exerciseType; - -} diff --git a/src/main/java/com/meishu/dto/task/ExeRightRatioDTO.java b/src/main/java/com/meishu/dto/task/ExeRightRatioDTO.java deleted file mode 100644 index fbd7ceb..0000000 --- a/src/main/java/com/meishu/dto/task/ExeRightRatioDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -@Data -public class ExeRightRatioDTO { - - //private Integer subjectId; - - private Integer taskId; - - private Integer treeId; - - private Integer userId; - - private Integer exerciseType; - -} diff --git a/src/main/java/com/meishu/dto/task/ExesDoneInfoPO.java b/src/main/java/com/meishu/dto/task/ExesDoneInfoPO.java deleted file mode 100644 index fe940f6..0000000 --- a/src/main/java/com/meishu/dto/task/ExesDoneInfoPO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -import java.util.List; - -@Data -public class ExesDoneInfoPO { - - private List exeIds; - - private String subject; - -} diff --git a/src/main/java/com/meishu/dto/task/GetClassStudentsDTO.java b/src/main/java/com/meishu/dto/task/GetClassStudentsDTO.java deleted file mode 100644 index e4d6747..0000000 --- a/src/main/java/com/meishu/dto/task/GetClassStudentsDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetClassStudentsDTO { - - private List ids; - -} diff --git a/src/main/java/com/meishu/dto/task/GetClassesRequestVO.java b/src/main/java/com/meishu/dto/task/GetClassesRequestVO.java deleted file mode 100644 index a5a7cfe..0000000 --- a/src/main/java/com/meishu/dto/task/GetClassesRequestVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-06-22 18:18 - */ -@Data -public class GetClassesRequestVO { - - private Integer userId; - - private String status; - - private String subject; - - private String subjectType; - -} diff --git a/src/main/java/com/meishu/dto/task/GetRecommendExeByTreeIdVO.java b/src/main/java/com/meishu/dto/task/GetRecommendExeByTreeIdVO.java deleted file mode 100644 index 886d0b2..0000000 --- a/src/main/java/com/meishu/dto/task/GetRecommendExeByTreeIdVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-23 17:50 - */ -@Data -public class GetRecommendExeByTreeIdVO { - - private String treeIds; - - private String school; - -} diff --git a/src/main/java/com/meishu/dto/task/GetRecommendVodByTreeIdVO.java b/src/main/java/com/meishu/dto/task/GetRecommendVodByTreeIdVO.java deleted file mode 100644 index ac0bfe0..0000000 --- a/src/main/java/com/meishu/dto/task/GetRecommendVodByTreeIdVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-23 14:13 - */ -@Data -public class GetRecommendVodByTreeIdVO { - - private String treeIds; - - private String school; - - private List treeIdInteger; - -} diff --git a/src/main/java/com/meishu/dto/task/GetTaskByIdRequestDTO.java b/src/main/java/com/meishu/dto/task/GetTaskByIdRequestDTO.java deleted file mode 100644 index d281d31..0000000 --- a/src/main/java/com/meishu/dto/task/GetTaskByIdRequestDTO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.dto.task; - -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Data; - -import java.util.Date; - -/** - * @author: tuyp - * @create: 2020-07-21 11:45 - */ -@Data -public class GetTaskByIdRequestDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Integer subjectId; - - private Integer classId; - - private String treeId; - - @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") - private Date startDate; - - @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") - private Date endDate; - - private Integer teacherId; - - private Integer taskType; - - private Date currentDate; - - private String subjectEn; - -} diff --git a/src/main/java/com/meishu/dto/task/GetUserVodPlayDTO.java b/src/main/java/com/meishu/dto/task/GetUserVodPlayDTO.java deleted file mode 100644 index 6f040f8..0000000 --- a/src/main/java/com/meishu/dto/task/GetUserVodPlayDTO.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.dto.task; - -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Data; - -import java.util.Date; - -/** - * @author: tuyp - * @create: 2020-07-23 11:50 - */ -@Data -public class GetUserVodPlayDTO { - - private Integer treeId; - - @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") - private Date taskDate; - - private Integer classesId; - - private String subject; - - private Integer vodId; - - private Integer taskId; - -} diff --git a/src/main/java/com/meishu/dto/task/PerStudentExesDTO.java b/src/main/java/com/meishu/dto/task/PerStudentExesDTO.java deleted file mode 100644 index 8c312a4..0000000 --- a/src/main/java/com/meishu/dto/task/PerStudentExesDTO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-23 15:41 - */ -@Data -public class PerStudentExesDTO { - - private Integer taskId; - - private Integer treeId; - - private Integer subjectId; - - private List userIds; - - private Integer classesId; - - private String subject; - -} diff --git a/src/main/java/com/meishu/dto/task/PerStudentExesRequestVO.java b/src/main/java/com/meishu/dto/task/PerStudentExesRequestVO.java deleted file mode 100644 index ed727d3..0000000 --- a/src/main/java/com/meishu/dto/task/PerStudentExesRequestVO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-23 15:41 - */ -@Data -public class PerStudentExesRequestVO { - - private Integer taskId; - - private Integer treeId; - - private Integer subjectId; - - private List userIds; - - private Integer classesId; - - private String subject; - -} diff --git a/src/main/java/com/meishu/dto/task/QueryTaskDetailDTO.java b/src/main/java/com/meishu/dto/task/QueryTaskDetailDTO.java deleted file mode 100644 index b81f30b..0000000 --- a/src/main/java/com/meishu/dto/task/QueryTaskDetailDTO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - - -/** - * @author: tuyp - * @create: 2020-06-28 10:53 - */ -@Data -public class QueryTaskDetailDTO { - - private Integer id; - - private String subject; - -} diff --git a/src/main/java/com/meishu/dto/task/StudentDoneInfoRequestVO.java b/src/main/java/com/meishu/dto/task/StudentDoneInfoRequestVO.java deleted file mode 100644 index cfdb23d..0000000 --- a/src/main/java/com/meishu/dto/task/StudentDoneInfoRequestVO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.dto.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-23 18:37 - */ -@Data -public class StudentDoneInfoRequestVO { - - private Integer userId; - - private Integer taskId; - - private String treeId; - - //private Integer subjectId; - - //private String subject; - -} diff --git a/src/main/java/com/meishu/dto/test/CommentDTO.java b/src/main/java/com/meishu/dto/test/CommentDTO.java deleted file mode 100644 index 9b42292..0000000 --- a/src/main/java/com/meishu/dto/test/CommentDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.test; - -import com.meishu.model.SubjectStudentAnswerStarDO; -import lombok.Data; - -import java.util.List; - -@Data -public class CommentDTO { - - List subjectStudentAnswerStarDOS; - -} diff --git a/src/main/java/com/meishu/dto/test/GetAllTestDTO.java b/src/main/java/com/meishu/dto/test/GetAllTestDTO.java deleted file mode 100644 index 9f34d03..0000000 --- a/src/main/java/com/meishu/dto/test/GetAllTestDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.test; - -import lombok.Data; - -@Data -public class GetAllTestDTO { - - private Integer pageSize; - - private Integer pageNum; - - private Long ruleId; - - private Long campusId; - - private String testName; - -} diff --git a/src/main/java/com/meishu/dto/test/GetOnePublishDTO.java b/src/main/java/com/meishu/dto/test/GetOnePublishDTO.java deleted file mode 100644 index 087fc6c..0000000 --- a/src/main/java/com/meishu/dto/test/GetOnePublishDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.test; - -import lombok.Data; - -@Data -public class GetOnePublishDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String commentStatus; - - private String userName; - - private Long id; - -} diff --git a/src/main/java/com/meishu/dto/test/GetPublishHistoryDTO.java b/src/main/java/com/meishu/dto/test/GetPublishHistoryDTO.java deleted file mode 100644 index 6ff7009..0000000 --- a/src/main/java/com/meishu/dto/test/GetPublishHistoryDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.test; - -import lombok.Data; - -@Data -public class GetPublishHistoryDTO { - - private Long ruleId; - - private Long campusId; - - private String publishName; - - private Integer pageSize; - - private Integer pageNum; - -} diff --git a/src/main/java/com/meishu/dto/test/GetTestReportDTO.java b/src/main/java/com/meishu/dto/test/GetTestReportDTO.java deleted file mode 100644 index bf5bb29..0000000 --- a/src/main/java/com/meishu/dto/test/GetTestReportDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.test; - -import lombok.Data; - -@Data -public class GetTestReportDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String publishName; - - private Long ruleId; - -} diff --git a/src/main/java/com/meishu/dto/test/PublishTestDTO.java b/src/main/java/com/meishu/dto/test/PublishTestDTO.java deleted file mode 100644 index 3786a7f..0000000 --- a/src/main/java/com/meishu/dto/test/PublishTestDTO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.dto.test; - -import lombok.Data; - -import java.util.List; - -@Data -public class PublishTestDTO { - - private Long publishId; - - private Long testId; - - private String testTime; - - private String publishName; - - private String outline; - - private String coverPage; - - private List studentIds; - - - -} diff --git a/src/main/java/com/meishu/dto/token/GetAllStudentsDTO.java b/src/main/java/com/meishu/dto/token/GetAllStudentsDTO.java deleted file mode 100644 index ca099bf..0000000 --- a/src/main/java/com/meishu/dto/token/GetAllStudentsDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.token; - -import com.meishu.model.UserRoleDO; -import lombok.Data; - -@Data -public class GetAllStudentsDTO extends UserRoleDO { - - private String uuid; - - private String uuidSecret; - -} diff --git a/src/main/java/com/meishu/dto/token/GetAllTeachersDTO.java b/src/main/java/com/meishu/dto/token/GetAllTeachersDTO.java deleted file mode 100644 index 29614e6..0000000 --- a/src/main/java/com/meishu/dto/token/GetAllTeachersDTO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.token; - -import com.meishu.model.AdministerDO; -import com.meishu.model.UserRoleDO; -import lombok.Data; - -@Data -public class GetAllTeachersDTO extends AdministerDO { - - private String uuid; - - private String uuidSecret; - - -} diff --git a/src/main/java/com/meishu/dto/userrole/AccountLoginDTO.java b/src/main/java/com/meishu/dto/userrole/AccountLoginDTO.java deleted file mode 100644 index 1327125..0000000 --- a/src/main/java/com/meishu/dto/userrole/AccountLoginDTO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.dto.userrole; - -import lombok.Data; - -@Data -public class AccountLoginDTO { - - private String idCard; - - private String password; -} diff --git a/src/main/java/com/meishu/dto/userrole/AddStudentsDTO.java b/src/main/java/com/meishu/dto/userrole/AddStudentsDTO.java deleted file mode 100644 index b5b0ecd..0000000 --- a/src/main/java/com/meishu/dto/userrole/AddStudentsDTO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.dto.userrole; - -import lombok.Data; - -@Data -public class AddStudentsDTO { - - private String userName; - - private String studyCode; - - private String phone; - - private String idCard; - - private String session; - - private String gender; - - private String email; - -} diff --git a/src/main/java/com/meishu/dto/userrole/QueryStudentsDTO.java b/src/main/java/com/meishu/dto/userrole/QueryStudentsDTO.java deleted file mode 100644 index 909b6fc..0000000 --- a/src/main/java/com/meishu/dto/userrole/QueryStudentsDTO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.dto.userrole; - -import lombok.Data; - -@Data -public class QueryStudentsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String userName; - - private String session; - - private String grade; - - private String userStatus; - -} diff --git a/src/main/java/com/meishu/dto/voddict/CheckVodDTO.java b/src/main/java/com/meishu/dto/voddict/CheckVodDTO.java deleted file mode 100644 index 646cddf..0000000 --- a/src/main/java/com/meishu/dto/voddict/CheckVodDTO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.dto.voddict; - -import com.meishu.model.VodDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class CheckVodDTO extends VodDictDO { - - private List treeIds; - -} diff --git a/src/main/java/com/meishu/dto/voddict/DeleteOriginVodDTO.java b/src/main/java/com/meishu/dto/voddict/DeleteOriginVodDTO.java deleted file mode 100644 index f77c5e1..0000000 --- a/src/main/java/com/meishu/dto/voddict/DeleteOriginVodDTO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.dto.voddict; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -import java.util.List; - -@Data -public class DeleteOriginVodDTO { - - @JsonProperty - private String EventType; - - @JsonProperty - private ProcedureStateChangeEvent ProcedureStateChangeEvent; - -} diff --git a/src/main/java/com/meishu/dto/voddict/GetToCheckVodCountsDTO.java b/src/main/java/com/meishu/dto/voddict/GetToCheckVodCountsDTO.java deleted file mode 100644 index 709e64d..0000000 --- a/src/main/java/com/meishu/dto/voddict/GetToCheckVodCountsDTO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.voddict; - -import lombok.Data; - -@Data -public class GetToCheckVodCountsDTO { - - private Long subjectId; - -// private String checkStatus; - -} diff --git a/src/main/java/com/meishu/dto/voddict/GetTreeVodsDTO.java b/src/main/java/com/meishu/dto/voddict/GetTreeVodsDTO.java deleted file mode 100644 index 6b6263c..0000000 --- a/src/main/java/com/meishu/dto/voddict/GetTreeVodsDTO.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.dto.voddict; - -import lombok.Data; - -@Data -public class GetTreeVodsDTO { - - private Integer pageSize; - - private Integer pageNum; - - private String vodType; - - private String vodName; - - private Long treeId; - - private Long subjectId; - - private String status; - - private String shareStatus; - - private Long userId; - - private String checkStatus; - -} diff --git a/src/main/java/com/meishu/dto/voddict/MediaProcessResultSet.java b/src/main/java/com/meishu/dto/voddict/MediaProcessResultSet.java deleted file mode 100644 index fb0ec06..0000000 --- a/src/main/java/com/meishu/dto/voddict/MediaProcessResultSet.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.voddict; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -@Data -public class MediaProcessResultSet { - - @JsonProperty - private TranscodeTask TranscodeTask; - -} diff --git a/src/main/java/com/meishu/dto/voddict/Output.java b/src/main/java/com/meishu/dto/voddict/Output.java deleted file mode 100644 index 6100af7..0000000 --- a/src/main/java/com/meishu/dto/voddict/Output.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.voddict; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -@Data -public class Output { - - @JsonProperty - private String Url; - -} diff --git a/src/main/java/com/meishu/dto/voddict/ProcedureStateChangeEvent.java b/src/main/java/com/meishu/dto/voddict/ProcedureStateChangeEvent.java deleted file mode 100644 index 06112e1..0000000 --- a/src/main/java/com/meishu/dto/voddict/ProcedureStateChangeEvent.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.voddict; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -import java.util.List; - -@Data -public class ProcedureStateChangeEvent { - - @JsonProperty - private String FileId; - - @JsonProperty - private List MediaProcessResultSet; -} diff --git a/src/main/java/com/meishu/dto/voddict/PublicCheckingDTO.java b/src/main/java/com/meishu/dto/voddict/PublicCheckingDTO.java deleted file mode 100644 index f9f72b7..0000000 --- a/src/main/java/com/meishu/dto/voddict/PublicCheckingDTO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.dto.voddict; - -import lombok.Data; - -@Data -public class PublicCheckingDTO { - - private Long userId; - - private String shareStatus; - - private Integer pageSize; - - private Integer pageNum; - - private Integer checkStatus; - -} diff --git a/src/main/java/com/meishu/dto/voddict/TranscodeTask.java b/src/main/java/com/meishu/dto/voddict/TranscodeTask.java deleted file mode 100644 index 46ff3ed..0000000 --- a/src/main/java/com/meishu/dto/voddict/TranscodeTask.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.dto.voddict; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -@Data -public class TranscodeTask { - - @JsonProperty - private Output Output; - -} diff --git a/src/main/java/com/meishu/dto/voddict/UploadVodsDTO.java b/src/main/java/com/meishu/dto/voddict/UploadVodsDTO.java deleted file mode 100644 index 1b9c21e..0000000 --- a/src/main/java/com/meishu/dto/voddict/UploadVodsDTO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.dto.voddict; - -import com.meishu.model.VodDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class UploadVodsDTO extends VodDictDO { - - private List treeIds; - - -} diff --git a/src/main/java/com/meishu/dto/wechat/AuthenRequestDTO.java b/src/main/java/com/meishu/dto/wechat/AuthenRequestDTO.java deleted file mode 100644 index 3ac523e..0000000 --- a/src/main/java/com/meishu/dto/wechat/AuthenRequestDTO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.wechat; - -import lombok.Data; - -@Data -public class AuthenRequestDTO { - - private String code; - - private String phone; - - private String openId; - - -} diff --git a/src/main/java/com/meishu/dto/wechat/InviteDTO.java b/src/main/java/com/meishu/dto/wechat/InviteDTO.java deleted file mode 100644 index 02fafda..0000000 --- a/src/main/java/com/meishu/dto/wechat/InviteDTO.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.meishu.dto.wechat; - -import lombok.Data; - -@Data -public class InviteDTO { - - private String userId; - -} diff --git a/src/main/java/com/meishu/dto/wechat/JsSdkDTO.java b/src/main/java/com/meishu/dto/wechat/JsSdkDTO.java deleted file mode 100644 index 5312889..0000000 --- a/src/main/java/com/meishu/dto/wechat/JsSdkDTO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.dto.wechat; - -import lombok.Data; - -@Data -public class JsSdkDTO { - - private String errcode; - - private String errmsg; - - private String ticket; - - private String expires_in; - - -} diff --git a/src/main/java/com/meishu/dto/wechat/PushMsgVO.java b/src/main/java/com/meishu/dto/wechat/PushMsgVO.java deleted file mode 100644 index eb0732c..0000000 --- a/src/main/java/com/meishu/dto/wechat/PushMsgVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.dto.wechat; - -import lombok.Data; - -@Data -public class PushMsgVO { - - private Integer errcode; - - private String errmsg; - - private Integer msgId; - - -} diff --git a/src/main/java/com/meishu/dto/wechat/SignDTO.java b/src/main/java/com/meishu/dto/wechat/SignDTO.java deleted file mode 100644 index 400c785..0000000 --- a/src/main/java/com/meishu/dto/wechat/SignDTO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.dto.wechat; - - -import lombok.Data; - -@Data -public class SignDTO { - - private String access_token; - - private String noncestr; - - private String jsapi_ticket; - - private String timestamp; - - private String url; - - private String sign; - - private String code; - - private String appId; - - private String agentId; -} diff --git a/src/main/java/com/meishu/dto/wechat/WechatInviteDTO.java b/src/main/java/com/meishu/dto/wechat/WechatInviteDTO.java deleted file mode 100644 index c89a483..0000000 --- a/src/main/java/com/meishu/dto/wechat/WechatInviteDTO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.dto.wechat; - -import lombok.Data; - -import java.util.List; - -@Data -public class WechatInviteDTO { - - private List user; - - private List party; - - private List tag; - -} diff --git a/src/main/java/com/meishu/job/UpgradeClassJob.java b/src/main/java/com/meishu/job/UpgradeClassJob.java deleted file mode 100644 index 9613934..0000000 --- a/src/main/java/com/meishu/job/UpgradeClassJob.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.meishu.job; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.mapper.ClassesDictHistoryMapper; -import com.meishu.mapper.ClassesDictMapper; -import com.meishu.model.ClassesDictDO; -import com.meishu.model.ClassesDictHistoryDO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -import java.util.Calendar; -import java.util.Date; -import java.util.List; - -/** - * 定时任务 每天凌晨查看班级里是否有需要晋升的 - */ - -@Component -public class UpgradeClassJob { - - @Autowired - private ClassesDictMapper classesDictMapper; - - @Autowired - private ClassesDictHistoryMapper classesDictHistoryMapper; - - @Scheduled(cron = "0 10 0 * * ?") - public void updateGrade(){ - - List classesDictDOS = classesDictMapper.selectList(new QueryWrapper() - .lambda() - .eq(ClassesDictDO::getStatus,"在读")); - - for (ClassesDictDO classesDictDO : classesDictDOS){ - - //获取班级的晋升时间 - Date date = classesDictDO.getUpgradeDate(); - Date current = new Date(); - - if (null!=date && date.getYear() == current.getYear() && date.getMonth() == current.getMonth() && date.getDate() == current.getDate()){ - - //将history表里该班级的记录置为归档 - ClassesDictHistoryDO classesDictHistoryDO = classesDictHistoryMapper.selectOne(new QueryWrapper() - .lambda() - .eq(ClassesDictHistoryDO::getStatus,"在读") - .eq(ClassesDictHistoryDO::getClassDictId,classesDictDO.getId())); - - if (null != classesDictHistoryDO){ - classesDictHistoryDO.setStatus("归档"); - classesDictHistoryMapper.updateById(classesDictHistoryDO); - } - - //将classdict表里的grade修改为新的年级 - if ("高三".equals(classesDictDO.getGrade())){ - classesDictDO.setStatus("归档"); - classesDictMapper.updateById(classesDictDO); - }else { - Calendar cal = Calendar.getInstance(); - int year = cal.get(Calendar.YEAR); - int month = cal.get(Calendar.MONTH)+1;//获取月份 - - if (month>=7){ - date.setYear(year-1899); - date.setMonth(7); - date.setDate(1); - date.setHours(0); - date.setMinutes(0); - date.setSeconds(0); - }else { - date.setYear(year-1900); - date.setMonth(7); - date.setDate(1); - date.setHours(0); - date.setMinutes(0); - date.setSeconds(0); - } - classesDictDO.setUpgradeDate(date); - classesDictDO.setGrade(changeGrade(classesDictDO.getGrade())); - classesDictDO.setClassName(changeClassName(classesDictDO.getClassName())); - classesDictMapper.updateById(classesDictDO); - - //在history中插入新的记录 - ClassesDictHistoryDO classesDictHistoryDO1 = new ClassesDictHistoryDO(); - BeanUtils.copyProperties(classesDictDO,classesDictHistoryDO1); - classesDictHistoryDO1.setClassDictId(classesDictDO.getId()); - classesDictHistoryMapper.insert(classesDictHistoryDO1); - } - } - } - } - - - public String changeGrade(String grade){ - - if("高一".equals(grade)){ - return "高二"; - }else { - return "高三"; - } - } - - public String changeClassName(String className){ - - String newName = ""; - if (className.contains("高一")){ - newName = className.replace("高一","高二"); - }else { - newName = className.replace("高二","高三"); - } - return newName; - } - - -} diff --git a/src/main/java/com/meishu/mapper/AccessTokenMapper.java b/src/main/java/com/meishu/mapper/AccessTokenMapper.java deleted file mode 100644 index f6e7219..0000000 --- a/src/main/java/com/meishu/mapper/AccessTokenMapper.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.dto.token.GetAllStudentsDTO; -import com.meishu.dto.token.GetAllTeachersDTO; -import com.meishu.model.AccessTokenDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.AdministerDO; -import com.meishu.model.UserRoleDO; -import com.meishu.vo.accesstoken.GetAllStudentsVO; -import com.meishu.vo.accesstoken.GetAllTeachersVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-10 - */ -@Repository -public interface AccessTokenMapper extends BaseMapper { - - List getAllTeachers(GetAllTeachersDTO getAllTeachersDTO); - - List getAllStudents(GetAllStudentsDTO getAllStudentsDTO); - -} diff --git a/src/main/java/com/meishu/mapper/AdministerDepartmentMappingMapper.java b/src/main/java/com/meishu/mapper/AdministerDepartmentMappingMapper.java deleted file mode 100644 index 14ae9a1..0000000 --- a/src/main/java/com/meishu/mapper/AdministerDepartmentMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.AdministerDepartmentMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 老师部门映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ - @Repository -public interface AdministerDepartmentMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/AdministerMapper.java b/src/main/java/com/meishu/mapper/AdministerMapper.java deleted file mode 100644 index ad9efd5..0000000 --- a/src/main/java/com/meishu/mapper/AdministerMapper.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.task.GetClassesRequestVO; -import com.meishu.model.*; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.administer.GetClassesDetailResponseVO; -import com.meishu.vo.administer.GetTeacherSubjectVO; -import com.meishu.vo.administer.GetTeachersVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 中心管理账户表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Repository -public interface AdministerMapper extends BaseMapper { - - - /** - * 获取某部门成员 - */ - IPage getDepartmentTeachers(IPage iPage, Long departmentId, Long campusId, String teacherName,List userIds); - - /** - * 查看某个老师在几个校区 - */ - List getTeacherCampus(Long id); - - /** - * 通过部门id获取部门人员 - */ - - List getAdministerByDepartmentId(Long departmentId); - - /** - * 通过成员id获取其所在的部门 - */ - List getDepartmentByAdministerId(Long administerId); - - /** - * 通过成员id获取其所有学科 - */ - List getTeacherSubjects(Long administerId); - - /** - * 通过成员id返回角色信息 - */ - List getTeacherRoles(Long administerId); - - /** - * 通过成员id返回其所有班级 - */ - List getTeacherClasses(Long administerId); - - /** - * 查看老师下的班级+科目 - * @param getClassesRequestVO - * @return - */ - List getClasses(GetClassesRequestVO getClassesRequestVO); - - - /** - * 查看老师具体的班级+科目 - */ - List getTeacherSubject(Integer userId); -} diff --git a/src/main/java/com/meishu/mapper/AdministerPermissionMapper.java b/src/main/java/com/meishu/mapper/AdministerPermissionMapper.java deleted file mode 100644 index 1fb31e3..0000000 --- a/src/main/java/com/meishu/mapper/AdministerPermissionMapper.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.AdministerPermissionDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.administer.PermissionsVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 系统用户角色表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ - @Repository -public interface AdministerPermissionMapper extends BaseMapper { - - List getPermissions(Long id); - - -} diff --git a/src/main/java/com/meishu/mapper/AdministerSubjectMappingMapper.java b/src/main/java/com/meishu/mapper/AdministerSubjectMappingMapper.java deleted file mode 100644 index b13d159..0000000 --- a/src/main/java/com/meishu/mapper/AdministerSubjectMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.AdministerSubjectMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 老师科目映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ - @Repository -public interface AdministerSubjectMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/AnsweringQuestionMapper.java b/src/main/java/com/meishu/mapper/AnsweringQuestionMapper.java deleted file mode 100644 index d85970a..0000000 --- a/src/main/java/com/meishu/mapper/AnsweringQuestionMapper.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.question.QueryQuestionsDTO; -import com.meishu.model.AnsweringQuestionDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.question.QueryQuestionsVO; -import org.springframework.stereotype.Repository; - -import java.util.Date; - -/** - *

- * 问题答疑表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@Repository -public interface AnsweringQuestionMapper extends BaseMapper { - - IPage queryQuestions(IPage page, Integer subjectId, Date startDate,Date endDate,String userName); - -} diff --git a/src/main/java/com/meishu/mapper/ClassSubjectTaskMapper.java b/src/main/java/com/meishu/mapper/ClassSubjectTaskMapper.java deleted file mode 100644 index 81d465c..0000000 --- a/src/main/java/com/meishu/mapper/ClassSubjectTaskMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.task.GetClassStudentsDTO; -import com.meishu.dto.task.GetTaskByIdRequestDTO; -import com.meishu.model.ClassSubjectTaskDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.UserRoleDO; -import com.meishu.vo.task.GetTaskByIdVO; -import org.springframework.stereotype.Repository; - -import java.util.Date; -import java.util.List; - -/** - *

- * 学习任务列表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Repository -public interface ClassSubjectTaskMapper extends BaseMapper { - - - IPage queryAlreadyTasks(IPage iPage, Integer classId, Integer subjectId, Date startDate, Date endDate, Integer taskType); - - List getClassStudents(GetClassStudentsDTO getClassStudentsDTO); - -} diff --git a/src/main/java/com/meishu/mapper/ClassesDictHistoryMapper.java b/src/main/java/com/meishu/mapper/ClassesDictHistoryMapper.java deleted file mode 100644 index 678b9c0..0000000 --- a/src/main/java/com/meishu/mapper/ClassesDictHistoryMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.ClassesDictHistoryDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 学校班级字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Repository -public interface ClassesDictHistoryMapper extends BaseMapper { - - List getAllPastSemester(String grade); - -} diff --git a/src/main/java/com/meishu/mapper/ClassesDictMapper.java b/src/main/java/com/meishu/mapper/ClassesDictMapper.java deleted file mode 100644 index 9f7e582..0000000 --- a/src/main/java/com/meishu/mapper/ClassesDictMapper.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.model.ClassesDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.UserRoleDO; -import com.meishu.vo.classes.GetClassStudentsVO; -import com.meishu.vo.classes.GetClassesVO; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 学校班级字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Repository -public interface ClassesDictMapper extends BaseMapper { - - IPage getClasses(IPage page, String className, String grade, String session, String status); - - List getClassStudents(Integer classId,String userName); - - IPage queryNoClassStudents(IPage iPage,String userName); - - ClassesDictDO getClassesById(@Param("studentId") Long studentId); - - List getGradeClasses(String grade); - -} diff --git a/src/main/java/com/meishu/mapper/ClassesUserMappingMapper.java b/src/main/java/com/meishu/mapper/ClassesUserMappingMapper.java deleted file mode 100644 index 6f6e81b..0000000 --- a/src/main/java/com/meishu/mapper/ClassesUserMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.ClassesUserMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 班级--学生--映射表(包括以前的班级) Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ - @Repository -public interface ClassesUserMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/CourseAdministerMappingMapper.java b/src/main/java/com/meishu/mapper/CourseAdministerMappingMapper.java deleted file mode 100644 index 7b7e439..0000000 --- a/src/main/java/com/meishu/mapper/CourseAdministerMappingMapper.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.AdministerDO; -import com.meishu.model.CourseAdministerMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 课程老师映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ - @Repository -public interface CourseAdministerMappingMapper extends BaseMapper { - - - /** - * 通过课程id查询老师 - */ - - List getAdminister(Long courseId); - -} diff --git a/src/main/java/com/meishu/mapper/CourseStudentStatusHistoryMapper.java b/src/main/java/com/meishu/mapper/CourseStudentStatusHistoryMapper.java deleted file mode 100644 index 6e8f201..0000000 --- a/src/main/java/com/meishu/mapper/CourseStudentStatusHistoryMapper.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.CourseStudentStatusHistoryDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.course.GetStudentHistoryVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-27 - */ -@Repository -public interface CourseStudentStatusHistoryMapper extends BaseMapper { - - /** - * 获取某个课程某个学生的授权记录 - */ - List getStudentHistory(CourseStudentStatusHistoryDO courseStudentStatusHistoryDO); - - - -} diff --git a/src/main/java/com/meishu/mapper/CourseTreeExerciseStudentResultMapper.java b/src/main/java/com/meishu/mapper/CourseTreeExerciseStudentResultMapper.java deleted file mode 100644 index 12d99b7..0000000 --- a/src/main/java/com/meishu/mapper/CourseTreeExerciseStudentResultMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.CourseTreeDO; -import com.meishu.model.CourseTreeExerciseStudentResultDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.SubjectTreeDO; -import com.meishu.vo.course.GetExerciseDetailVO; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 课程--学生做题记录 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -@Repository -public interface CourseTreeExerciseStudentResultMapper extends BaseMapper { - - - /** - * 查看某个学生某个章节的做题记录 - */ - List studentExercise(Long studentId, Long chapterId); - - /** - * 根据多个题目id查询这些题目关联的知识点 - */ - List getTreesByExerciseIds(@Param("longs") List longs); - - /** - * 查询吗,每个题目的做题详情 正确率用时 - */ - List getExerciseDetail(Long studentId, Long chapterId); - -} diff --git a/src/main/java/com/meishu/mapper/CourseTreeVodStudentResultMapper.java b/src/main/java/com/meishu/mapper/CourseTreeVodStudentResultMapper.java deleted file mode 100644 index fbeda54..0000000 --- a/src/main/java/com/meishu/mapper/CourseTreeVodStudentResultMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.CourseTreeVodStudentResultDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 学生视频完成情况 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-20 - */ - @Repository -public interface CourseTreeVodStudentResultMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/CourseVodTressStudentResultMapper.java b/src/main/java/com/meishu/mapper/CourseVodTressStudentResultMapper.java deleted file mode 100644 index 8a1645f..0000000 --- a/src/main/java/com/meishu/mapper/CourseVodTressStudentResultMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.CourseTreeVodStudentResultDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 学生视频完成情况 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ - @Repository -public interface CourseVodTressStudentResultMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/DepartmentDictMapper.java b/src/main/java/com/meishu/mapper/DepartmentDictMapper.java deleted file mode 100644 index b1e249a..0000000 --- a/src/main/java/com/meishu/mapper/DepartmentDictMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.AdministerDO; -import com.meishu.model.DepartmentDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 部门字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ - @Repository -public interface DepartmentDictMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/ExerciseCourseTreeMappingMapper.java b/src/main/java/com/meishu/mapper/ExerciseCourseTreeMappingMapper.java deleted file mode 100644 index e4c9eed..0000000 --- a/src/main/java/com/meishu/mapper/ExerciseCourseTreeMappingMapper.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.course.GetExercisesByTreeDTO; -import com.meishu.dto.exercise.QueryCourseTreeExerciseDTO; -import com.meishu.dto.student.GetStudyProgressDTO; -import com.meishu.model.CourseTreeDO; -import com.meishu.model.ExerciseCourseTreeMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.ExerciseDictDO; -import com.meishu.service.ExerciseCourseTreeMappingService; -import com.meishu.vo.exercise.QueryCourseTreeExerciseVO; -import com.meishu.vo.student.QueryChapterTestVO; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 课程知识树--题目字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-24 - */ - @Repository -public interface ExerciseCourseTreeMappingMapper extends BaseMapper { - - IPage queryCourseTreeExercise(IPage iPage,Long courseId,Long courseTreeId,String title,Integer difficulty,String exerciseType); - - /** - * 根据映射id去课程知识树id - */ - CourseTreeDO getParentTreeId(Long id); - - /** - * 通过知识点查询该课程下的所有题目 - */ - List getExercisesByTree(GetExercisesByTreeDTO getExercisesByTreeDTO); - - /** - * 查看某个同学 某个章节的做题记录 - */ - List queryChapterTest(Long studentId,Long chapterId); -} diff --git a/src/main/java/com/meishu/mapper/ExerciseDictMapper.java b/src/main/java/com/meishu/mapper/ExerciseDictMapper.java deleted file mode 100644 index 42c2ffa..0000000 --- a/src/main/java/com/meishu/mapper/ExerciseDictMapper.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.exercise.GetExerciseRequestDTO; -import com.meishu.model.ExerciseDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.SubjectTreeDO; -import com.meishu.vo.exercise.GetExerciseDetailResponseVO; -import com.meishu.vo.exercise.GetTreeExercisesVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 习题库 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Repository -public interface ExerciseDictMapper extends BaseMapper { - - IPage getTreeExercises(IPage iPage,Long userId,String subjectEn, Long treeId, String exerciseType, Integer difficulty, String title,String shareStatus,String checkStatus,List strings); - - List getTrees(Long id); - - /** - * 通过知识点和学校查看关联习题+用户收藏状态 - * @param getExerciseRequestVO - * @return - */ - List getRelativeExercises(GetExerciseRequestDTO getExerciseRequestVO); -} diff --git a/src/main/java/com/meishu/mapper/ExerciseDoneHistoryMapper.java b/src/main/java/com/meishu/mapper/ExerciseDoneHistoryMapper.java deleted file mode 100644 index 5a5dbe1..0000000 --- a/src/main/java/com/meishu/mapper/ExerciseDoneHistoryMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.dto.task.ClassDoneInfoDTO; -import com.meishu.dto.task.ExesDoneInfoPO; -import com.meishu.dto.task.PerStudentExesDTO; -import com.meishu.dto.task.PerStudentExesRequestVO; -import com.meishu.model.ExerciseDoneHistoryDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.task.ClassDoneInfoVO; -import com.meishu.vo.task.GetClassExeDoneInfoRequestVO; -import com.meishu.vo.task.GetClassExeDoneInfoResponseVO; -import com.meishu.vo.task.PerStuExeDoneResponseVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 学生做题记录表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ - @Repository -public interface ExerciseDoneHistoryMapper extends BaseMapper { - - /** - * 获取班级某个关联习题做题情况 - * @return - */ - List perStudentRelateExes(PerStudentExesDTO perStudentExesRequestVO); - - /** - * 获取关联/拓展题组做题情况 - */ - List classDoneInfo(ClassDoneInfoDTO classDoneInfoPO); - - /** - * 获取某题目组做题情况 - */ - List exesDoneInfo(ExesDoneInfoPO exesDoneInfoPO); - - /** - * 个人关联习题完成度明细 - * @param getClassExeDoneInfoVO - * @return - */ - List getRelateExeDoneInfo(GetClassExeDoneInfoRequestVO getClassExeDoneInfoVO); - - /** - * 个人拓展习题完成度明细 - */ - List getExpandingExeDoneInfo(GetClassExeDoneInfoRequestVO getClassExeDoneInfoRequestVO); - - - /** - * 获取班级某个拓展习题组做题情况 - */ - List perStudentExpandingExes(PerStudentExesRequestVO perStudentExesRequestVO); -} diff --git a/src/main/java/com/meishu/mapper/ExerciseExpandMappingMapper.java b/src/main/java/com/meishu/mapper/ExerciseExpandMappingMapper.java deleted file mode 100644 index 0638cd6..0000000 --- a/src/main/java/com/meishu/mapper/ExerciseExpandMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.ExerciseExpandMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 学生--拓展习题映射表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-16 - */ - @Repository -public interface ExerciseExpandMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/ExerciseRelatedMappingMapper.java b/src/main/java/com/meishu/mapper/ExerciseRelatedMappingMapper.java deleted file mode 100644 index 9713ce0..0000000 --- a/src/main/java/com/meishu/mapper/ExerciseRelatedMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.ExerciseRelatedMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 学生--拓展习题映射表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-28 - */ - @Repository -public interface ExerciseRelatedMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/ExerciseTreeMappingMapper.java b/src/main/java/com/meishu/mapper/ExerciseTreeMappingMapper.java deleted file mode 100644 index 7e24470..0000000 --- a/src/main/java/com/meishu/mapper/ExerciseTreeMappingMapper.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.toolkit.StringUtils; -import com.meishu.model.ExerciseDictDO; -import com.meishu.model.ExerciseTreeMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 题目知识树映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Repository -public interface ExerciseTreeMappingMapper extends BaseMapper { - - /** - * 查看挂在知识点上的视频数 - */ - Integer getTreeExerciseCount(Long userId, Long treeId, String shareStatus, String subject,String checkStatus); - - - /** - * 获取某学校某知识点的关联习题 - * @return 审核通过的视频 - */ - List getRelatedExercise(Integer treeId); -} diff --git a/src/main/java/com/meishu/mapper/ExerciseUserInfoMapper.java b/src/main/java/com/meishu/mapper/ExerciseUserInfoMapper.java deleted file mode 100644 index 235ab2c..0000000 --- a/src/main/java/com/meishu/mapper/ExerciseUserInfoMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.ExerciseUserInfoDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 题目收藏信息表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-17 - */ - @Repository -public interface ExerciseUserInfoMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/KnowledgeSubjectDictMapper.java b/src/main/java/com/meishu/mapper/KnowledgeSubjectDictMapper.java deleted file mode 100644 index b51dbfc..0000000 --- a/src/main/java/com/meishu/mapper/KnowledgeSubjectDictMapper.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.model.AdministerDO; -import com.meishu.model.KnowledgeSubjectDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 学科字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Repository -public interface KnowledgeSubjectDictMapper extends BaseMapper { - - - /** - * 查看某个科目下的老师 - */ - List getSubjectAdminister(Long subjectId,String userName); - - /** - * 查看某个老师下的所有科目 分页 模糊搜索 subjectType subjectName - */ - IPage getAdministerSubjects(IPage page, Long userId, String subjectType, String subjectName); - -} diff --git a/src/main/java/com/meishu/mapper/LaboratoryAttendanceMappingMapper.java b/src/main/java/com/meishu/mapper/LaboratoryAttendanceMappingMapper.java deleted file mode 100644 index 142f3bb..0000000 --- a/src/main/java/com/meishu/mapper/LaboratoryAttendanceMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.LaboratoryAttendanceMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 实验室场次预约考勤记录 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-15 - */ - @Repository -public interface LaboratoryAttendanceMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/LaboratoryDictMapper.java b/src/main/java/com/meishu/mapper/LaboratoryDictMapper.java deleted file mode 100644 index 5eb791b..0000000 --- a/src/main/java/com/meishu/mapper/LaboratoryDictMapper.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.model.LaboratoryDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.laboratorySession.LaboratoryDictPageVO; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -/** - *

- * 实验室 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-08-17 - */ - @Repository -public interface LaboratoryDictMapper extends BaseMapper { - - IPage getLaboratoryPage(Page page, String laboratoryName, String laboratoryType); - - LaboratoryDictDO getLaboratoryDicOne(String laboratoryType, @Param("startDate") String startDate); -} diff --git a/src/main/java/com/meishu/mapper/LaboratoryDictMappingMapper.java b/src/main/java/com/meishu/mapper/LaboratoryDictMappingMapper.java deleted file mode 100644 index 5ea4961..0000000 --- a/src/main/java/com/meishu/mapper/LaboratoryDictMappingMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.LaboratoryDictMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 实验室场次关联表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-08-30 - */ - @Repository -public interface LaboratoryDictMappingMapper extends BaseMapper { - - List getList(Long laboratoryDictId); -} diff --git a/src/main/java/com/meishu/mapper/LaboratorySessionMappingMapper.java b/src/main/java/com/meishu/mapper/LaboratorySessionMappingMapper.java deleted file mode 100644 index b0d2ed4..0000000 --- a/src/main/java/com/meishu/mapper/LaboratorySessionMappingMapper.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.LaboratorySessionMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.laboratorySession.LaboratorySessionMappingVO; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 实验室场次预约安排表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-08-17 - */ - @Repository -public interface LaboratorySessionMappingMapper extends BaseMapper { - - List getLaboratorySessionList(String startDate); - - LaboratorySessionMappingVO getOneById(Long id); - - List getLaboratorySessionDate(@Param("laboratoryType") String laboratoryType); - - List getList(@Param("studentId") Long studentId, String startDate, Long sessionsDictId); -} diff --git a/src/main/java/com/meishu/mapper/LaboratoryUserMappingMapper.java b/src/main/java/com/meishu/mapper/LaboratoryUserMappingMapper.java deleted file mode 100644 index 56f1a86..0000000 --- a/src/main/java/com/meishu/mapper/LaboratoryUserMappingMapper.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.model.LaboratoryUserMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.laboratoryUser.LaboratoryUserPageVO; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 实验室场次预约报名记录 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-08-17 - */ - @Repository -public interface LaboratoryUserMappingMapper extends BaseMapper { - - List getLaboratoryUserPage(Long laboratorySessionId, @Param("startDate") String startDate); - - List getLaboratoryUserList(Long laboratorySessionId, @Param("startDate") String startDate); - - LaboratoryUserMappingDO getLaboratoryUserMapping(Long userRoleId, String startDate, Long sessionsDictId); -} diff --git a/src/main/java/com/meishu/mapper/PermissionsDictMapper.java b/src/main/java/com/meishu/mapper/PermissionsDictMapper.java deleted file mode 100644 index b555720..0000000 --- a/src/main/java/com/meishu/mapper/PermissionsDictMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.PermissionsDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 权限表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ - @Repository -public interface PermissionsDictMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/RoleAdministerMappingMapper.java b/src/main/java/com/meishu/mapper/RoleAdministerMappingMapper.java deleted file mode 100644 index 03488ea..0000000 --- a/src/main/java/com/meishu/mapper/RoleAdministerMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.RoleAdministerMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ - @Repository -public interface RoleAdministerMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/RoleDictMapper.java b/src/main/java/com/meishu/mapper/RoleDictMapper.java deleted file mode 100644 index a914a2b..0000000 --- a/src/main/java/com/meishu/mapper/RoleDictMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.role.GetRoleTeachersDTO; -import com.meishu.model.AdministerDO; -import com.meishu.model.RoleDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.role.GetRoleTeachersVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 角色表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ - @Repository -public interface RoleDictMapper extends BaseMapper { - - IPage getRoleTeachers(IPage page,Long roleId,String userName); - -} diff --git a/src/main/java/com/meishu/mapper/RolePermissionMappingMapper.java b/src/main/java/com/meishu/mapper/RolePermissionMappingMapper.java deleted file mode 100644 index c51510d..0000000 --- a/src/main/java/com/meishu/mapper/RolePermissionMappingMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.PermissionsDictDO; -import com.meishu.model.RolePermissionMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 系统用户角色表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ - @Repository -public interface RolePermissionMappingMapper extends BaseMapper { - - /** - * 获取某个角色下的全部权限 - */ - List getRolePermission(Long roleId); - -} diff --git a/src/main/java/com/meishu/mapper/SessionsDictMapper.java b/src/main/java/com/meishu/mapper/SessionsDictMapper.java deleted file mode 100644 index 6b634d7..0000000 --- a/src/main/java/com/meishu/mapper/SessionsDictMapper.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SessionsDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 场次字典表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-08-17 - */ - @Repository -public interface SessionsDictMapper extends BaseMapper { - - List getListById(@Param("laboratoryDictId") Long laboratoryDictId); - - List getListSessionDictById(@Param("laboratoryDictId") Long laboratoryDictId, String startDate); -} diff --git a/src/main/java/com/meishu/mapper/SignInRecordMapper.java b/src/main/java/com/meishu/mapper/SignInRecordMapper.java deleted file mode 100644 index a61c5fa..0000000 --- a/src/main/java/com/meishu/mapper/SignInRecordMapper.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.model.SignInRecordDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.sign.ClassSignInVO; -import org.springframework.stereotype.Repository; - -import javax.xml.crypto.Data; -import java.util.Date; - -/** - *

- * 学生签到表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-28 - */ - @Repository -public interface SignInRecordMapper extends BaseMapper { - - IPage classSignIn(IPage page, Integer classId, Date startDate, Date endDate,String userName); - -} diff --git a/src/main/java/com/meishu/mapper/SmsCodeMapper.java b/src/main/java/com/meishu/mapper/SmsCodeMapper.java deleted file mode 100644 index cb0baed..0000000 --- a/src/main/java/com/meishu/mapper/SmsCodeMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SmsCodeDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 短信验证码 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ - @Repository -public interface SmsCodeMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/StudentMapper.java b/src/main/java/com/meishu/mapper/StudentMapper.java deleted file mode 100644 index c1bd826..0000000 --- a/src/main/java/com/meishu/mapper/StudentMapper.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.StudentDO; -import com.meishu.vo.student.ClassVO; -import com.meishu.vo.student.SubjectReportVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 白名单 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Repository -public interface StudentMapper extends BaseMapper { - - /** - * 小程序 --- 学习 我的课程/拓展课程 - */ - List getStudentClass(Long id); - - /** - * 通过父母手机号获取学生信息 - */ - StudentDO getStudentInfo(String telephone); - - /** - * 通过学生id查询该学生学过的科目、课程 - */ - List getSubjectReport(Long studentId); - - /** - * 将所有学生的状态置为0 - */ - void changeStudentStatus(); - -} diff --git a/src/main/java/com/meishu/mapper/SubjectDictMapper.java b/src/main/java/com/meishu/mapper/SubjectDictMapper.java deleted file mode 100644 index 34772e8..0000000 --- a/src/main/java/com/meishu/mapper/SubjectDictMapper.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 学校科目字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ - @Repository -public interface SubjectDictMapper extends BaseMapper { - - - List getClassSubjectName(String grade,String classes,String session); - -} diff --git a/src/main/java/com/meishu/mapper/SubjectDimensionDictMapper.java b/src/main/java/com/meishu/mapper/SubjectDimensionDictMapper.java deleted file mode 100644 index 3913ea3..0000000 --- a/src/main/java/com/meishu/mapper/SubjectDimensionDictMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectDimensionDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 测评表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ - @Repository -public interface SubjectDimensionDictMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/SubjectDimensionStarDictMapper.java b/src/main/java/com/meishu/mapper/SubjectDimensionStarDictMapper.java deleted file mode 100644 index 2f8e2c3..0000000 --- a/src/main/java/com/meishu/mapper/SubjectDimensionStarDictMapper.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectDimensionStarDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 维度星级字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Repository -public interface SubjectDimensionStarDictMapper extends BaseMapper { - - /** - * 通过维度星级 - * @param dimensionId - * @param star - * @return - */ - List getStar(Long dimensionId, Long star); - -} diff --git a/src/main/java/com/meishu/mapper/SubjectRuleMapper.java b/src/main/java/com/meishu/mapper/SubjectRuleMapper.java deleted file mode 100644 index 609b1a5..0000000 --- a/src/main/java/com/meishu/mapper/SubjectRuleMapper.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.model.SubjectRuleDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.rule.GetAllRulesVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 规则字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ - @Repository -public interface SubjectRuleMapper extends BaseMapper { - - IPage getAllRules(IPage iPage); - - List getRules(); - -} diff --git a/src/main/java/com/meishu/mapper/SubjectSemesterMapper.java b/src/main/java/com/meishu/mapper/SubjectSemesterMapper.java deleted file mode 100644 index 525d90f..0000000 --- a/src/main/java/com/meishu/mapper/SubjectSemesterMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.semester.GetStudentDetailDTO; -import com.meishu.dto.semester.GetStudentRecordDTO; -import com.meishu.model.SubjectSemesterDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.semester.GetSemesterScoreVO; -import com.meishu.vo.semester.GetStudentDetailVO; -import com.meishu.vo.semester.GetStudentRecordVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Repository -public interface SubjectSemesterMapper extends BaseMapper { - - IPage getSemesterScore(IPage page, String semester, String grade,String classes,String session, String subject, String userName); - - List exportScore(String semester,String grade,String classes,String session, String subject, String userName); - - IPage getStudentDetail(IPage page, Integer id, Integer userId); - - List getStudentRecord(GetStudentRecordDTO getStudentRecordDTO); - -} diff --git a/src/main/java/com/meishu/mapper/SubjectStarTreeMappingMapper.java b/src/main/java/com/meishu/mapper/SubjectStarTreeMappingMapper.java deleted file mode 100644 index 427b2ff..0000000 --- a/src/main/java/com/meishu/mapper/SubjectStarTreeMappingMapper.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectStarTreeMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.SubjectTreeDO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 测评-知识点关联表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Repository -public interface SubjectStarTreeMappingMapper extends BaseMapper { - - /** - * 通过星级获取知识点数组 - */ - List getSubjectTrees(Long id); - - -} diff --git a/src/main/java/com/meishu/mapper/SubjectStudentAnswerStarMapper.java b/src/main/java/com/meishu/mapper/SubjectStudentAnswerStarMapper.java deleted file mode 100644 index fcab92a..0000000 --- a/src/main/java/com/meishu/mapper/SubjectStudentAnswerStarMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectStudentAnswerStarDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 学生答卷星级表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ - @Repository -public interface SubjectStudentAnswerStarMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/SubjectTestDictMapper.java b/src/main/java/com/meishu/mapper/SubjectTestDictMapper.java deleted file mode 100644 index 38166cb..0000000 --- a/src/main/java/com/meishu/mapper/SubjectTestDictMapper.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.test.GetAllTestDTO; -import com.meishu.model.SubjectTestDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.test.GetAllTestVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 测评表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-20 - */ -@Repository -public interface SubjectTestDictMapper extends BaseMapper { - - IPage getAllTest(IPage page,Long ruleId,String testName); - - List getTest(Long ruleId, String testName); - - -} diff --git a/src/main/java/com/meishu/mapper/SubjectTestGradeExampleMappingMapper.java b/src/main/java/com/meishu/mapper/SubjectTestGradeExampleMappingMapper.java deleted file mode 100644 index 8468d72..0000000 --- a/src/main/java/com/meishu/mapper/SubjectTestGradeExampleMappingMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectTestGradeExampleMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 样卷映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ - @Repository -public interface SubjectTestGradeExampleMappingMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/SubjectTestGradeStarMappingMapper.java b/src/main/java/com/meishu/mapper/SubjectTestGradeStarMappingMapper.java deleted file mode 100644 index ec83eb2..0000000 --- a/src/main/java/com/meishu/mapper/SubjectTestGradeStarMappingMapper.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectRuleDO; -import com.meishu.model.SubjectTestGradeStarMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.SubjectTestPublishGradeDO; -import com.meishu.vo.grade.DimensionStarVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 档次星级映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@Repository -public interface SubjectTestGradeStarMappingMapper extends BaseMapper { - - - /** - * 星级 - */ - List getGradeStar(Long gradeId); - - /** - * 通过发布id找规则id - */ - SubjectRuleDO getRuleIdByPublishId(Long id); - -} diff --git a/src/main/java/com/meishu/mapper/SubjectTestPublishGradeMapper.java b/src/main/java/com/meishu/mapper/SubjectTestPublishGradeMapper.java deleted file mode 100644 index 7296642..0000000 --- a/src/main/java/com/meishu/mapper/SubjectTestPublishGradeMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectTestPublishGradeDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 档次表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ - @Repository -public interface SubjectTestPublishGradeMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/SubjectTestPublishHistoryMapper.java b/src/main/java/com/meishu/mapper/SubjectTestPublishHistoryMapper.java deleted file mode 100644 index 53019a6..0000000 --- a/src/main/java/com/meishu/mapper/SubjectTestPublishHistoryMapper.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.test.GetPublishHistoryDTO; -import com.meishu.model.StudentDO; -import com.meishu.model.SubjectStudentAnswerStarDO; -import com.meishu.model.SubjectTestPublishHistoryDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.model.SubjectTestStudentAnswerDO; -import com.meishu.vo.rule.GetOneExaminationDetailVO; -import com.meishu.vo.rule.GetStudentRulesVO; -import com.meishu.vo.rule.StudentStarVO; -import com.meishu.vo.test.CommentVO; -import com.meishu.vo.test.GetOnePublishVO; -import com.meishu.vo.test.GetPublishHistoryVO; -import com.meishu.vo.test.GetTestReportVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 测评发布记录表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@Repository -public interface SubjectTestPublishHistoryMapper extends BaseMapper { - - /** - * 获取学生的月考列表 - * - * @param - * @return - */ - List getStudentExamination(Long id,Long subjectId); - - /** - * 获取学生某个月考的卷面 - * - * @param subjectTestStudentAnswerDO - * @return - */ - GetOneExaminationDetailVO getOneExaminationDetail(SubjectTestStudentAnswerDO subjectTestStudentAnswerDO); - - - /** - * 获取某个学生的星级评测 - */ - List studentStar(SubjectTestStudentAnswerDO subjectTestStudentAnswerDO); - - /** - * 获取发布历史 - */ - IPage getPublishHistory(IPage page, Long ruleId, String publishName); - - /** - * 测评报告列表 - */ - IPage getTestReport(IPage iPage, Long ruleId, String publishName); - - /** - * 某个测评报告的详情 - */ - IPage getOnePublish(IPage iPage, Long id, String userName,String commentStatus); - - /** - * 查看评析里的维度名称,老师名字 - */ - List getCommentDetail(GetOnePublishVO getOnePublishVO); - - -} diff --git a/src/main/java/com/meishu/mapper/SubjectTestStudentAnswerMapper.java b/src/main/java/com/meishu/mapper/SubjectTestStudentAnswerMapper.java deleted file mode 100644 index 36bbda0..0000000 --- a/src/main/java/com/meishu/mapper/SubjectTestStudentAnswerMapper.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectTestStudentAnswerDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.student.StudentVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 学生月考答卷 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Repository -public interface SubjectTestStudentAnswerMapper extends BaseMapper { - - - List getPublishStudents(Long publishId); - -} diff --git a/src/main/java/com/meishu/mapper/SubjectTreeMapper.java b/src/main/java/com/meishu/mapper/SubjectTreeMapper.java deleted file mode 100644 index 7d39e13..0000000 --- a/src/main/java/com/meishu/mapper/SubjectTreeMapper.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.CourseDictDO; -import com.meishu.model.SubjectTreeDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Repository -public interface SubjectTreeMapper extends BaseMapper { - - void updateSubjectTree(SubjectTreeDO subjectTreeDO); - -} diff --git a/src/main/java/com/meishu/mapper/TaskCompletionStatusMapper.java b/src/main/java/com/meishu/mapper/TaskCompletionStatusMapper.java deleted file mode 100644 index 17b7ed1..0000000 --- a/src/main/java/com/meishu/mapper/TaskCompletionStatusMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.TaskCompletionStatusDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 作业任务完成状态 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-16 - */ - @Repository -public interface TaskCompletionStatusMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/TaskContentDoneInfoMapper.java b/src/main/java/com/meishu/mapper/TaskContentDoneInfoMapper.java deleted file mode 100644 index 0540a52..0000000 --- a/src/main/java/com/meishu/mapper/TaskContentDoneInfoMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.TaskContentDoneInfoDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-30 - */ - @Repository -public interface TaskContentDoneInfoMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/TaskContentMapper.java b/src/main/java/com/meishu/mapper/TaskContentMapper.java deleted file mode 100644 index 7b4df2f..0000000 --- a/src/main/java/com/meishu/mapper/TaskContentMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.TaskContentDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 作业内容表(取题目,视频,书面作业) Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-16 - */ - @Repository -public interface TaskContentMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/TaskDoneHistoryMapper.java b/src/main/java/com/meishu/mapper/TaskDoneHistoryMapper.java deleted file mode 100644 index 978a246..0000000 --- a/src/main/java/com/meishu/mapper/TaskDoneHistoryMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.TaskDoneHistoryDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-16 - */ - @Repository -public interface TaskDoneHistoryMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/UserRoleCopy1Mapper.java b/src/main/java/com/meishu/mapper/UserRoleCopy1Mapper.java deleted file mode 100644 index c438468..0000000 --- a/src/main/java/com/meishu/mapper/UserRoleCopy1Mapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.UserRoleCopy1DO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 学生表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-23 - */ - @Repository -public interface UserRoleCopy1Mapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/UserRoleMapper.java b/src/main/java/com/meishu/mapper/UserRoleMapper.java deleted file mode 100644 index e66349f..0000000 --- a/src/main/java/com/meishu/mapper/UserRoleMapper.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.userrole.QueryStudentsDTO; -import com.meishu.model.ClassesDictDO; -import com.meishu.model.UserRoleDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.userrole.QueryStudentsVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 学生表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-16 - */ -@Repository -public interface UserRoleMapper extends BaseMapper { - - /** - * 分页查询学生 - */ - IPage queryStudents(IPage iPage, String userName, String grade, String session, String userStatus); - - /** - * 不分页 - */ - List exportStudents(String userName, String grade, String session, String userStatus); - - /** - * 通过班级id查找这个班级里所有人的openId - */ - List findOpenIdByClassId(Integer id); -} diff --git a/src/main/java/com/meishu/mapper/UserSubjectMappingMapper.java b/src/main/java/com/meishu/mapper/UserSubjectMappingMapper.java deleted file mode 100644 index 412ccca..0000000 --- a/src/main/java/com/meishu/mapper/UserSubjectMappingMapper.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.AdministerDO; -import com.meishu.model.UserSubjectMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 老师-科目映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ - @Repository -public interface UserSubjectMappingMapper extends BaseMapper { - - /** - * 查询某个科目下的授课老师 - */ - List querySubjectTeachers(Integer subjectId); - - -} diff --git a/src/main/java/com/meishu/mapper/UserSubjectPermissionDictMapper.java b/src/main/java/com/meishu/mapper/UserSubjectPermissionDictMapper.java deleted file mode 100644 index cd2906f..0000000 --- a/src/main/java/com/meishu/mapper/UserSubjectPermissionDictMapper.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.SubjectDictDO; -import com.meishu.model.UserSubjectPermissionDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 平时成绩---老师班级权限 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-08-18 - */ - @Repository -public interface UserSubjectPermissionDictMapper extends BaseMapper { - - List getSubjects(Integer id); - -} diff --git a/src/main/java/com/meishu/mapper/UuidHistoryMapper.java b/src/main/java/com/meishu/mapper/UuidHistoryMapper.java deleted file mode 100644 index 0b92547..0000000 --- a/src/main/java/com/meishu/mapper/UuidHistoryMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.UuidHistoryDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-29 - */ - @Repository -public interface UuidHistoryMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/mapper/VodDictMapper.java b/src/main/java/com/meishu/mapper/VodDictMapper.java deleted file mode 100644 index 8190b97..0000000 --- a/src/main/java/com/meishu/mapper/VodDictMapper.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.student.SearchVodsDTO; -import com.meishu.dto.task.GetRecommendVodByTreeIdVO; -import com.meishu.model.SubjectTreeDO; -import com.meishu.model.VodDictDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.student.SearchVodsVO; -import com.meishu.vo.voddict.GetTreeVodsVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 视频字典表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Repository -public interface VodDictMapper extends BaseMapper { - - IPage getTreeVods(IPage iPage, Long treeId,String subjectEn, String vodName, String vodType,String shareStatus,Long userId,List longs,String checkStatus); - - /** - * 查找科目下某个视频的知识点 - * @param id - * @return - */ - List getTrees(Long id); - - /** - * 小程序搜索视频 - */ - List searchVods(SearchVodsDTO searchVodsDTO); - - /** - * 课程查找视频锁关联的知识点 - */ - List getVodTrees(Long vodId); - - /** - * 修改视频的审核状态 - */ - void updateStatus(Long id,String status); - - List getRecommendVodByTreeId(GetRecommendVodByTreeIdVO getRecommendVodByTreeIdVO); - - -} diff --git a/src/main/java/com/meishu/mapper/VodPlayHistoryMapper.java b/src/main/java/com/meishu/mapper/VodPlayHistoryMapper.java deleted file mode 100644 index 16f4f9e..0000000 --- a/src/main/java/com/meishu/mapper/VodPlayHistoryMapper.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.dto.task.GetUserVodPlayDTO; -import com.meishu.model.VodDictDO; -import com.meishu.model.VodPlayHistoryDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.PerStudentComplicationVO; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 视频播放历史记录表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ - @Repository -public interface VodPlayHistoryMapper extends BaseMapper { - - /** - * 获取某个学生某个视频看到的最大位点 - * @param studentId - * @param vodId - * @return - */ - int getMaxPlayRecord(Long studentId,Long vodId); - - - /** - * 获取学生完成某课程所有视频中的多少个视频 - * @param studentId - * @param vodIds - * @return - */ - List getStudyVod(@Param("studentId") Long studentId,@Param("vodIds") List vodIds); - - /** - * 获取学生某个课程学习的总时长 - */ - Integer totalLength(Long studentId,List vodIds); - - /** - * 获取学生最近一次看视频的时间 - */ - String getMaxPlayTime(Long studentId,Long vodId); - - /** - * 查看视频的播放量 - */ - Integer queryPlayCounts(Long id); - - List getCurrentUserVodPlayVO(GetUserVodPlayDTO getUserVodPlayRequestVO); -} diff --git a/src/main/java/com/meishu/mapper/VodSubjectTreeMappingMapper.java b/src/main/java/com/meishu/mapper/VodSubjectTreeMappingMapper.java deleted file mode 100644 index ca5cc2c..0000000 --- a/src/main/java/com/meishu/mapper/VodSubjectTreeMappingMapper.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.mapper; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.model.VodSubjectTreeMappingDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.meishu.vo.subject.GetAllNoAuthenVodsVO; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - *

- * 视频知识点映射表 Mapper 接口 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Repository -public interface VodSubjectTreeMappingMapper extends BaseMapper { - - - /** - * 获取已审核/未审核的视频列表 - */ - IPage getAllNoAuthenVods(IPage page, Long treeId, String status, String vodType); - - /** - * 查看挂在知识点上的视频数 - */ - Integer getTreeVodCount(Long userId,Long treeId,String shareStatus,String subject,String checkStatus); - -} diff --git a/src/main/java/com/meishu/mapper/WrittenHomeworkMapper.java b/src/main/java/com/meishu/mapper/WrittenHomeworkMapper.java deleted file mode 100644 index 1c13c89..0000000 --- a/src/main/java/com/meishu/mapper/WrittenHomeworkMapper.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.mapper; - -import com.meishu.model.WrittenHomeworkDO; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.springframework.stereotype.Repository; - -/** - *

- * 通知/附件作业表 Mapper 接口 - *

- * - * @author DengMin - * @since 2021-09-16 - */ - @Repository -public interface WrittenHomeworkMapper extends BaseMapper { - -} diff --git a/src/main/java/com/meishu/model/AccessTokenDO.java b/src/main/java/com/meishu/model/AccessTokenDO.java deleted file mode 100644 index 9d44bec..0000000 --- a/src/main/java/com/meishu/model/AccessTokenDO.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-05-10 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("access_token") -public class AccessTokenDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - private String accessToken; - - -} diff --git a/src/main/java/com/meishu/model/AdministerDO.java b/src/main/java/com/meishu/model/AdministerDO.java deleted file mode 100644 index 9d0f212..0000000 --- a/src/main/java/com/meishu/model/AdministerDO.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 中心管理账户表 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("administer") -public class AdministerDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 手机号 - */ - private String telephone; - - /** - * 密码 - */ - private String password; - - /** - * 成员名称 - */ - private String userName; - - /** - * 头像 - */ - private String img; - - /** - * 管理员/超级管理员 - */ - private String role; - - /** - * 启用状态 0:禁用 1:启用 - */ - private String status; - - /** - * 介绍 - */ - private String intro; - - /** - * 部门id 废弃 - */ - private Long departmentId; - - /** - * openId - */ - private String openId; - - -} diff --git a/src/main/java/com/meishu/model/AdministerDepartmentMappingDO.java b/src/main/java/com/meishu/model/AdministerDepartmentMappingDO.java deleted file mode 100644 index 0a45278..0000000 --- a/src/main/java/com/meishu/model/AdministerDepartmentMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 老师部门映射表 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("administer_department_mapping") -public class AdministerDepartmentMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 老师id - */ - private Long administerId; - - /** - * 部门id - */ - private Long departmentId; - - -} diff --git a/src/main/java/com/meishu/model/AdministerPermissionDO.java b/src/main/java/com/meishu/model/AdministerPermissionDO.java deleted file mode 100644 index 80fa20d..0000000 --- a/src/main/java/com/meishu/model/AdministerPermissionDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 系统用户角色表 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("administer_permission") -public class AdministerPermissionDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 用户账户ID - */ - private Long administerId; - - /** - * 角色ID - */ - private Long permissionId; - - -} diff --git a/src/main/java/com/meishu/model/AdministerSubjectMappingDO.java b/src/main/java/com/meishu/model/AdministerSubjectMappingDO.java deleted file mode 100644 index 47ee52f..0000000 --- a/src/main/java/com/meishu/model/AdministerSubjectMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 老师科目映射表 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("administer_subject_mapping") -public class AdministerSubjectMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 科目id - */ - private Long subjectId; - - /** - * 老师id - */ - private Long administerId; - - -} diff --git a/src/main/java/com/meishu/model/AnsweringQuestionDO.java b/src/main/java/com/meishu/model/AnsweringQuestionDO.java deleted file mode 100644 index 6f51acd..0000000 --- a/src/main/java/com/meishu/model/AnsweringQuestionDO.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 问题答疑表 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("answering_question") -public class AnsweringQuestionDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 科目id - */ - private Integer subjectId; - - /** - * 提问id - */ - private Integer askId; - - /** - * 问题 - */ - private String title; - - /** - * 答案 - */ - private String answer; - - -} diff --git a/src/main/java/com/meishu/model/CampusAdministerMappingDO.java b/src/main/java/com/meishu/model/CampusAdministerMappingDO.java deleted file mode 100644 index 5481f50..0000000 --- a/src/main/java/com/meishu/model/CampusAdministerMappingDO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("campus_administer_mapping") -public class CampusAdministerMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private Long administerId; - - private Long campusId; - - -} diff --git a/src/main/java/com/meishu/model/CampusDictDO.java b/src/main/java/com/meishu/model/CampusDictDO.java deleted file mode 100644 index 5a5cff7..0000000 --- a/src/main/java/com/meishu/model/CampusDictDO.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import com.meishu.vo.campus.CampusListVO; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - *

- * 校区字典表 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("campus_dict") -public class CampusDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 校区 - */ - private String campus; - - /** - * 父节点id - */ - private Long parentId; - - /** - * 负责人 - */ - private Long administerId; - - /** - * 子类 - */ - private List children; - - -} diff --git a/src/main/java/com/meishu/model/ClassSubjectTaskDO.java b/src/main/java/com/meishu/model/ClassSubjectTaskDO.java deleted file mode 100644 index df7a579..0000000 --- a/src/main/java/com/meishu/model/ClassSubjectTaskDO.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; - -import java.util.Date; -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-06-03 14:28 - */ -@Data -@TableName("class_subject_task") -public class ClassSubjectTaskDO { - - - @TableId(type = IdType.AUTO) - private Integer id; - - private Integer subjectId; - - private String treeId; - - private String treeName; - - private Date taskDate; - - private Integer teacherId; - - /** - * 作业类型 0:预习作业 1课后作业 - */ - private Integer taskType; - - private String subjectEn; - - private Integer classId; - - private String grade; - - private String classes; - - private String session; - - private String subjectType; - - private String className; - - private String semester; - - private Date createDate; - - private Date updateDate; - - private Date deleteDate; - - -} diff --git a/src/main/java/com/meishu/model/ClassesDictDO.java b/src/main/java/com/meishu/model/ClassesDictDO.java deleted file mode 100644 index ad2cd6f..0000000 --- a/src/main/java/com/meishu/model/ClassesDictDO.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.Date; - -/** - *

- * 学校班级字典表 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("classes_dict") -public class ClassesDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 学校 - */ - private String school; - - /** - * 年级 - */ - private String grade; - - /** - * 班级 - */ - private String classes; - - /** - * 级 - */ - private String session; - - /** - * 小学/初中/高中 - */ - private String subjectType; - - /** - * 班级名称 - */ - private String className; - - /** - * 学期 --弃用 - */ - private String semester; - - /** - * 1:在读/0:往届 - */ - private String status; - - /** - * 晋升时间 - */ - private Date upgradeDate; - - -} diff --git a/src/main/java/com/meishu/model/ClassesDictHistoryDO.java b/src/main/java/com/meishu/model/ClassesDictHistoryDO.java deleted file mode 100644 index 56d54b9..0000000 --- a/src/main/java/com/meishu/model/ClassesDictHistoryDO.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学校班级字典表 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("classes_dict_history") -public class ClassesDictHistoryDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * class_dict表的主键 - */ - private Integer classDictId; - - /** - * 学校 - */ - private String school; - - /** - * 年级 - */ - private String grade; - - /** - * 班级 - */ - private String classes; - - /** - * 级 - */ - private String session; - - /** - * 小学/初中/高中 - */ - private String subjectType; - - /** - * 班级名称 - */ - private String className; - - /** - * 学期 - */ - private String semester; - - /** - * 1:在读/0:往届 - */ - private String status; - - -} diff --git a/src/main/java/com/meishu/model/ClassesUserMappingDO.java b/src/main/java/com/meishu/model/ClassesUserMappingDO.java deleted file mode 100644 index 0cff2e5..0000000 --- a/src/main/java/com/meishu/model/ClassesUserMappingDO.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 班级--学生--映射表(包括以前的班级) - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("classes_user_mapping") -public class ClassesUserMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 班级id - */ - private Integer classesId; - - /** - * 学生id - */ - private Integer userId; - - /** - * 1 应届班级 0 以往班级 - */ - private Integer status; - - -} diff --git a/src/main/java/com/meishu/model/CourseAdministerMappingDO.java b/src/main/java/com/meishu/model/CourseAdministerMappingDO.java deleted file mode 100644 index c53b9d2..0000000 --- a/src/main/java/com/meishu/model/CourseAdministerMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 课程老师映射表 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("course_administer_mapping") -public class CourseAdministerMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 课程id - */ - private Long courseId; - - /** - * 老师id - */ - private Long administerId; - - -} diff --git a/src/main/java/com/meishu/model/CourseChapterDO.java b/src/main/java/com/meishu/model/CourseChapterDO.java deleted file mode 100644 index 8c80965..0000000 --- a/src/main/java/com/meishu/model/CourseChapterDO.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 科目章节字典表 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("course_chapter") -public class CourseChapterDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 科目id - */ - private Long courseId; - - /** - * 章节 - */ - private String chapter; - - /** - * 排序 - */ - private Integer orderNo; - - -} diff --git a/src/main/java/com/meishu/model/CourseDictDO.java b/src/main/java/com/meishu/model/CourseDictDO.java deleted file mode 100644 index 75328e1..0000000 --- a/src/main/java/com/meishu/model/CourseDictDO.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 课程字典表 - *

- * - * @author Tuyp - * @since 2021-05-12 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("course_dict") -public class CourseDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 科目id - */ - private Long subjectId; - - /** - * 课程名称 - */ - private String courseName; - - /** - * 必修课程 拓展课程 - */ - private String courseType; - - /** - * courseIntro - */ - private String courseIntro; - - /** - * 课程封面 - */ - private String coverPage; - - /** - * 主页色值 - */ - private String pageColor; - - -} diff --git a/src/main/java/com/meishu/model/CourseStudentStatusHistoryDO.java b/src/main/java/com/meishu/model/CourseStudentStatusHistoryDO.java deleted file mode 100644 index 7bc781a..0000000 --- a/src/main/java/com/meishu/model/CourseStudentStatusHistoryDO.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-05-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("course_student_status_history") -public class CourseStudentStatusHistoryDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 课程id - */ - private Long courseId; - - /** - * 学生id - */ - private Long studentId; - - /** - * 状态 - */ - private String status; - - /** - * 开始时间 - */ - private String startDate; - - /** - * 结束时间 - */ - private String endDate; - - /** - * 授权人 - */ - private Long administerId; - - - -} diff --git a/src/main/java/com/meishu/model/CourseTreeDO.java b/src/main/java/com/meishu/model/CourseTreeDO.java deleted file mode 100644 index 32126f6..0000000 --- a/src/main/java/com/meishu/model/CourseTreeDO.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-05-12 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("course_tree") -public class CourseTreeDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 知识树id,对应subject_tree的主键 - */ - private Long treeId; - - /** - * 课程id - */ - private Long courseId; - - /** - * 状态 0:禁用 1:启用 - */ - private String status; - - /** - * 父节点(tree_id的父节点) - */ - private Long parentId; - - /** - * 0:在学生端不展示 1:在学生端展示 - */ - private String isShow; - - /** - * 章节 - */ - private Integer chapterId; - - /** - * 知识点节点 - */ - private String treeNode; - - /** - * 知识点名称 - */ - private String treeName; - - /** - * 写程序使用,数据库不存值 - */ - private List children; - - /** - * 子节点个数 - */ - private Integer childNodeCounts; - - /** - * 课程顺序 - */ - private Integer treeOrder; - -} diff --git a/src/main/java/com/meishu/model/CourseTreeExerciseStudentResultDO.java b/src/main/java/com/meishu/model/CourseTreeExerciseStudentResultDO.java deleted file mode 100644 index b6d7375..0000000 --- a/src/main/java/com/meishu/model/CourseTreeExerciseStudentResultDO.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 课程--学生做题记录 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("course_tree_exercise_student_result") -public class CourseTreeExerciseStudentResultDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学生id - */ - private Long studentId; - - /** - * 课程id - */ - private Long courseId; - - /** - * 章节id - */ - private Long chapterId; - - /** - * 题目id - */ - private Long exerciseId; - - /** - * 答案 - */ - private String answer; - - /** - * 花费时间 - */ - private Integer length; - - /** - * 0:错误 1:正确 - */ - private String result; - -} diff --git a/src/main/java/com/meishu/model/CourseTreeVodStudentResultDO.java b/src/main/java/com/meishu/model/CourseTreeVodStudentResultDO.java deleted file mode 100644 index 3e36524..0000000 --- a/src/main/java/com/meishu/model/CourseTreeVodStudentResultDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生视频完成情况 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("course_tree_vod_student_result") -public class CourseTreeVodStudentResultDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学生id - */ - private Long studentId; - - /** - * 课程知识树id - */ - private Long courseTreeId; - - -} diff --git a/src/main/java/com/meishu/model/DepartmentDictDO.java b/src/main/java/com/meishu/model/DepartmentDictDO.java deleted file mode 100644 index 4458b6d..0000000 --- a/src/main/java/com/meishu/model/DepartmentDictDO.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - *

- * 部门字典表 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("department_dict") -public class DepartmentDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 部门名称 - */ - private String departmentName; - - /** - * 部门负责人id - */ - private Long departmentLeaderId; - - /** - * 父节点id - */ - private Long parentId; - - /** - * 子节点 字段在数据库里没有值 - */ - private List children; - -} diff --git a/src/main/java/com/meishu/model/ExerciseCourseTreeMappingDO.java b/src/main/java/com/meishu/model/ExerciseCourseTreeMappingDO.java deleted file mode 100644 index bcaa1f1..0000000 --- a/src/main/java/com/meishu/model/ExerciseCourseTreeMappingDO.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 课程知识树--题目字典表 - *

- * - * @author Tuyp - * @since 2021-05-24 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("exercise_course_tree_mapping") -public class ExerciseCourseTreeMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 题目id - */ - private Long exerciseId; - - /** - * 课程id - */ - private Long courseId; - - /** - * 课程知识点course_treed的主键id - */ - private Long courseTreeId; - - /** - * 状态 - */ - private String status; - - - - -} diff --git a/src/main/java/com/meishu/model/ExerciseDictDO.java b/src/main/java/com/meishu/model/ExerciseDictDO.java deleted file mode 100644 index 69637c9..0000000 --- a/src/main/java/com/meishu/model/ExerciseDictDO.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; -import org.springframework.beans.factory.annotation.Autowired; - -/** - *

- * 习题库 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("exercise_dict") -public class ExerciseDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 科目id - */ - @TableField("subject") - private String subjectId; - - /** - * 题目类型 选择/填空 - */ - private String exerciseType; - - /** - * 提供者 - */ - @TableField("user_id") - private Long administerId; - - /** - * 难度 - */ - private Integer difficulty; - - /** - * 题目 - */ - private String title; - - /** - * 选项 - */ - private String items; - - /** - * 正确答案 - */ - private String rightAnswer; - - /** - * 解析 - */ - private String detail; - - /** - * 审核状态 - */ - private String status; - - /** - * 共享状态 - */ - private String shareStatus; - - /** - * 审核状态 - */ - private String checkStatus; - - /** - * 建议时长 - */ - private Integer adviceLength; - - /** - * 不通过原因 - */ - private String reason; - - - -} diff --git a/src/main/java/com/meishu/model/ExerciseDoneHistoryDO.java b/src/main/java/com/meishu/model/ExerciseDoneHistoryDO.java deleted file mode 100644 index c3e6fc3..0000000 --- a/src/main/java/com/meishu/model/ExerciseDoneHistoryDO.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.Date; - -/** - *

- * 学生做题记录表 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("exercise_done_history") -public class ExerciseDoneHistoryDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - - /** - * 习题id - */ - private Long exerciseId; - - /** - * 做题答案 /已读 - */ - private String answer; - - /** - * 结果 0:错误 1:正确 - */ - private Integer result; - - /** - * 做题时长 - */ - private Integer length; - - private Integer userId; - - //班级类型 0:行政班 1:进阶班 - private Integer classType; - - // 0:关联习题 1:拓展习题 - private Integer exerciseType; - - private Integer taskSubjectId; - - //作业内容id - private Integer contentId; - - private Integer completeId; - - private String doneType; - - -} diff --git a/src/main/java/com/meishu/model/ExerciseExpandMappingDO.java b/src/main/java/com/meishu/model/ExerciseExpandMappingDO.java deleted file mode 100644 index 7b668ce..0000000 --- a/src/main/java/com/meishu/model/ExerciseExpandMappingDO.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生--拓展习题映射表 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("exercise_expand_mapping") -public class ExerciseExpandMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 任务id - */ - private Integer taskId; - - /** - * 拓展习题ids - */ - private String exerciseIds; - - /** - * 学生ids - */ - private String studentIds; - - /** - * 拓展习题名称 - */ - private String exerciseName; - - -} diff --git a/src/main/java/com/meishu/model/ExerciseRelatedMappingDO.java b/src/main/java/com/meishu/model/ExerciseRelatedMappingDO.java deleted file mode 100644 index a7687cc..0000000 --- a/src/main/java/com/meishu/model/ExerciseRelatedMappingDO.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生--拓展习题映射表 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("exercise_related_mapping") -public class ExerciseRelatedMappingDO extends BaseModel { - - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 任务id - */ - private Integer taskId; - - /** - * 知识点id - */ - private Integer treeId; - - /** - * 拓展习题ids - */ - private String exerciseIds; - - /** - * 学生ids - */ - private String studentIds; - - /** - * 拓展习题名称 - */ - private String exerciseName; - - -} diff --git a/src/main/java/com/meishu/model/ExerciseTreeMappingDO.java b/src/main/java/com/meishu/model/ExerciseTreeMappingDO.java deleted file mode 100644 index e53ad36..0000000 --- a/src/main/java/com/meishu/model/ExerciseTreeMappingDO.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 科目下题目知识树映射表 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("exercise_related") -public class ExerciseTreeMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private Long exerciseId; - - private Long treeId; - - //private Long subjectId; - - private String status; - -} diff --git a/src/main/java/com/meishu/model/ExerciseUserInfoDO.java b/src/main/java/com/meishu/model/ExerciseUserInfoDO.java deleted file mode 100644 index ab2f21d..0000000 --- a/src/main/java/com/meishu/model/ExerciseUserInfoDO.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 题目收藏信息表 - *

- * - * @author DengMin - * @since 2021-09-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("exercise_user_info") -public class ExerciseUserInfoDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 练习题id - */ - private Integer exerciseId; - - /** - * 学员id - */ - private Integer userId; - - /** - * 收藏状态 - */ - private Integer collectionStatus; - - -} diff --git a/src/main/java/com/meishu/model/KnowledgeSubjectDictDO.java b/src/main/java/com/meishu/model/KnowledgeSubjectDictDO.java deleted file mode 100644 index e72a940..0000000 --- a/src/main/java/com/meishu/model/KnowledgeSubjectDictDO.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学科字典表 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("knowledge_subject_dict") -public class KnowledgeSubjectDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学科名称 - */ - private String subjectName; - - - /** - * 科目缩写 - */ - private String subjectEn; - - /** - * 封面 - */ - private String coverPage; - - /** - * 学科类型 - */ - private String subjectType; - -} diff --git a/src/main/java/com/meishu/model/LaboratoryAttendanceMappingDO.java b/src/main/java/com/meishu/model/LaboratoryAttendanceMappingDO.java deleted file mode 100644 index 38dcdce..0000000 --- a/src/main/java/com/meishu/model/LaboratoryAttendanceMappingDO.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import java.time.LocalDateTime; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 实验室场次预约考勤记录 - *

- * - * @author DengMin - * @since 2021-09-15 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("laboratory_attendance_mapping") -public class LaboratoryAttendanceMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学生ID - */ - private Long userRoleId; - - /** - * 实验室场次预约安排表ID - */ - private Long laboratorySessionId; - - /** - * 考勤时间 - */ - private LocalDateTime attendanceTime; - - /** - * 考勤方式 - */ - private String channel; - - -} diff --git a/src/main/java/com/meishu/model/LaboratoryDictDO.java b/src/main/java/com/meishu/model/LaboratoryDictDO.java deleted file mode 100644 index f28922a..0000000 --- a/src/main/java/com/meishu/model/LaboratoryDictDO.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 实验室 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("laboratory_dict") -public class LaboratoryDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 实验室名称 - */ - private String laboratoryName; - - /** - * 实验室类型 - */ - private String laboratoryType; - - /** - * 人数上限 - */ - private Integer maxNum; - - -} diff --git a/src/main/java/com/meishu/model/LaboratoryDictMappingDO.java b/src/main/java/com/meishu/model/LaboratoryDictMappingDO.java deleted file mode 100644 index 825e73f..0000000 --- a/src/main/java/com/meishu/model/LaboratoryDictMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 实验室场次关联表 - *

- * - * @author DengMin - * @since 2021-08-30 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("laboratory_dict_mapping") -public class LaboratoryDictMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 实验室ID - */ - private Long laboratoryDictId; - - /** - * 场次ID - */ - private Long sessionsDictId; - - -} diff --git a/src/main/java/com/meishu/model/LaboratorySessionMappingDO.java b/src/main/java/com/meishu/model/LaboratorySessionMappingDO.java deleted file mode 100644 index a375033..0000000 --- a/src/main/java/com/meishu/model/LaboratorySessionMappingDO.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 实验室场次预约安排表 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("laboratory_session_mapping") -public class LaboratorySessionMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 场次ID - */ - private Long sessionsDictId; - - /** - * 实验室ID - */ - private Long laboratoryDictId; - - /** - * 开始时间 - */ - private String startDate; - - /** - * 报名开始时间 - */ - private String registerStartDate; - - /** - * 报名结束时间 - */ - private String registerEndDate; - - /** - * 年级 - */ - private String grade; - - -} diff --git a/src/main/java/com/meishu/model/LaboratoryUserMappingDO.java b/src/main/java/com/meishu/model/LaboratoryUserMappingDO.java deleted file mode 100644 index bc59c52..0000000 --- a/src/main/java/com/meishu/model/LaboratoryUserMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 实验室场次预约报名记录 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("laboratory_user_mapping") -public class LaboratoryUserMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 实验室场次预约安排表ID - */ - private Long laboratorySessionId; - - /** - * 学生ID - */ - private Long userRoleId; - - -} diff --git a/src/main/java/com/meishu/model/PermissionsDictDO.java b/src/main/java/com/meishu/model/PermissionsDictDO.java deleted file mode 100644 index 254132d..0000000 --- a/src/main/java/com/meishu/model/PermissionsDictDO.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - *

- * 权限表 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("permissions_dict") -public class PermissionsDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 父级ID - */ - private Long parentId; - - /** - * 名称 - */ - private String name; - - /** - * 子节点 代码使用 无实际意义 - */ - private List children; - -} diff --git a/src/main/java/com/meishu/model/PtStudentScoreDO.java b/src/main/java/com/meishu/model/PtStudentScoreDO.java deleted file mode 100644 index 4ab62b8..0000000 --- a/src/main/java/com/meishu/model/PtStudentScoreDO.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author DengMin - * @since 2021-09-02 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("pt_student_score") -public class PtStudentScoreDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 学生id - */ - private Integer studentId; - - /** - * 科目id - */ - private Integer subjectId; - - /** - * 学科+学期id - */ - private Integer semesterId; - - /** - * 分数 - */ - private Double score; - - /** - * 和record表对应的分数 - */ - private Double scoreRecord; - - -} diff --git a/src/main/java/com/meishu/model/RoleAdministerMappingDO.java b/src/main/java/com/meishu/model/RoleAdministerMappingDO.java deleted file mode 100644 index 16a87fe..0000000 --- a/src/main/java/com/meishu/model/RoleAdministerMappingDO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("role_administer_mapping") -public class RoleAdministerMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private Long administerId; - - private Long roleId; - - -} diff --git a/src/main/java/com/meishu/model/RoleDictDO.java b/src/main/java/com/meishu/model/RoleDictDO.java deleted file mode 100644 index 2010693..0000000 --- a/src/main/java/com/meishu/model/RoleDictDO.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 角色表 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("role_dict") -public class RoleDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 角色 - */ - private String role; - - -} diff --git a/src/main/java/com/meishu/model/RolePermissionMappingDO.java b/src/main/java/com/meishu/model/RolePermissionMappingDO.java deleted file mode 100644 index 1303c8b..0000000 --- a/src/main/java/com/meishu/model/RolePermissionMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 系统用户角色表 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("role_permission_mapping") -public class RolePermissionMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 权限ID - */ - private Long roleId; - - /** - * 角色ID - */ - private Long permissionId; - - -} diff --git a/src/main/java/com/meishu/model/SessionsDictDO.java b/src/main/java/com/meishu/model/SessionsDictDO.java deleted file mode 100644 index af34282..0000000 --- a/src/main/java/com/meishu/model/SessionsDictDO.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 场次字典表 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("sessions_dict") -public class SessionsDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 场次 - */ - private String timeSlot; - - -} diff --git a/src/main/java/com/meishu/model/SignInRecordDO.java b/src/main/java/com/meishu/model/SignInRecordDO.java deleted file mode 100644 index 65f6edf..0000000 --- a/src/main/java/com/meishu/model/SignInRecordDO.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import java.time.LocalDateTime; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生签到表 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("sign_in_record") -public class SignInRecordDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学生id - */ - private Integer studentId; - - /** - * 班级id - */ - private Integer classId; - - /** - * 签到时间 - */ - private LocalDateTime signInDate; - - -} diff --git a/src/main/java/com/meishu/model/SmsCodeDO.java b/src/main/java/com/meishu/model/SmsCodeDO.java deleted file mode 100644 index f77d95a..0000000 --- a/src/main/java/com/meishu/model/SmsCodeDO.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 短信验证码 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("sms_verify_code") -public class SmsCodeDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 手机号 - */ - private String telephone; - - /** - * 验证码 - */ - @TableField("verify_code") - private String code; - - -} diff --git a/src/main/java/com/meishu/model/StudentCourseMappingDO.java b/src/main/java/com/meishu/model/StudentCourseMappingDO.java deleted file mode 100644 index d7ab67c..0000000 --- a/src/main/java/com/meishu/model/StudentCourseMappingDO.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-05-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("student_course_mapping") -public class StudentCourseMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学生id - */ - private Long studentId; - - /** - * 课程id - */ - private Long courseId; - - /** - * 起始时间 - */ - private String startDate; - - /** - * 截止时间 - */ - private String endDate; - - /** - * 0:已暂停 1:已启用 - */ - private String status; - - /** - * 授权人 - */ - private Long administerId; - - -} diff --git a/src/main/java/com/meishu/model/StudentDO.java b/src/main/java/com/meishu/model/StudentDO.java deleted file mode 100644 index 52720aa..0000000 --- a/src/main/java/com/meishu/model/StudentDO.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 白名单 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("student") -public class StudentDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private String wechatImg; - - /** - * openid - */ - private String openid; - - /** - * 手机号 - */ - private String telephone; - - /** - * 姓名 - */ - private String username; - - /** - * 0:禁用 1:弃用 - */ - private String status; - - /** - * 家长手机1 - */ - private String parentTelephone1; - - /** - * 家长电话2 - */ - private String parentTelephone2; - - /** - * 校区id - */ - private Long campusId; - - -} diff --git a/src/main/java/com/meishu/model/SubjectDictDO.java b/src/main/java/com/meishu/model/SubjectDictDO.java deleted file mode 100644 index c7893df..0000000 --- a/src/main/java/com/meishu/model/SubjectDictDO.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学校科目字典表 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_dict") -public class SubjectDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 学校 - */ - private String school; - - /** - * 年级(可为空) - */ - private String grade; - - /** - * 班级 - */ - private String classes; - - /** - * 班级名称 - */ - private String className; - - private String subject; - - /** - * 科目en - */ - private String subjectEn; - - /** - * 类型: 小学/初中/高中 - */ - private String subjectType; - - /** - * 届 - */ - private String session; - - /** - * 学期--弃用 - */ - private String semester; - - /** - * 状态:在读/结课 - */ - private String status; - - /** - * 班级-科目-封面 - */ - private String coverPageUrl; - - /** - * 班级-科目-首页 - */ - private String frontPageUrl; - - -} diff --git a/src/main/java/com/meishu/model/SubjectDimensionDictDO.java b/src/main/java/com/meishu/model/SubjectDimensionDictDO.java deleted file mode 100644 index d103adb..0000000 --- a/src/main/java/com/meishu/model/SubjectDimensionDictDO.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 测评表 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_dimension_dict") -public class SubjectDimensionDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 规则id - */ - private Long ruleId; - - /** - * 维度 - */ - private String dimension; - - /** - * 维度顺序 - */ - private Long dimensionOrder; - - /** - * 0:禁用 1:启用 - */ - private String status; - -} diff --git a/src/main/java/com/meishu/model/SubjectDimensionStarDictDO.java b/src/main/java/com/meishu/model/SubjectDimensionStarDictDO.java deleted file mode 100644 index 60043a8..0000000 --- a/src/main/java/com/meishu/model/SubjectDimensionStarDictDO.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 维度星级字典表 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_dimension_star_dict") -public class SubjectDimensionStarDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 维度id - */ - private Long dimensionId; - - /** - * 星级 - */ - private Long star; - - /** - * 评析 - */ - private String description; - - -} diff --git a/src/main/java/com/meishu/model/SubjectRuleDO.java b/src/main/java/com/meishu/model/SubjectRuleDO.java deleted file mode 100644 index 974def8..0000000 --- a/src/main/java/com/meishu/model/SubjectRuleDO.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 规则字典表 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_rule") -public class SubjectRuleDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 科目id - */ - private Long subjectId; - - /** - * 规则名称 - */ - private String ruleName; - - /** - * 0:禁用 1:启用 - */ - private String status; - - -} diff --git a/src/main/java/com/meishu/model/SubjectSemesterDO.java b/src/main/java/com/meishu/model/SubjectSemesterDO.java deleted file mode 100644 index 132c966..0000000 --- a/src/main/java/com/meishu/model/SubjectSemesterDO.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_semester") -public class SubjectSemesterDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 科目id - */ - private Integer subjectId; - - /** - * 学期 上/下 - */ - private String semester; - - /** - * 1 :在读 - */ - private Integer status; - - -} diff --git a/src/main/java/com/meishu/model/SubjectStarTreeMappingDO.java b/src/main/java/com/meishu/model/SubjectStarTreeMappingDO.java deleted file mode 100644 index fdabdf3..0000000 --- a/src/main/java/com/meishu/model/SubjectStarTreeMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 测评-知识点关联表 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_star_tree_mapping") -public class SubjectStarTreeMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 测评星级id - */ - private Long subjectStarId; - - /** - * 知识点id - */ - private Long subjectTreeId; - - -} diff --git a/src/main/java/com/meishu/model/SubjectStudentAnswerStarDO.java b/src/main/java/com/meishu/model/SubjectStudentAnswerStarDO.java deleted file mode 100644 index 02de581..0000000 --- a/src/main/java/com/meishu/model/SubjectStudentAnswerStarDO.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生答卷星级表 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_student_answer_star") -public class SubjectStudentAnswerStarDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学生id - */ - private Long studentId; - - /** - * 星级id - */ - private Long starId; - - /** - * 布置id - */ - private Long publishId; - - /** - * 评卷人id - */ - private Long administerId; - - /** - * 维度id - */ - private Long dimensionId; - -} diff --git a/src/main/java/com/meishu/model/SubjectTestDictDO.java b/src/main/java/com/meishu/model/SubjectTestDictDO.java deleted file mode 100644 index 33d6cf1..0000000 --- a/src/main/java/com/meishu/model/SubjectTestDictDO.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 测评表 - *

- * - * @author Tuyp - * @since 2021-05-20 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_test_dict") -public class SubjectTestDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private Long ruleId; - - /** - * 考试名称 - */ - private String testName; - - - /** - * 卷面 - */ - private String examination; - - /** - * 状态 - */ - private String status; - -} diff --git a/src/main/java/com/meishu/model/SubjectTestGradeExampleMappingDO.java b/src/main/java/com/meishu/model/SubjectTestGradeExampleMappingDO.java deleted file mode 100644 index 02cba95..0000000 --- a/src/main/java/com/meishu/model/SubjectTestGradeExampleMappingDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 样卷映射表 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_test_grade_example_mapping") -public class SubjectTestGradeExampleMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 年级id - */ - private Long gradeId; - - /** - * 样卷 - */ - private String exampleView; - - -} diff --git a/src/main/java/com/meishu/model/SubjectTestGradeStarMappingDO.java b/src/main/java/com/meishu/model/SubjectTestGradeStarMappingDO.java deleted file mode 100644 index 6a91a6b..0000000 --- a/src/main/java/com/meishu/model/SubjectTestGradeStarMappingDO.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 档次星级映射表 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_test_grade_star_mapping") -public class SubjectTestGradeStarMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private Long gradeId; - - private Long starId; - - -} diff --git a/src/main/java/com/meishu/model/SubjectTestPublishGradeDO.java b/src/main/java/com/meishu/model/SubjectTestPublishGradeDO.java deleted file mode 100644 index 75472f0..0000000 --- a/src/main/java/com/meishu/model/SubjectTestPublishGradeDO.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 档次表 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_test_publish_grade") -public class SubjectTestPublishGradeDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private Long publishId; - - /** - * 档次名称 - */ - private String gradeName; - - /** - * 综合评价 - */ - private String content; - - -} diff --git a/src/main/java/com/meishu/model/SubjectTestPublishHistoryDO.java b/src/main/java/com/meishu/model/SubjectTestPublishHistoryDO.java deleted file mode 100644 index e7bb696..0000000 --- a/src/main/java/com/meishu/model/SubjectTestPublishHistoryDO.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 测评发布记录表 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_test_publish_history") -public class SubjectTestPublishHistoryDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 测评id - */ - private Long testId; - - /** - * 测评时间 - */ - private String testTime; - - /** - * 发布名称 - */ - private String publishName; - - /** - * 概要 - */ - private String outline; - - /** - * 测评分类 - */ - private String testType; - - /** - * 封面 - */ - private String coverPage; - - -} diff --git a/src/main/java/com/meishu/model/SubjectTestStudentAnswerDO.java b/src/main/java/com/meishu/model/SubjectTestStudentAnswerDO.java deleted file mode 100644 index 88cfe3e..0000000 --- a/src/main/java/com/meishu/model/SubjectTestStudentAnswerDO.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生月考答卷 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("subject_test_student_answer") -public class SubjectTestStudentAnswerDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 学生id - */ - private Long studentId; - - /** - * 发布id - */ - private Long publishId; - - /** - * 答卷 - */ - private String answer; - - /** - * 提交状态 0:未提交 1:已提交 - */ - private String commitStatus; - - /** - * 评析状态 - */ - private String commentStatus; - -} diff --git a/src/main/java/com/meishu/model/SubjectTreeDO.java b/src/main/java/com/meishu/model/SubjectTreeDO.java deleted file mode 100644 index 9cecf9d..0000000 --- a/src/main/java/com/meishu/model/SubjectTreeDO.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.util.List; - -/** - *

- * - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("knowledge_tree") -public class SubjectTreeDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private String school; - - private Long subjectId; - - private String subjectType; - - private String subjectEn; - - private String subject; - - private String label; - - @TableField("chapter") - private String treeNode; - - @TableField("node_name") - private String treeName; - - private String contentIntroduction; - - /** - * 父节点 - */ - private Long parentId; - - /** - * 写程序使用,数据库不存值 - */ - private List children; - - /** - * 子节点个数 - */ - private Integer childNodeCounts; - - - @TableField("chapter_order") - private Integer treeOrder; - - -} diff --git a/src/main/java/com/meishu/model/TaskCompletionStatusDO.java b/src/main/java/com/meishu/model/TaskCompletionStatusDO.java deleted file mode 100644 index 6bfca31..0000000 --- a/src/main/java/com/meishu/model/TaskCompletionStatusDO.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 作业任务完成状态 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("task_completion_status") -public class TaskCompletionStatusDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 用户id - */ - private Integer userId; - - /** - * 作业类型 0:关联习题 1:拓展习题 - */ - private Integer exeType; - - /** - * 任务id - */ - private Integer subjectTaskId; - - /** - * 知识点id/拓展习题id - */ - private Integer treeId; - - /** - * 完成状态 - */ - private String status; - - -} diff --git a/src/main/java/com/meishu/model/TaskContentDO.java b/src/main/java/com/meishu/model/TaskContentDO.java deleted file mode 100644 index dc7596f..0000000 --- a/src/main/java/com/meishu/model/TaskContentDO.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 作业内容表(取题目,视频,书面作业) - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("task_content") -public class TaskContentDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 任务id - */ - private Integer taskId; - - /** - * 作业类型 0:短视频 1:关联习题 2:拓展习题 3:书面作业 - */ - private Integer contentType; - - /** - * 内容id/知识点id - */ - private Integer contentId; - - -} diff --git a/src/main/java/com/meishu/model/TaskContentDoneInfoDO.java b/src/main/java/com/meishu/model/TaskContentDoneInfoDO.java deleted file mode 100644 index b332b37..0000000 --- a/src/main/java/com/meishu/model/TaskContentDoneInfoDO.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author DengMin - * @since 2021-09-30 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("task_content_done_info") -public class TaskContentDoneInfoDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 任务id - */ - private Integer taskId; - - /** - * 任务类型 - */ - private Integer contentType; - - /** - * 知识点id - */ - private Integer contentId; - - /** - * 用户ID - */ - private Integer userId; - - -} diff --git a/src/main/java/com/meishu/model/TaskDoneHistoryDO.java b/src/main/java/com/meishu/model/TaskDoneHistoryDO.java deleted file mode 100644 index b7b4655..0000000 --- a/src/main/java/com/meishu/model/TaskDoneHistoryDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("task_done_history") -public class TaskDoneHistoryDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 任务id - */ - private Integer taskId; - - /** - * 用户id - */ - private Integer userId; - - -} diff --git a/src/main/java/com/meishu/model/UserRoleCopy1DO.java b/src/main/java/com/meishu/model/UserRoleCopy1DO.java deleted file mode 100644 index 66894a3..0000000 --- a/src/main/java/com/meishu/model/UserRoleCopy1DO.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生表 - *

- * - * @author DengMin - * @since 2021-09-23 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("user_role_copy1") -public class UserRoleCopy1DO extends BaseModel { - - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 用户名 - */ - private String userName; - - /** - * 性别 - */ - private String gender; - - /** - * 届 - */ - private String session; - - /** - * 学号 - */ - private String studyCode; - - -} diff --git a/src/main/java/com/meishu/model/UserRoleDO.java b/src/main/java/com/meishu/model/UserRoleDO.java deleted file mode 100644 index eb0599e..0000000 --- a/src/main/java/com/meishu/model/UserRoleDO.java +++ /dev/null @@ -1,112 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import java.time.LocalDateTime; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 学生表 - *

- * - * @author Tuyp - * @since 2021-08-16 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("user_role") -public class UserRoleDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 用户id - */ - private Integer userId; - - /** - * 用户名 - */ - private String userName; - - /** - * 性别 - */ - private String gender; - - /** - * 生日 - */ - private LocalDateTime birthday; - - /** - * 邮箱 - */ - private String email; - - /** - * 图片 - */ - private String imgUrl; - - /** - * 账户状态 0禁用 1 启用 - */ - private String userStatus; - - /** - * 注册方式 - */ - private String registerMethod; - - /** - * 账户类型 0 学生/1:老师/2家长 - */ - private String roleType; - - /** - * 届 - */ - private String session; - - /** - * classes_id 主键 - */ - private Integer classesId; - - /** - * 手机号 - */ - private String phone; - - /** - * 密码 - */ - private String password; - - /** - * 身份证号 - */ - private String idCard; - - /** - * 微信openid - */ - private String openId; - - /** - * 学籍号 - */ - private String studyCode; - -} diff --git a/src/main/java/com/meishu/model/UserSubjectMappingDO.java b/src/main/java/com/meishu/model/UserSubjectMappingDO.java deleted file mode 100644 index d37b447..0000000 --- a/src/main/java/com/meishu/model/UserSubjectMappingDO.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 老师-科目映射表 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("user_subject_mapping") -public class UserSubjectMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 用户(老师) user_role id - */ - private Integer userId; - - /** - * 班级类型 0:行政班 1:进阶班 - */ - private Integer classType; - - /** - * 行政班:关联科目id - */ - private Integer subjectId; - - /** - * 进阶班:频道名称 - */ - private String subjectName; - - -} diff --git a/src/main/java/com/meishu/model/UserSubjectPermissionDictDO.java b/src/main/java/com/meishu/model/UserSubjectPermissionDictDO.java deleted file mode 100644 index 7d89fd5..0000000 --- a/src/main/java/com/meishu/model/UserSubjectPermissionDictDO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 平时成绩---老师班级权限 - *

- * - * @author Tuyp - * @since 2021-08-18 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("user_subject_permission_dict") -public class UserSubjectPermissionDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 老师id - */ - private Integer userId; - - /** - * 科目id - */ - private Integer subjectId; - - -} diff --git a/src/main/java/com/meishu/model/UuidHistoryDO.java b/src/main/java/com/meishu/model/UuidHistoryDO.java deleted file mode 100644 index 23d652b..0000000 --- a/src/main/java/com/meishu/model/UuidHistoryDO.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * - *

- * - * @author DengMin - * @since 2021-09-29 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("uuid_history") -public class UuidHistoryDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - private String uuid; - - -} diff --git a/src/main/java/com/meishu/model/VodDictDO.java b/src/main/java/com/meishu/model/VodDictDO.java deleted file mode 100644 index d48b57f..0000000 --- a/src/main/java/com/meishu/model/VodDictDO.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 视频字典表 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("vod_dict") -public class VodDictDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 科目id - */ - @TableField("subject") - private String subjectId; - - /** - * 视频名称 - */ - private String vodName; - - /** - * 视频地址 - */ - private String vodUrl; - - /** - * 课型 - */ - private String vodType; - - /** - * 视频介绍 - */ - private String vodIntro; - - /** - * 视频时长 - */ - private Integer vodLength; - - /** - * 视频在腾讯云上的code - */ - private String vodCode; - - /** - * 视频提供者 - */ - @TableField("teacher_id") - private Long administerId; - - /** - * 封面 - */ - private String coverPage; - - /** - * 0:待审核 1:已审核 - */ - private String status; - - /** - * 审核人 - */ - private Integer checkId; - - /** - * 分享状态 - */ - private String shareStatus; - - /** - * 审核状态 1:审核通过 3:未通过 2: 审核中 - */ - private String checkStatus; - - /** - * 通过/不通过原因 - */ - private String reason; - - -} diff --git a/src/main/java/com/meishu/model/VodPlayHistoryDO.java b/src/main/java/com/meishu/model/VodPlayHistoryDO.java deleted file mode 100644 index 6e53417..0000000 --- a/src/main/java/com/meishu/model/VodPlayHistoryDO.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 视频播放历史记录表 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("vod_play_history") -public class VodPlayHistoryDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 视频id - */ - private Long vodId; - - /** - * 学生id - */ - private Long studentId; - - /** - * 观看时长 - */ - private Integer playLength; - - /** - * 播放视频位置 - */ - private Integer playRecord; - - /** - * course_tree课程知识树的主键 - */ - private Long treeId; - - -} diff --git a/src/main/java/com/meishu/model/VodSubjectTreeMappingDO.java b/src/main/java/com/meishu/model/VodSubjectTreeMappingDO.java deleted file mode 100644 index afbbd82..0000000 --- a/src/main/java/com/meishu/model/VodSubjectTreeMappingDO.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 视频知识点映射表 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("vod_related") -public class VodSubjectTreeMappingDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - /** - * 视频id - */ - private Long vodId; - - /** - * 科目知识树id - */ - private Long treeId; - - /** - * 状态 0:隐藏 1:启用 - */ - private String status; - - /** - * 关联学校 -- 同步用 - */ - private String isRelated; - - -} diff --git a/src/main/java/com/meishu/model/WrittenHomeworkDO.java b/src/main/java/com/meishu/model/WrittenHomeworkDO.java deleted file mode 100644 index e78b0b7..0000000 --- a/src/main/java/com/meishu/model/WrittenHomeworkDO.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.meishu.model; - -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.util.BaseModel; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - *

- * 通知/附件作业表 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("written_homework") -public class WrittenHomeworkDO extends BaseModel { - - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - /** - * 书面作业类型 2 通知 1 附件 - */ - private Integer homeworkType; - - /** - * 内容/附件地址 - */ - private String homeworkContent; - - /** - * 建议时长 - */ - private Integer adviceLength; - - /** - * 附件大小 - */ - private String fileSize; - - /** - * 文件类型 - */ - private String fileType; - - /** - * 文件名称 - */ - private String fileName; - - -} diff --git a/src/main/java/com/meishu/service/AccessTokenService.java b/src/main/java/com/meishu/service/AccessTokenService.java deleted file mode 100644 index d1a96d5..0000000 --- a/src/main/java/com/meishu/service/AccessTokenService.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.token.GetAllStudentsDTO; -import com.meishu.dto.token.GetAllTeachersDTO; -import com.meishu.model.AccessTokenDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.AdministerDO; -import com.meishu.model.UserRoleDO; -import com.meishu.vo.accesstoken.GetAllStudentsVO; -import com.meishu.vo.accesstoken.GetAllTeachersVO; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author Tuyp - * @since 2021-05-10 - */ -public interface AccessTokenService extends IService { - - List getAllTeachers(GetAllTeachersDTO getAllTeachersDTO); - - List getAllStudents(GetAllStudentsDTO getAllStudentsDTO); -} diff --git a/src/main/java/com/meishu/service/AdministerDepartmentMappingService.java b/src/main/java/com/meishu/service/AdministerDepartmentMappingService.java deleted file mode 100644 index 0b23955..0000000 --- a/src/main/java/com/meishu/service/AdministerDepartmentMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.AdministerDepartmentMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 老师部门映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -public interface AdministerDepartmentMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/AdministerPermissionService.java b/src/main/java/com/meishu/service/AdministerPermissionService.java deleted file mode 100644 index 80936e1..0000000 --- a/src/main/java/com/meishu/service/AdministerPermissionService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.AdministerPermissionDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 系统用户角色表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -public interface AdministerPermissionService extends IService { - -} diff --git a/src/main/java/com/meishu/service/AdministerService.java b/src/main/java/com/meishu/service/AdministerService.java deleted file mode 100644 index 4fc5397..0000000 --- a/src/main/java/com/meishu/service/AdministerService.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.administer.AddAdministerDTO; -import com.meishu.dto.administer.ChangeStatusDTO; -import com.meishu.dto.administer.PublishTasksDTO; -import com.meishu.dto.administer.UpdateAdministerDTO; -import com.meishu.dto.exercise.UpdateStatusDTO; -import com.meishu.model.AdministerDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.PermissionsDictDO; -import com.meishu.model.SmsCodeDO; -import com.meishu.vo.administer.AdministerPermissionVO; -import com.meishu.vo.administer.LoginVO; -import com.meishu.vo.administer.PermissionsVO; - -import java.util.List; - -/** - *

- * 中心管理账户表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -public interface AdministerService extends IService { - - String sendMsg(AdministerDO administerDO); - - LoginVO login(SmsCodeDO smsCodeDO); - - LoginVO passwordLogin(AdministerDO administerDO); - - AdministerPermissionVO getPermissions(); - - List getParentPermission(); - - String addAdminister(AddAdministerDTO addAdministerDTO); - - List getPermissionTree(); - - String changeStatus(ChangeStatusDTO changeStatusDTO); - - String updateAdminister(UpdateAdministerDTO updateAdministerDTO); - - List getAllAdminister(); - -} diff --git a/src/main/java/com/meishu/service/AdministerSubjectMappingService.java b/src/main/java/com/meishu/service/AdministerSubjectMappingService.java deleted file mode 100644 index fd95956..0000000 --- a/src/main/java/com/meishu/service/AdministerSubjectMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.AdministerSubjectMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 老师科目映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -public interface AdministerSubjectMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/AnsweringQuestionService.java b/src/main/java/com/meishu/service/AnsweringQuestionService.java deleted file mode 100644 index b2e5a86..0000000 --- a/src/main/java/com/meishu/service/AnsweringQuestionService.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.question.QueryQuestionsDTO; -import com.meishu.model.AnsweringQuestionDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.UserSubjectPermissionDictDO; -import com.meishu.vo.question.GetClassQuestionsVO; -import com.meishu.vo.question.QueryOneQuestionVO; - -import java.util.List; - -/** - *

- * 问题答疑表 服务类 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -public interface AnsweringQuestionService extends IService { - - IPage queryQuestions(QueryQuestionsDTO queryQuestionsDTO); - - String deleteQuestion(AnsweringQuestionDO answeringQuestionDO); - - QueryOneQuestionVO queryOneQuestion(AnsweringQuestionDO answeringQuestionDO); - - List getClassQuestions(UserSubjectPermissionDictDO userSubjectPermissionDictDO); - - String addQuestion(AnsweringQuestionDO answeringQuestionDO); - - String answerQuestion(AnsweringQuestionDO answeringQuestionDO); -} diff --git a/src/main/java/com/meishu/service/ClassSubjectTaskService.java b/src/main/java/com/meishu/service/ClassSubjectTaskService.java deleted file mode 100644 index 78470da..0000000 --- a/src/main/java/com/meishu/service/ClassSubjectTaskService.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.administer.PublishTasksDTO; -import com.meishu.dto.classes.GetClassesDTO; -import com.meishu.dto.exercise.GetExerciseRequestDTO; -import com.meishu.dto.task.*; -import com.meishu.model.*; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.PerStudentComplicationVO; -import com.meishu.vo.administer.GetClassesDetailResponseVO; -import com.meishu.vo.administer.GetTeacherClassVO; -import com.meishu.vo.exercise.GetExerciseDetailResponseVO; -import com.meishu.vo.task.*; - -import java.util.HashMap; -import java.util.List; - -/** - *

- * 学习任务列表 服务类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -public interface ClassSubjectTaskService extends IService { - - String code(String telephone); - - List getTeacherClass(GetClassesRequestVO getClassesRequestVO); - - String publishTasks(PublishTasksDTO publishTasksDTO); - - IPage getTaskById(GetTaskByIdRequestDTO getTaskByIdRequestDTO); - - String deletePreTasks(ClassSubjectTaskDO classSubjectTaskDO); - - QueryTaskDetailResponseVO queryTaskDetail(QueryTaskDetailDTO queryTaskDetailDTO); - - List getRelativeExercises(GetExerciseRequestDTO getExerciseRequestVO); - - List perStudentVod(GetUserVodPlayDTO getUserVodPlayRequestVO); - - PerStudentExesResponseVO perStudentRelateExes(PerStudentExesDTO perStudentExesRequestVO); - - List exeRightRatio(ExeRightRatioDTO exeRightRatioPO); - - StudentDoneInfoResponseVO studentRelateDoneInfo(StudentDoneInfoRequestVO studentDoneInfoRequestVO); - - GetExeByIdResponseVO getExeById(ExerciseDictDO exerciseDict); - - List getExpandings(GetExpandingsPO getExpandingsPO); - - StudentDoneInfoResponseVO studentxpandingDoneInfo(StudentDoneInfoRequestVO studentDoneInfoRequestVO); - - PerStudentExesResponseVO perStudentExpandingExes(PerStudentExesRequestVO perStudentExesRequestVO); - - List getRecommendVodByTreeId(GetRecommendVodByTreeIdVO getRecommendVodByTreeIdVO); - - List getRecommendExeByTreeId(GetRecommendExeByTreeIdVO getRecommendExeByTreeIdVO); - - List allNodes(SubjectTreeDO knowledgeTree); - - List getClassStudents(GetClassStudentsDTO getClassStudentsDTO); - - List queryTaskRelatedExercise(TaskContentDO taskContentDO); - - void data(); - -} diff --git a/src/main/java/com/meishu/service/ClassesDictHistoryService.java b/src/main/java/com/meishu/service/ClassesDictHistoryService.java deleted file mode 100644 index f3341a5..0000000 --- a/src/main/java/com/meishu/service/ClassesDictHistoryService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.ClassesDictHistoryDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学校班级字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -public interface ClassesDictHistoryService extends IService { - -} diff --git a/src/main/java/com/meishu/service/ClassesDictService.java b/src/main/java/com/meishu/service/ClassesDictService.java deleted file mode 100644 index ce34780..0000000 --- a/src/main/java/com/meishu/service/ClassesDictService.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.classes.*; -import com.meishu.model.ClassesDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.ClassesDictHistoryDO; -import com.meishu.model.UserRoleDO; -import com.meishu.vo.classes.GetClassStudentsVO; -import com.meishu.vo.classes.GetClassesVO; - -import java.util.List; - -/** - *

- * 学校班级字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -public interface ClassesDictService extends IService { - - IPage getClasses(GetClassesDTO getClassesDTO); - - String addClass(AddClassDTO addClassDTO); - - String updateClass(AddClassDTO addClassDTO); - - String addSubjectTeacherMapping(AddSubjectTeacherDTO addSubjectTeacherDTO); - - List getClassStudents(GetClassStudentsDTO getClassStudentsDTO); - - IPage queryNoClassStudents(QueryNoClassStudentsDTO queryNoClassStudentsDTO); - - String batchAddStudentToClass(BatchAddStudentToClassDTO batchAddStudentToClassDTO); - - String batchDeleteStudent(BatchAddStudentToClassDTO batchAddStudentToClassDTO); - - List getClassesWithPage(); - - ClassesDictDO getClassesById(Long studentId); - - String batchUpGrade(BatchUpGradeDTO batchUpGradeDTO); -} diff --git a/src/main/java/com/meishu/service/ClassesUserMappingService.java b/src/main/java/com/meishu/service/ClassesUserMappingService.java deleted file mode 100644 index 4d437d9..0000000 --- a/src/main/java/com/meishu/service/ClassesUserMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.ClassesUserMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 班级--学生--映射表(包括以前的班级) 服务类 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -public interface ClassesUserMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/CourseAdministerMappingService.java b/src/main/java/com/meishu/service/CourseAdministerMappingService.java deleted file mode 100644 index 3724d08..0000000 --- a/src/main/java/com/meishu/service/CourseAdministerMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.CourseAdministerMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 课程老师映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -public interface CourseAdministerMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/CourseStudentStatusHistoryService.java b/src/main/java/com/meishu/service/CourseStudentStatusHistoryService.java deleted file mode 100644 index 8a7c6c6..0000000 --- a/src/main/java/com/meishu/service/CourseStudentStatusHistoryService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.CourseStudentStatusHistoryDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 服务类 - *

- * - * @author Tuyp - * @since 2021-05-27 - */ -public interface CourseStudentStatusHistoryService extends IService { - -} diff --git a/src/main/java/com/meishu/service/CourseTreeExerciseStudentResultService.java b/src/main/java/com/meishu/service/CourseTreeExerciseStudentResultService.java deleted file mode 100644 index 3d101a3..0000000 --- a/src/main/java/com/meishu/service/CourseTreeExerciseStudentResultService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.CourseTreeExerciseStudentResultDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 课程--学生做题记录 服务类 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -public interface CourseTreeExerciseStudentResultService extends IService { - -} diff --git a/src/main/java/com/meishu/service/CourseTreeVodStudentResultService.java b/src/main/java/com/meishu/service/CourseTreeVodStudentResultService.java deleted file mode 100644 index a046276..0000000 --- a/src/main/java/com/meishu/service/CourseTreeVodStudentResultService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.CourseTreeVodStudentResultDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学生视频完成情况 服务类 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -public interface CourseTreeVodStudentResultService extends IService { - -} diff --git a/src/main/java/com/meishu/service/DepartmentDictService.java b/src/main/java/com/meishu/service/DepartmentDictService.java deleted file mode 100644 index 757df3d..0000000 --- a/src/main/java/com/meishu/service/DepartmentDictService.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.department.BatchOprDTO; -import com.meishu.dto.department.GetAllDepartmentVO; -import com.meishu.dto.department.GetTeachersDTO; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.model.AdministerDO; -import com.meishu.model.DepartmentDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.administer.GetTeachersVO; - -import java.util.List; - -/** - *

- * 部门字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -public interface DepartmentDictService extends IService { - - - List getDepartmentInfo(); - - List getDepartmentList(GetSubjectTreeDTO getSubjectTreeDTO); - - String addDepartment(DepartmentDictDO departmentDictDO); - - IPage getTeachers(GetTeachersDTO getTeachersDTO); - - String batchOpr(BatchOprDTO batchOprDTO); - - String deleteDepartment(BatchOprDTO batchOprDTO); - - String updateDepartment(DepartmentDictDO departmentDictDO); - -} diff --git a/src/main/java/com/meishu/service/ExerciseCourseTreeMappingService.java b/src/main/java/com/meishu/service/ExerciseCourseTreeMappingService.java deleted file mode 100644 index 22dd70a..0000000 --- a/src/main/java/com/meishu/service/ExerciseCourseTreeMappingService.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.exercise.QueryCourseTreeExerciseDTO; -import com.meishu.dto.exercise.UpdateStatusDTO; -import com.meishu.model.ExerciseCourseTreeMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.ExerciseTreeMappingDO; -import com.meishu.vo.exercise.QueryCourseTreeExerciseVO; - -/** - *

- * 课程知识树--题目字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-24 - */ -public interface ExerciseCourseTreeMappingService extends IService { - - String updateStatus(UpdateStatusDTO updateStatusDTO); -} diff --git a/src/main/java/com/meishu/service/ExerciseDictService.java b/src/main/java/com/meishu/service/ExerciseDictService.java deleted file mode 100644 index cadd6ba..0000000 --- a/src/main/java/com/meishu/service/ExerciseDictService.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.exercise.AddExerciseDTO; -import com.meishu.dto.exercise.CheckExerciseDTO; -import com.meishu.dto.exercise.GetTreeExercisesDTO; -import com.meishu.dto.voddict.GetToCheckVodCountsDTO; -import com.meishu.dto.voddict.PublicCheckingDTO; -import com.meishu.model.ExerciseDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.ExerciseTreeMappingDO; -import com.meishu.vo.exercise.GetExerciseDetailVO; -import com.meishu.vo.exercise.GetTreeExercisesVO; -import com.meishu.vo.voddict.GetToCheckCountsVO; - -/** - *

- * 习题库 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface ExerciseDictService extends IService { - - IPage getTreeExercises(GetTreeExercisesDTO getTreeExercisesDTO); - - IPage getCheckTreeExercises(GetTreeExercisesDTO getTreeExercisesDTO); - - String deleteExercise(ExerciseDictDO exerciseDictDO); - - String addExercise(AddExerciseDTO addExerciseDTO); - - String updateExercise(AddExerciseDTO addExerciseDTO); - - GetToCheckCountsVO getToCheckExeCounts(GetToCheckVodCountsDTO getToCheckVodCountsDTO); - - String checkExercise(CheckExerciseDTO checkExerciseDTO); - - IPage publicUpload(PublicCheckingDTO publicCheckingDTO); - - String withdraw(ExerciseDictDO exerciseDictDO); - - GetExerciseDetailVO getExerciseDetail(ExerciseDictDO exerciseDictDO); - - String setRelatedExercise(ExerciseTreeMappingDO exerciseTreeMappingDO); - -} diff --git a/src/main/java/com/meishu/service/ExerciseDoneHistoryService.java b/src/main/java/com/meishu/service/ExerciseDoneHistoryService.java deleted file mode 100644 index f0e7883..0000000 --- a/src/main/java/com/meishu/service/ExerciseDoneHistoryService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.ExerciseDoneHistoryDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学生做题记录表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface ExerciseDoneHistoryService extends IService { - -} diff --git a/src/main/java/com/meishu/service/ExerciseExpandMappingService.java b/src/main/java/com/meishu/service/ExerciseExpandMappingService.java deleted file mode 100644 index c7ca723..0000000 --- a/src/main/java/com/meishu/service/ExerciseExpandMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.ExerciseExpandMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学生--拓展习题映射表 服务类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -public interface ExerciseExpandMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/ExerciseRelatedMappingService.java b/src/main/java/com/meishu/service/ExerciseRelatedMappingService.java deleted file mode 100644 index 7372453..0000000 --- a/src/main/java/com/meishu/service/ExerciseRelatedMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.ExerciseRelatedMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学生--拓展习题映射表 服务类 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -public interface ExerciseRelatedMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/ExerciseTreeMappingService.java b/src/main/java/com/meishu/service/ExerciseTreeMappingService.java deleted file mode 100644 index dcc3c17..0000000 --- a/src/main/java/com/meishu/service/ExerciseTreeMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.ExerciseTreeMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 题目知识树映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface ExerciseTreeMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/ExerciseUserInfoService.java b/src/main/java/com/meishu/service/ExerciseUserInfoService.java deleted file mode 100644 index b703b88..0000000 --- a/src/main/java/com/meishu/service/ExerciseUserInfoService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.ExerciseUserInfoDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 题目收藏信息表 服务类 - *

- * - * @author DengMin - * @since 2021-09-17 - */ -public interface ExerciseUserInfoService extends IService { - -} diff --git a/src/main/java/com/meishu/service/KnowledgeSubjectDictService.java b/src/main/java/com/meishu/service/KnowledgeSubjectDictService.java deleted file mode 100644 index c985a20..0000000 --- a/src/main/java/com/meishu/service/KnowledgeSubjectDictService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.subject.GetSubjectAdministerDTO; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.dto.subject.GetSubjectsDTO; -import com.meishu.model.AdministerDO; -import com.meishu.model.KnowledgeSubjectDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.subject.GetSubjectTreeVO; - -import java.util.List; - -/** - *

- * 学科字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface KnowledgeSubjectDictService extends IService { - - - IPage getSubjects(GetSubjectsDTO getSubjectsDTO); - - List getAllSubjects(GetSubjectsDTO getSubjectsDTO); - - String updateSubject(KnowledgeSubjectDictDO subjectDictDO); - - String addSubject(KnowledgeSubjectDictDO subjectDictDO); - - String deleteSubject(KnowledgeSubjectDictDO subjectDictDO); - - List getSubjectTree(GetSubjectTreeDTO getSubjectTreeDTO); - - KnowledgeSubjectDictDO getSubject(KnowledgeSubjectDictDO subjectDictDO); - - List getSubjectAdminister(GetSubjectAdministerDTO getSubjectAdministerDTO); - -} diff --git a/src/main/java/com/meishu/service/LaboratoryAttendanceMappingService.java b/src/main/java/com/meishu/service/LaboratoryAttendanceMappingService.java deleted file mode 100644 index 7faf77c..0000000 --- a/src/main/java/com/meishu/service/LaboratoryAttendanceMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.LaboratoryAttendanceMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 实验室场次预约考勤记录 服务类 - *

- * - * @author DengMin - * @since 2021-09-15 - */ -public interface LaboratoryAttendanceMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/LaboratoryDictMappingService.java b/src/main/java/com/meishu/service/LaboratoryDictMappingService.java deleted file mode 100644 index 8d4524d..0000000 --- a/src/main/java/com/meishu/service/LaboratoryDictMappingService.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.LaboratoryDictMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -import java.util.List; - -/** - *

- * 实验室场次关联表 服务类 - *

- * - * @author DengMin - * @since 2021-08-30 - */ -public interface LaboratoryDictMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/LaboratoryDictService.java b/src/main/java/com/meishu/service/LaboratoryDictService.java deleted file mode 100644 index b6530ee..0000000 --- a/src/main/java/com/meishu/service/LaboratoryDictService.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.laboratory.LaboratoryDictDTO; -import com.meishu.dto.laboratory.LaboratoryPageDTO; -import com.meishu.model.LaboratoryDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.laboratorySession.LaboratoryDictPageVO; - -/** - *

- * 实验室 服务类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -public interface LaboratoryDictService extends IService { - - IPage selectPage(LaboratoryPageDTO laboratoryPageDTO); - - void add(LaboratoryDictDTO laboratoryDictDO); - - void updateLaboratory(LaboratoryDictDTO laboratoryDictDO); - - void delete(Long id); - - LaboratoryDictDO getLaboratoryDicOne(String laboratoryType, String startDate); -} diff --git a/src/main/java/com/meishu/service/LaboratorySessionMappingService.java b/src/main/java/com/meishu/service/LaboratorySessionMappingService.java deleted file mode 100644 index 86525bb..0000000 --- a/src/main/java/com/meishu/service/LaboratorySessionMappingService.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.laboratorySession.CalendarStatusDTO; -import com.meishu.dto.laboratorySession.GetLaboratorySessionDTO; -import com.meishu.dto.laboratorySession.LaboratorySessionListDTO; -import com.meishu.dto.laboratorySession.SetLaboratorySessionDTO; -import com.meishu.model.LaboratorySessionMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.laboratorySession.*; - -import java.util.List; - -/** - *

- * 实验室场次预约安排表 服务类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -public interface LaboratorySessionMappingService extends IService { - - List getLaboratorySessionList(String startDate); - - void setLaboratorySession(SetLaboratorySessionDTO setLaboratorySessionDTO); - - void updateLaboratorySession(SetLaboratorySessionDTO setLaboratorySessionDTO); - - LaboratorySessionMappingVO getOneById(Long laboratorySessionId); - - List getCalendarStatus(CalendarStatusDTO calendarStatusDTO); - - StatisticsVO getLaboratorySessionStatistics(CalendarStatusDTO calendarStatusDTO); - - List getLaboratorySessionDate(GetLaboratorySessionDTO getLaboratorySessionDTO); - - List getLaboratorySession(GetLaboratorySessionDTO getLaboratorySessionDTO); - - void deleteLaboratorySession(SetLaboratorySessionDTO setLaboratorySessionDTO); -} diff --git a/src/main/java/com/meishu/service/LaboratoryUserMappingService.java b/src/main/java/com/meishu/service/LaboratoryUserMappingService.java deleted file mode 100644 index f1a1f53..0000000 --- a/src/main/java/com/meishu/service/LaboratoryUserMappingService.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.laboratoryUser.ApplyDTO; -import com.meishu.dto.laboratoryUser.LaboratoryUserPageDTO; -import com.meishu.model.LaboratoryUserMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.laboratoryUser.LaboratoryUserPageVO; - -import java.util.List; - -/** - *

- * 实验室场次预约报名记录 服务类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -public interface LaboratoryUserMappingService extends IService { - - List getLaboratoryUserPage(LaboratoryUserPageDTO laboratoryUserPageDTO); - - void exportLaboratoryUser(LaboratoryUserPageDTO laboratoryUserPageDTO); - - void registration(ApplyDTO applyDTO); - - void cancelRegistration(ApplyDTO applyDTO); -} diff --git a/src/main/java/com/meishu/service/PermissionsDictService.java b/src/main/java/com/meishu/service/PermissionsDictService.java deleted file mode 100644 index 89edce0..0000000 --- a/src/main/java/com/meishu/service/PermissionsDictService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.PermissionsDictDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 权限表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -public interface PermissionsDictService extends IService { - -} diff --git a/src/main/java/com/meishu/service/RoleAdministerMappingService.java b/src/main/java/com/meishu/service/RoleAdministerMappingService.java deleted file mode 100644 index 8c93cb8..0000000 --- a/src/main/java/com/meishu/service/RoleAdministerMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.RoleAdministerMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 服务类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -public interface RoleAdministerMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/RoleDictService.java b/src/main/java/com/meishu/service/RoleDictService.java deleted file mode 100644 index a029a7b..0000000 --- a/src/main/java/com/meishu/service/RoleDictService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.role.AddPermissionDTO; -import com.meishu.dto.role.DeletePermissionDTO; -import com.meishu.dto.role.GetRoleTeachersDTO; -import com.meishu.dto.role.RoleTeacherDTO; -import com.meishu.model.RoleDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.role.GetAllRolesVO; -import com.meishu.vo.role.GetRoleTeachersVO; - -import java.util.List; - -/** - *

- * 角色表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -public interface RoleDictService extends IService { - - List getAllRoles(); - - IPage getRoleTeachers(GetRoleTeachersDTO getRoleTeachersDTO); - - String removeTeacher(RoleTeacherDTO roleTeacherDTO); - - String roleTeacher(RoleTeacherDTO roleTeacherDTO); - - String addPermission(AddPermissionDTO addPermissionDTO); - - String deletePermission(DeletePermissionDTO deletePermissionDTO); - -} diff --git a/src/main/java/com/meishu/service/RolePermissionMappingService.java b/src/main/java/com/meishu/service/RolePermissionMappingService.java deleted file mode 100644 index 92c5281..0000000 --- a/src/main/java/com/meishu/service/RolePermissionMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.RolePermissionMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 系统用户角色表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -public interface RolePermissionMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/SessionsDictService.java b/src/main/java/com/meishu/service/SessionsDictService.java deleted file mode 100644 index e88a544..0000000 --- a/src/main/java/com/meishu/service/SessionsDictService.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SessionsDictDO; -import com.baomidou.mybatisplus.extension.service.IService; - -import java.util.List; - -/** - *

- * 场次字典表 服务类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -public interface SessionsDictService extends IService { - - List getListById(Long laboratoryDictId); - - List getListSessionDictById(Long laboratoryDictId, String startDate); -} diff --git a/src/main/java/com/meishu/service/SignInRecordService.java b/src/main/java/com/meishu/service/SignInRecordService.java deleted file mode 100644 index 573e06f..0000000 --- a/src/main/java/com/meishu/service/SignInRecordService.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.sign.ClassSignInDTO; -import com.meishu.model.SignInRecordDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.sign.ClassSignInVO; - -/** - *

- * 学生签到表 服务类 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -public interface SignInRecordService extends IService { - - IPage classSignIn(ClassSignInDTO classSignInDTO); - -} diff --git a/src/main/java/com/meishu/service/SmsCodeService.java b/src/main/java/com/meishu/service/SmsCodeService.java deleted file mode 100644 index 2e053d3..0000000 --- a/src/main/java/com/meishu/service/SmsCodeService.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.sms.SendVerifyCodeDTO; -import com.meishu.model.SmsCodeDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 短信验证码 服务类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -public interface SmsCodeService extends IService { - - void sendVerifyCode(SendVerifyCodeDTO sendVerifyCodeDTO); -} diff --git a/src/main/java/com/meishu/service/StudentService.java b/src/main/java/com/meishu/service/StudentService.java deleted file mode 100644 index 184e9c9..0000000 --- a/src/main/java/com/meishu/service/StudentService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.campus.BatchUpdateStatusDTO; -import com.meishu.dto.student.*; -import com.meishu.dto.subject.BatchStatusOprDTO; -import com.meishu.model.*; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.util.SMSUtils; -import com.meishu.vo.course.GetVodIndexVO; -import com.meishu.vo.course.QueryCourseInfoVO; -import com.meishu.vo.rule.GetOneExaminationDetailVO; -import com.meishu.vo.rule.GetStudentRulesVO; -import com.meishu.vo.student.*; - -import java.util.List; - -/** - *

- * 白名单 服务类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -public interface StudentService extends IService { - - String sendMsg(StudentDO studentDO); - - LoginVO login(SmsCodeDO smsCodeDO); - - String addStudent(StudentDO studentDO); - - String updateStudent(StudentDO studentDO); - - String batchUpdateStudent(BatchStatusOprDTO batchStatusOprDTO); - - String deleteStudent(DeleteStudentDTO deleteStudentDTO); - - QueryStudentVO queryStudent(StudentDO studentDO); - -} diff --git a/src/main/java/com/meishu/service/SubjectDictService.java b/src/main/java/com/meishu/service/SubjectDictService.java deleted file mode 100644 index bb9717a..0000000 --- a/src/main/java/com/meishu/service/SubjectDictService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SubjectDictDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学校科目字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -public interface SubjectDictService extends IService { - -} diff --git a/src/main/java/com/meishu/service/SubjectDimensionDictService.java b/src/main/java/com/meishu/service/SubjectDimensionDictService.java deleted file mode 100644 index adf7c0c..0000000 --- a/src/main/java/com/meishu/service/SubjectDimensionDictService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SubjectDimensionDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.SubjectDimensionStarDictDO; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.model.SubjectTestPublishGradeDO; -import com.meishu.vo.dimension.GetAllDimensionStarVO; - -import java.util.HashMap; -import java.util.List; - -/** - *

- * 测评表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -public interface SubjectDimensionDictService extends IService { - - List getAllDimensions(SubjectDimensionDictDO subjectDimensionDictDO); - - String deleteDimensionById(SubjectDimensionDictDO subjectDimensionDictDO); - - String updateDimension(SubjectDimensionDictDO subjectDimensionDictDO); - - String addDimension(SubjectDimensionDictDO subjectDimensionDictDO); - - List getAllDimensionStar(SubjectTestPublishGradeDO subjectTestPublishGradeDO); - -} diff --git a/src/main/java/com/meishu/service/SubjectDimensionStarDictService.java b/src/main/java/com/meishu/service/SubjectDimensionStarDictService.java deleted file mode 100644 index f297ad8..0000000 --- a/src/main/java/com/meishu/service/SubjectDimensionStarDictService.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.dimension.AddStarDTO; -import com.meishu.dto.dimension.DeleteStarByIdDTO; -import com.meishu.model.SubjectDimensionStarDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.dimension.GetAllDimensionStarsVO; - -import java.util.List; - -/** - *

- * 维度星级字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -public interface SubjectDimensionStarDictService extends IService { - - List getAllDimensionStars(SubjectDimensionStarDictDO subjectDimensionStartDictDO); - - String deleteStarById(DeleteStarByIdDTO deleteDimensionByIdDTO); - - String addStar(AddStarDTO addStarDTO); - - String updateStar(AddStarDTO addStarDTO); -} diff --git a/src/main/java/com/meishu/service/SubjectRuleService.java b/src/main/java/com/meishu/service/SubjectRuleService.java deleted file mode 100644 index 832972b..0000000 --- a/src/main/java/com/meishu/service/SubjectRuleService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.rule.GetAllRulesDTO; -import com.meishu.dto.rule.GetRuleReportDTO; -import com.meishu.model.SubjectRuleDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.rule.GetAllRulesVO; -import com.meishu.vo.rule.GetRuleReportVO; - -import java.util.List; - -/** - *

- * 规则字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -public interface SubjectRuleService extends IService { - - IPage getAllRules(GetAllRulesDTO getAllRulesDTO); - - List getRules(); - - String addRule(SubjectRuleDO subjectRuleDO); - - String updateRule(SubjectRuleDO subjectRuleDO); - - String deleteRule(SubjectRuleDO subjectRuleDO); - -} diff --git a/src/main/java/com/meishu/service/SubjectSemesterService.java b/src/main/java/com/meishu/service/SubjectSemesterService.java deleted file mode 100644 index 9fb0c17..0000000 --- a/src/main/java/com/meishu/service/SubjectSemesterService.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.semester.GetSemesterScoreDTO; -import com.meishu.dto.semester.GetStudentDetailDTO; -import com.meishu.dto.semester.GetStudentRecordDTO; -import com.meishu.model.SubjectSemesterDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.semester.*; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -public interface SubjectSemesterService extends IService { - - List getAllStudyingSemester(); - - List getAllPastSemester(); - - IPage getSemesterScore(GetSemesterScoreDTO getSemesterScoreDTO); - - List exportScore(GetSemesterScoreDTO getSemesterScoreDTO); - - IPage getStudentDetail(GetStudentDetailDTO getStudentDetailDTO); - - List getStudentRecord(GetStudentRecordDTO getStudentRecordDTO); - -} diff --git a/src/main/java/com/meishu/service/SubjectStarTreeMappingService.java b/src/main/java/com/meishu/service/SubjectStarTreeMappingService.java deleted file mode 100644 index 400228c..0000000 --- a/src/main/java/com/meishu/service/SubjectStarTreeMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SubjectStarTreeMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 测评-知识点关联表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -public interface SubjectStarTreeMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/SubjectStudentAnswerStarService.java b/src/main/java/com/meishu/service/SubjectStudentAnswerStarService.java deleted file mode 100644 index 499d4eb..0000000 --- a/src/main/java/com/meishu/service/SubjectStudentAnswerStarService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SubjectStudentAnswerStarDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学生答卷星级表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -public interface SubjectStudentAnswerStarService extends IService { - -} diff --git a/src/main/java/com/meishu/service/SubjectTestDictService.java b/src/main/java/com/meishu/service/SubjectTestDictService.java deleted file mode 100644 index 97edfba..0000000 --- a/src/main/java/com/meishu/service/SubjectTestDictService.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.dto.test.GetAllTestDTO; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.vo.test.GetAllTestVO; -import com.meishu.vo.test.GetTestReportVO; - -import java.util.List; - -/** - *

- * 测评表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-20 - */ -public interface SubjectTestDictService extends IService { - - IPage getAllTest(GetAllTestDTO getAllTestDTO); - - List getTest(GetAllTestDTO getAllTestDTO); - - String insertTest(SubjectTestDictDO subjectTestDictDO); - - String updateTest(SubjectTestDictDO subjectTestDictDO); - - String deleteByTestId(SubjectTestDictDO subjectTestDictDO); - -} diff --git a/src/main/java/com/meishu/service/SubjectTestGradeExampleMappingService.java b/src/main/java/com/meishu/service/SubjectTestGradeExampleMappingService.java deleted file mode 100644 index f4d1f48..0000000 --- a/src/main/java/com/meishu/service/SubjectTestGradeExampleMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SubjectTestGradeExampleMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 样卷映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -public interface SubjectTestGradeExampleMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/SubjectTestGradeStarMappingService.java b/src/main/java/com/meishu/service/SubjectTestGradeStarMappingService.java deleted file mode 100644 index b0bda0f..0000000 --- a/src/main/java/com/meishu/service/SubjectTestGradeStarMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SubjectTestGradeStarMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 档次星级映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -public interface SubjectTestGradeStarMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/SubjectTestPublishGradeService.java b/src/main/java/com/meishu/service/SubjectTestPublishGradeService.java deleted file mode 100644 index b89d876..0000000 --- a/src/main/java/com/meishu/service/SubjectTestPublishGradeService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.grade.AddGradeDTO; -import com.meishu.model.SubjectRuleDO; -import com.meishu.model.SubjectTestPublishGradeDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.grade.QueryOneGradeVO; - -import java.util.List; - -/** - *

- * 档次表 服务类 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -public interface SubjectTestPublishGradeService extends IService { - - String addGrade(AddGradeDTO addGradeDTO); - - String deleteGrade(SubjectTestPublishGradeDO subjectTestPublishGradeDO); - - List queryGrade(SubjectTestPublishGradeDO subjectTestPublishGradeDO); - - QueryOneGradeVO queryOneGrade(SubjectTestPublishGradeDO subjectTestPublishGradeDO); - - String updateGrade(AddGradeDTO addGradeDTO); - - SubjectRuleDO getRuleIdByPublishId(SubjectTestPublishGradeDO subjectTestPublishGradeDO); - -} diff --git a/src/main/java/com/meishu/service/SubjectTestPublishHistoryService.java b/src/main/java/com/meishu/service/SubjectTestPublishHistoryService.java deleted file mode 100644 index 282d2e5..0000000 --- a/src/main/java/com/meishu/service/SubjectTestPublishHistoryService.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.test.*; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.model.SubjectTestPublishHistoryDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.test.GetOnePublishVO; -import com.meishu.vo.test.GetPublishHistoryVO; -import com.meishu.vo.test.GetTestReportVO; - -import java.util.List; - -/** - *

- * 测评发布记录表 服务类 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -public interface SubjectTestPublishHistoryService extends IService { - - String publishTest(PublishTestDTO publishTestDTO); - - String updatePublish(PublishTestDTO publishTestDTO); - - IPage getPublishHistory(GetPublishHistoryDTO getPublishHistoryDTO); - - IPage getTestReport(GetTestReportDTO getTestReportDTO); - - IPage getOnePublish(GetOnePublishDTO getOnePublishDTO); - - String comment(CommentDTO commentDTO); - - String deletePublish(SubjectTestPublishHistoryDO subjectTestPublishHistoryDO); -} diff --git a/src/main/java/com/meishu/service/SubjectTestStudentAnswerService.java b/src/main/java/com/meishu/service/SubjectTestStudentAnswerService.java deleted file mode 100644 index 5d06a3e..0000000 --- a/src/main/java/com/meishu/service/SubjectTestStudentAnswerService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.SubjectTestStudentAnswerDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学生月考答卷 服务类 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -public interface SubjectTestStudentAnswerService extends IService { - -} diff --git a/src/main/java/com/meishu/service/SubjectTreeService.java b/src/main/java/com/meishu/service/SubjectTreeService.java deleted file mode 100644 index 6427b2e..0000000 --- a/src/main/java/com/meishu/service/SubjectTreeService.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.meishu.service; - -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.dto.subject.UpdateTreeOrderDTO; -import com.meishu.model.SubjectTreeDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.subject.GetSubjectTreeVO; - -import java.util.List; - -/** - *

- * 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface SubjectTreeService extends IService { - - String updateSubjectTree(SubjectTreeDO subjectTreeDO); - - String addSubjectTree(SubjectTreeDO subjectTreeDO); - - String deleteSubjectTree(SubjectTreeDO subjectTreeDO); - - String updateTreeOrder(UpdateTreeOrderDTO updateTreeOrderDTO); - - List getTreesCnt(GetSubjectTreeDTO getSubjectTreeDTO); - - List getTreesCheckCnt(GetSubjectTreeDTO getSubjectTreeDTO); -} diff --git a/src/main/java/com/meishu/service/TaskCompletionStatusService.java b/src/main/java/com/meishu/service/TaskCompletionStatusService.java deleted file mode 100644 index 46d158d..0000000 --- a/src/main/java/com/meishu/service/TaskCompletionStatusService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.TaskCompletionStatusDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 作业任务完成状态 服务类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -public interface TaskCompletionStatusService extends IService { - -} diff --git a/src/main/java/com/meishu/service/TaskContentDoneInfoService.java b/src/main/java/com/meishu/service/TaskContentDoneInfoService.java deleted file mode 100644 index db1e545..0000000 --- a/src/main/java/com/meishu/service/TaskContentDoneInfoService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.TaskContentDoneInfoDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 服务类 - *

- * - * @author DengMin - * @since 2021-09-30 - */ -public interface TaskContentDoneInfoService extends IService { - -} diff --git a/src/main/java/com/meishu/service/TaskContentService.java b/src/main/java/com/meishu/service/TaskContentService.java deleted file mode 100644 index 9af7ae9..0000000 --- a/src/main/java/com/meishu/service/TaskContentService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.TaskContentDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 作业内容表(取题目,视频,书面作业) 服务类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -public interface TaskContentService extends IService { - -} diff --git a/src/main/java/com/meishu/service/TaskDoneHistoryService.java b/src/main/java/com/meishu/service/TaskDoneHistoryService.java deleted file mode 100644 index b423e88..0000000 --- a/src/main/java/com/meishu/service/TaskDoneHistoryService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.TaskDoneHistoryDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 服务类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -public interface TaskDoneHistoryService extends IService { - -} diff --git a/src/main/java/com/meishu/service/UserRoleCopy1Service.java b/src/main/java/com/meishu/service/UserRoleCopy1Service.java deleted file mode 100644 index c082a40..0000000 --- a/src/main/java/com/meishu/service/UserRoleCopy1Service.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.UserRoleCopy1DO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 学生表 服务类 - *

- * - * @author DengMin - * @since 2021-09-23 - */ -public interface UserRoleCopy1Service extends IService { - -} diff --git a/src/main/java/com/meishu/service/UserRoleService.java b/src/main/java/com/meishu/service/UserRoleService.java deleted file mode 100644 index a215605..0000000 --- a/src/main/java/com/meishu/service/UserRoleService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.sms.VerifyCodeDTO; -import com.meishu.dto.userrole.AccountLoginDTO; -import com.meishu.dto.userrole.AddStudentsDTO; -import com.meishu.dto.userrole.QueryStudentsDTO; -import com.meishu.model.UserRoleDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.userrole.QueryStudentsVO; -import com.meishu.vo.userrole.UserInfoVO; -import com.meishu.vo.userrole.UserRoleVO; - -import java.util.List; - -/** - *

- * 学生表 服务类 - *

- * - * @author Tuyp - * @since 2021-08-16 - */ -public interface UserRoleService extends IService { - - IPage queryStudents(QueryStudentsDTO queryStudentsDTO); - - String addStudents(UserRoleDO userRoleDO); - - String updateStudent(UserRoleDO userRoleDO); - - List exportStudents(QueryStudentsDTO queryStudentsDTO); - - UserRoleVO login(VerifyCodeDTO verifyCodeDTO); - - UserInfoVO userInfo(Integer id); - - UserRoleVO accountLogin(AccountLoginDTO accountLoginDTO); - - void studycode(); -} diff --git a/src/main/java/com/meishu/service/UserSubjectMappingService.java b/src/main/java/com/meishu/service/UserSubjectMappingService.java deleted file mode 100644 index 7f57236..0000000 --- a/src/main/java/com/meishu/service/UserSubjectMappingService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.UserSubjectMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 老师-科目映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -public interface UserSubjectMappingService extends IService { - -} diff --git a/src/main/java/com/meishu/service/UserSubjectPermissionDictService.java b/src/main/java/com/meishu/service/UserSubjectPermissionDictService.java deleted file mode 100644 index f5a0b06..0000000 --- a/src/main/java/com/meishu/service/UserSubjectPermissionDictService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.UserSubjectPermissionDictDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 平时成绩---老师班级权限 服务类 - *

- * - * @author Tuyp - * @since 2021-08-18 - */ -public interface UserSubjectPermissionDictService extends IService { - -} diff --git a/src/main/java/com/meishu/service/UuidHistoryService.java b/src/main/java/com/meishu/service/UuidHistoryService.java deleted file mode 100644 index 40b980c..0000000 --- a/src/main/java/com/meishu/service/UuidHistoryService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.UuidHistoryDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 服务类 - *

- * - * @author DengMin - * @since 2021-09-29 - */ -public interface UuidHistoryService extends IService { - -} diff --git a/src/main/java/com/meishu/service/VodDictService.java b/src/main/java/com/meishu/service/VodDictService.java deleted file mode 100644 index a92a9f1..0000000 --- a/src/main/java/com/meishu/service/VodDictService.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.voddict.*; -import com.meishu.model.VodDictDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.model.VodPlayHistoryDO; -import com.meishu.model.VodSubjectTreeMappingDO; -import com.meishu.vo.voddict.*; - -/** - *

- * 视频字典表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface VodDictService extends IService { - - SignatureVO signature()throws Exception; - - IPage getTreeVods(GetTreeVodsDTO getTreeVodsDTO); - - IPage getCheckTreeVods(GetTreeVodsDTO getTreeVodsDTO); - - String deleteVod(VodDictDO vodDictDO); - - VodDictDO uploadVods(UploadVodsDTO uploadVodsDTO); - - String updateVod(UploadVodsDTO uploadVodsDTO); - - VodDictDO getVodInfo(VodDictDO vodDictDO); - - String insertPlayHistory(VodPlayHistoryDO vodPlayHistoryDO); - - GetToCheckCountsVO getToCheckVodCounts(GetToCheckVodCountsDTO getToCheckVodCountsDTO); - - String compressVodByCode(VodDictDO vodDictDO); - - String deleteOriginVod(DeleteOriginVodDTO deleteOriginVodDTO); - - String checkVod(CheckVodDTO checkVodDTO); - - IPage publicUpload(PublicCheckingDTO publicCheckingDTO); - - String withdraw(VodDictDO vodDictDO); - - GetVodDetailVO getVodDetail(VodDictDO vodDictDO); - - String setRelatedVod(VodSubjectTreeMappingDO vodSubjectTreeMappingDO); - -} diff --git a/src/main/java/com/meishu/service/VodPlayHistoryService.java b/src/main/java/com/meishu/service/VodPlayHistoryService.java deleted file mode 100644 index 69cd8c3..0000000 --- a/src/main/java/com/meishu/service/VodPlayHistoryService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.VodPlayHistoryDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 视频播放历史记录表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface VodPlayHistoryService extends IService { - -} diff --git a/src/main/java/com/meishu/service/VodSubjectTreeMappingService.java b/src/main/java/com/meishu/service/VodSubjectTreeMappingService.java deleted file mode 100644 index 7c9c461..0000000 --- a/src/main/java/com/meishu/service/VodSubjectTreeMappingService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.service; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.meishu.dto.subject.BatchStatusOprDTO; -import com.meishu.dto.subject.GetAllVodsStatusDTO; -import com.meishu.model.VodSubjectTreeMappingDO; -import com.baomidou.mybatisplus.extension.service.IService; -import com.meishu.vo.subject.GetAllNoAuthenVodsVO; - -/** - *

- * 视频知识点映射表 服务类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -public interface VodSubjectTreeMappingService extends IService { - - IPage getAllNoAuthenVods(GetAllVodsStatusDTO getAllNoAuthenVodsDTO); - - String batchStatusOpr(BatchStatusOprDTO batchStatusOprDTO); -} diff --git a/src/main/java/com/meishu/service/WrittenHomeworkService.java b/src/main/java/com/meishu/service/WrittenHomeworkService.java deleted file mode 100644 index 428feff..0000000 --- a/src/main/java/com/meishu/service/WrittenHomeworkService.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.service; - -import com.meishu.model.WrittenHomeworkDO; -import com.baomidou.mybatisplus.extension.service.IService; - -/** - *

- * 通知/附件作业表 服务类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -public interface WrittenHomeworkService extends IService { - -} diff --git a/src/main/java/com/meishu/service/impl/AccessTokenServiceImpl.java b/src/main/java/com/meishu/service/impl/AccessTokenServiceImpl.java deleted file mode 100644 index fe0c34f..0000000 --- a/src/main/java/com/meishu/service/impl/AccessTokenServiceImpl.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.token.GetAllStudentsDTO; -import com.meishu.dto.token.GetAllTeachersDTO; -import com.meishu.mapper.AdministerMapper; -import com.meishu.mapper.UuidHistoryMapper; -import com.meishu.model.AccessTokenDO; -import com.meishu.mapper.AccessTokenMapper; -import com.meishu.model.AdministerDO; -import com.meishu.model.UserRoleDO; -import com.meishu.model.UuidHistoryDO; -import com.meishu.service.AccessTokenService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.SecretUtils; -import com.meishu.vo.accesstoken.GetAllStudentsVO; -import com.meishu.vo.accesstoken.GetAllTeachersVO; -import com.meishu.vo.administer.GetTeacherSubjectVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - *

- * 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-10 - */ -@Service -public class AccessTokenServiceImpl extends ServiceImpl implements AccessTokenService { - - @Autowired - private AdministerMapper administerMapper; - - @Autowired - private UuidHistoryMapper uuidHistoryMapper; - - public List getAllTeachers(GetAllTeachersDTO getAllTeachersDTO){ - - int count = uuidHistoryMapper.selectCount(new QueryWrapper() - .lambda() - .eq(UuidHistoryDO::getUuid,getAllTeachersDTO.getUuid())); - - if (count>0){ - throw new HttpException(80001); - } - - String uuidSec = SecretUtils.hash(getAllTeachersDTO.getUuid()+"ixihs"); - if (!uuidSec.equals(getAllTeachersDTO.getUuidSecret())){ - throw new HttpException(80002); - } - - //查找所有老师 - List administerDOS = this.baseMapper.getAllTeachers(getAllTeachersDTO); - administerDOS.stream().forEach(x->{ - List getTeacherSubjectVOS = administerMapper.getTeacherSubject(x.getId()); - x.setSubjectDictDOS(getTeacherSubjectVOS); - }); - UuidHistoryDO uuidHistoryDO = new UuidHistoryDO(); - uuidHistoryDO.setUuid(getAllTeachersDTO.getUuid()); - uuidHistoryMapper.insert(uuidHistoryDO); - return administerDOS; - } - - public List getAllStudents(GetAllStudentsDTO getAllStudentsDTO){ - int count = uuidHistoryMapper.selectCount(new QueryWrapper() - .lambda() - .eq(UuidHistoryDO::getUuid,getAllStudentsDTO.getUuid())); - - if (count>0){ - throw new HttpException(80001); - } - - String uuidSec = SecretUtils.hash(getAllStudentsDTO.getUuid()+"ixihs"); - if (!uuidSec.equals(getAllStudentsDTO.getUuidSecret())){ - throw new HttpException(80002); - } - UuidHistoryDO uuidHistoryDO = new UuidHistoryDO(); - uuidHistoryDO.setUuid(getAllStudentsDTO.getUuid()); - uuidHistoryMapper.insert(uuidHistoryDO); - return this.baseMapper.getAllStudents(getAllStudentsDTO); - } - - -} diff --git a/src/main/java/com/meishu/service/impl/AdministerDepartmentMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/AdministerDepartmentMappingServiceImpl.java deleted file mode 100644 index 6c8d30a..0000000 --- a/src/main/java/com/meishu/service/impl/AdministerDepartmentMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.AdministerDepartmentMappingDO; -import com.meishu.mapper.AdministerDepartmentMappingMapper; -import com.meishu.service.AdministerDepartmentMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 老师部门映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -@Service -public class AdministerDepartmentMappingServiceImpl extends ServiceImpl implements AdministerDepartmentMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/AdministerPermissionServiceImpl.java b/src/main/java/com/meishu/service/impl/AdministerPermissionServiceImpl.java deleted file mode 100644 index a49c212..0000000 --- a/src/main/java/com/meishu/service/impl/AdministerPermissionServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.AdministerPermissionDO; -import com.meishu.mapper.AdministerPermissionMapper; -import com.meishu.service.AdministerPermissionService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 系统用户角色表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Service -public class AdministerPermissionServiceImpl extends ServiceImpl implements AdministerPermissionService { - -} diff --git a/src/main/java/com/meishu/service/impl/AdministerServiceImpl.java b/src/main/java/com/meishu/service/impl/AdministerServiceImpl.java deleted file mode 100644 index 2b5a112..0000000 --- a/src/main/java/com/meishu/service/impl/AdministerServiceImpl.java +++ /dev/null @@ -1,352 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.administer.*; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.AdministerService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.*; -import com.meishu.vo.administer.AdministerPermissionVO; -import com.meishu.vo.administer.LoginVO; -import com.meishu.vo.administer.PermissionsVO; -import com.meishu.vo.wechat.AccessTokenVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpMethod; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.util.StringUtils; - -import java.text.SimpleDateFormat; -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; -import java.util.List; - -/** - *

- * 中心管理账户表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Service -public class AdministerServiceImpl extends ServiceImpl implements AdministerService { - - @Autowired - private SmsCodeMapper smsCodeMapper; - - @Autowired - private AdministerPermissionMapper administerPermissionMapper; - - @Autowired - private PermissionsDictMapper permissionsDictMapper; - - @Autowired - private AdministerDepartmentMappingMapper administerDepartmentMappingMapper; - - @Autowired - private AdministerSubjectMappingMapper administerSubjectMappingMapper; - - @Autowired - private RoleAdministerMappingMapper roleAdministerMappingMapper; - - @Autowired - private SubjectTreeMapper subjectTreeMapper; - - @Autowired - private SubjectDictMapper subjectDictMapper; - - @Autowired - private ClassesDictMapper classesDictMapper; - - public String sendMsg(AdministerDO administerDO){ - - - //验证是否是白名单用户 - Integer count = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(AdministerDO::getTelephone, administerDO.getTelephone())); - if (count == 0) { - throw new HttpException(10011); - } - - String verifyCode = RandomUtil.getRandomCode(6); - String param = "{ \"code\":\"" + verifyCode + "\"}"; - - //插入短信验证码 - smsCodeMapper.delete(new QueryWrapper() - .lambda() - .eq(SmsCodeDO::getTelephone,administerDO.getTelephone())); - - SmsCodeDO smsCodeDO = new SmsCodeDO(); - smsCodeDO.setTelephone(administerDO.getTelephone()); - smsCodeDO.setCode(verifyCode); - smsCodeDO.setCreateDate(LocalDateTime.now()); - smsCodeMapper.insert(smsCodeDO); - return SMSUtils.sendVerifySMS(ConstantUtils.TEMPLATE_CODE, smsCodeDO.getTelephone(), param); - - } - - public LoginVO login(SmsCodeDO smsCodeDO){ - - LoginVO loginVO = new LoginVO(); - Integer count = smsCodeMapper.selectCount(new QueryWrapper() - .lambda() - .eq(SmsCodeDO::getTelephone, smsCodeDO.getTelephone()) - .eq(SmsCodeDO::getCode, smsCodeDO.getCode()) - .gt(SmsCodeDO::getCreateDate, LocalDateTime.now().minusMinutes(10L)) - ); - - List admin = Arrays.asList("18111111111","18122222222","18133333333","18144444444","18155555555","18166666666","18177777777","18188888888","18199999999","18100000000"); - if (admin.contains(smsCodeDO.getTelephone())){ - if ("123456".equals(smsCodeDO.getCode())){ - AdministerDO administerDO = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(AdministerDO::getTelephone, smsCodeDO.getTelephone())); - if (administerDO == null) { - throw new HttpException(10013); - } - String token = JwtUtil.generateToken(administerDO.getId(), ConstantUtils.ADMINISTER_TERMINATE); - loginVO.setToken(token); - return loginVO; - }else { - throw new HttpException(10003); - } - } - - if (count > 0) { - AdministerDO administerDO = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(AdministerDO::getTelephone, smsCodeDO.getTelephone())); - if (administerDO == null) { - throw new HttpException(10013); - } - - String token = JwtUtil.generateToken(administerDO.getId(), ConstantUtils.ADMINISTER_TERMINATE); - loginVO.setToken(token); - return loginVO; - } else { - throw new HttpException(10003); - } - } - - public LoginVO passwordLogin(AdministerDO administerDO){ - - LoginVO loginVO = new LoginVO(); - AdministerDO administerDO1 = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(AdministerDO::getTelephone, administerDO.getTelephone()) - .eq(AdministerDO::getPassword,administerDO.getPassword())); - if (administerDO1 == null) { - throw new HttpException(10004); - } - - String token = JwtUtil.generateToken(administerDO1.getId(), ConstantUtils.ADMINISTER_TERMINATE); - loginVO.setToken(token); - return loginVO; - - } - - public AdministerPermissionVO getPermissions() { - - AdministerPermissionVO administerPermissionVO = new AdministerPermissionVO(); - AdministerDO administerDO = (AdministerDO) Localstorage.getUser(); -// AdministerDO administerDO = this.baseMapper.selectById(41); - if (administerDO == null) { - throw new HttpException(10012); - } - BeanUtils.copyProperties(administerDO, administerPermissionVO); - - //判断是否是超级管理员 - List roleAdministerMappingDOS = roleAdministerMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(RoleAdministerMappingDO::getAdministerId,administerDO.getId())); - - Boolean flag = false; - - for (RoleAdministerMappingDO roleAdministerMappingDO : roleAdministerMappingDOS){ - if (roleAdministerMappingDO.getRoleId()==1L){ - flag = true; - } - } - administerPermissionVO.setIsRole(flag); - List list = administerPermissionMapper.getPermissions(administerDO.getId()); - List treeList = new ArrayList(); - if (list != null) { - list.forEach(permission -> { - if (permission.getParentId() == null) { - treeList.add(permission); - } - - list.forEach(p -> { - if (null != p.getParentId() && p.getParentId().equals(permission.getId())) { - if (permission.getChildren() == null) { - permission.setChildren(new ArrayList<>()); - } - permission.getChildren().add(p); - } - }); - }); - } - administerPermissionVO.setPermissions(treeList); - return administerPermissionVO; - } - - public List getParentPermission(){ - return permissionsDictMapper.selectList(new QueryWrapper() - .lambda() - .isNull(PermissionsDictDO::getParentId)); - } - - @Transactional(rollbackFor = Exception.class) - public String addAdminister(AddAdministerDTO addAdministerDTO){ - - //老师手机号不能重复 - Integer count = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(AdministerDO::getTelephone,addAdministerDTO.getTelephone())); - - if (count>0){ - throw new HttpException(60001); - } - - AdministerDO administerDO = new AdministerDO(); - BeanUtils.copyProperties(addAdministerDTO,administerDO); - administerDO.setStatus("1"); - this.baseMapper.insert(administerDO); - -// //多个校区 -// List campusIds = addAdministerDTO.getCampusIds(); -// for (Long lg : campusIds){ -// CampusAdministerMappingDO campusAdministerMappingDO = new CampusAdministerMappingDO(); -// campusAdministerMappingDO.setAdministerId(administerDO.getId()); -// campusAdministerMappingDO.setCampusId(lg); -// campusAdministerMappingMapper.insert(campusAdministerMappingDO); -// } - - //多个部门 - List departmentIds = addAdministerDTO.getDepartmentIds(); - for (Long lg : departmentIds){ - AdministerDepartmentMappingDO administerDepartmentMappingDO = new AdministerDepartmentMappingDO(); - administerDepartmentMappingDO.setAdministerId(administerDO.getId()); - administerDepartmentMappingDO.setDepartmentId(lg); - administerDepartmentMappingMapper.insert(administerDepartmentMappingDO); - } - - //多个科目 - List subjectIds = addAdministerDTO.getSubjectIds(); - for (Long lg : subjectIds){ - AdministerSubjectMappingDO administerSubjectMappingDO = new AdministerSubjectMappingDO(); - administerSubjectMappingDO.setAdministerId(administerDO.getId()); - administerSubjectMappingDO.setSubjectId(lg); - administerSubjectMappingMapper.insert(administerSubjectMappingDO); - } - - //角色 - List roleIds = addAdministerDTO.getRoleIds(); - for (Long lg : roleIds){ - RoleAdministerMappingDO roleAdministerMappingDO = new RoleAdministerMappingDO(); - roleAdministerMappingDO.setAdministerId(administerDO.getId()); - roleAdministerMappingDO.setRoleId(lg); - roleAdministerMappingMapper.insert(roleAdministerMappingDO); - } - - return ConstantUtils.ADD_SUCCESS; - } - - public List getPermissionTree(){ - List list = permissionsDictMapper.selectList(null); - List treeList = new ArrayList(); - if (list != null) { - list.forEach(permission -> { - if (permission.getParentId() == null) { - treeList.add(permission); - } - - list.forEach(p -> { - if (null != p.getParentId() && p.getParentId().equals(permission.getId())) { - if (permission.getChildren() == null) { - permission.setChildren(new ArrayList<>()); - } - permission.getChildren().add(p); - } - }); - }); - } - return treeList; - } - - public String changeStatus(ChangeStatusDTO changeStatusDTO){ - AdministerDO administerDO = new AdministerDO(); - administerDO.setStatus(changeStatusDTO.getStatus()); - this.baseMapper.update(administerDO,new QueryWrapper() - .lambda() - .in(AdministerDO::getId,changeStatusDTO.getIds())); -// this.baseMapper.updateById(administerDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - @Transactional(rollbackFor = Exception.class) - public String updateAdminister(UpdateAdministerDTO updateAdministerDTO){ - - AdministerDO administerDO = new AdministerDO(); - BeanUtils.copyProperties(updateAdministerDTO,administerDO); - this.baseMapper.updateById(administerDO); - - if (null!=updateAdministerDTO.getDepartmentIds()){ - administerDepartmentMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(AdministerDepartmentMappingDO::getAdministerId,updateAdministerDTO.getId())); - - List departmentIds = updateAdministerDTO.getDepartmentIds(); - for (Long lg : departmentIds){ - AdministerDepartmentMappingDO administerDepartmentMappingDO = new AdministerDepartmentMappingDO(); - administerDepartmentMappingDO.setDepartmentId(lg); - administerDepartmentMappingDO.setAdministerId(updateAdministerDTO.getId()); - administerDepartmentMappingMapper.insert(administerDepartmentMappingDO); - } - } - - if (null!=updateAdministerDTO.getSubjectIds()){ - - administerSubjectMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(AdministerSubjectMappingDO::getAdministerId,updateAdministerDTO.getId())); - //多个科目 - List subjectIds = updateAdministerDTO.getSubjectIds(); - for (Long lg : subjectIds){ - AdministerSubjectMappingDO administerSubjectMappingDO = new AdministerSubjectMappingDO(); - administerSubjectMappingDO.setAdministerId(administerDO.getId()); - administerSubjectMappingDO.setSubjectId(lg); - administerSubjectMappingMapper.insert(administerSubjectMappingDO); - } - } - - if (null!=updateAdministerDTO.getRoleIds()){ - roleAdministerMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(RoleAdministerMappingDO::getAdministerId,updateAdministerDTO.getId())); - List roleIds = updateAdministerDTO.getRoleIds(); - for (Long lg : roleIds){ - RoleAdministerMappingDO roleAdministerMappingDO = new RoleAdministerMappingDO(); - roleAdministerMappingDO.setAdministerId(updateAdministerDTO.getId()); - roleAdministerMappingDO.setRoleId(lg); - roleAdministerMappingMapper.insert(roleAdministerMappingDO); - } - - } - return ConstantUtils.SUCCESS_UPDATE; - } - - public List getAllAdminister(){ - return this.baseMapper.selectList(null); - } - - -} diff --git a/src/main/java/com/meishu/service/impl/AdministerSubjectMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/AdministerSubjectMappingServiceImpl.java deleted file mode 100644 index e2f2f63..0000000 --- a/src/main/java/com/meishu/service/impl/AdministerSubjectMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.AdministerSubjectMappingDO; -import com.meishu.mapper.AdministerSubjectMappingMapper; -import com.meishu.service.AdministerSubjectMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 老师科目映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-07-01 - */ -@Service -public class AdministerSubjectMappingServiceImpl extends ServiceImpl implements AdministerSubjectMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/AnsweringQuestionServiceImpl.java b/src/main/java/com/meishu/service/impl/AnsweringQuestionServiceImpl.java deleted file mode 100644 index 3b7b803..0000000 --- a/src/main/java/com/meishu/service/impl/AnsweringQuestionServiceImpl.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.question.QueryQuestionsDTO; -import com.meishu.mapper.SubjectDictMapper; -import com.meishu.mapper.UserRoleMapper; -import com.meishu.mapper.UserSubjectPermissionDictMapper; -import com.meishu.model.AnsweringQuestionDO; -import com.meishu.mapper.AnsweringQuestionMapper; -import com.meishu.model.SubjectDictDO; -import com.meishu.model.UserRoleDO; -import com.meishu.model.UserSubjectPermissionDictDO; -import com.meishu.service.AnsweringQuestionService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.question.GetClassQuestionsVO; -import com.meishu.vo.question.QueryOneQuestionVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; -import java.util.Queue; - -/** - *

- * 问题答疑表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@Service -public class AnsweringQuestionServiceImpl extends ServiceImpl implements AnsweringQuestionService { - - @Autowired - private UserRoleMapper userRoleMapper; - - @Autowired - private SubjectDictMapper subjectDictMapper; - - @Autowired - private UserSubjectPermissionDictMapper userSubjectPermissionDictMapper; - - public IPage queryQuestions(QueryQuestionsDTO queryQuestionsDTO){ - Page pager = new Page(queryQuestionsDTO.getPageNum(), queryQuestionsDTO.getPageSize()); - return this.baseMapper.queryQuestions(pager,queryQuestionsDTO.getSubjectId(),queryQuestionsDTO.getStartDate(),queryQuestionsDTO.getEndDate(),queryQuestionsDTO.getUserName()); - } - - public String deleteQuestion(AnsweringQuestionDO answeringQuestionDO){ - this.baseMapper.deleteById(answeringQuestionDO.getId()); - return ConstantUtils.DELETE_SUCCESS; - } - - public QueryOneQuestionVO queryOneQuestion(AnsweringQuestionDO answeringQuestionDO){ - - QueryOneQuestionVO queryOneQuestionVO = new QueryOneQuestionVO(); - - AnsweringQuestionDO answeringQuestionDO1 = this.baseMapper.selectById(answeringQuestionDO.getId()); - BeanUtils.copyProperties(answeringQuestionDO1,queryOneQuestionVO); - - UserRoleDO userRoleDO = userRoleMapper.selectById(answeringQuestionDO1.getAskId()); - queryOneQuestionVO.setUserName(userRoleDO.getUserName()); - - return queryOneQuestionVO; - } - - public List getClassQuestions(UserSubjectPermissionDictDO userSubjectPermissionDictDO){ - - List userSubjectPermissionDictDOS = userSubjectPermissionDictMapper.getSubjects(userSubjectPermissionDictDO.getUserId()); - - List getClassQuestionsVOS = new ArrayList<>(); - userSubjectPermissionDictDOS.stream().forEach(x->{ - GetClassQuestionsVO getClassQuestionsVO = new GetClassQuestionsVO(); - - BeanUtils.copyProperties(x,getClassQuestionsVO); - - Integer count = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .isNull(AnsweringQuestionDO::getAnswer)); - getClassQuestionsVO.setCount(count); - - getClassQuestionsVOS.add(getClassQuestionsVO); - - }); - - return getClassQuestionsVOS; - } - - public String addQuestion(AnsweringQuestionDO answeringQuestionDO){ - this.baseMapper.insert(answeringQuestionDO); - return ConstantUtils.ADD_SUCCESS; - } - - public String answerQuestion(AnsweringQuestionDO answeringQuestionDO){ - this.baseMapper.updateById(answeringQuestionDO); - return ConstantUtils.SUCCESS_UPDATE; - } - -} diff --git a/src/main/java/com/meishu/service/impl/ClassSubjectTaskServiceImpl.java b/src/main/java/com/meishu/service/impl/ClassSubjectTaskServiceImpl.java deleted file mode 100644 index 7ce3529..0000000 --- a/src/main/java/com/meishu/service/impl/ClassSubjectTaskServiceImpl.java +++ /dev/null @@ -1,1280 +0,0 @@ -package com.meishu.service.impl; - -import com.alibaba.fastjson.JSON; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.common.configure.RestTemplateConfig; -import com.meishu.common.configure.WechatConfig; -import com.meishu.common.constant.Code; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.administer.PublishExpandingVO; -import com.meishu.dto.administer.PublishHomeworkVO; -import com.meishu.dto.administer.PublishTasksDTO; -import com.meishu.dto.administer.PushMsgPO; -import com.meishu.dto.exercise.GetExerciseRequestDTO; -import com.meishu.dto.task.*; -import com.meishu.dto.wechat.PushMsgVO; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.ClassSubjectTaskService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.util.MathUtil; -import com.meishu.vo.PerStudentComplicationVO; -import com.meishu.vo.administer.GetClassesDetailResponseVO; -import com.meishu.vo.exercise.GetExerciseDetailResponseVO; -import com.meishu.vo.task.*; -import com.meishu.vo.wechat.AccessTokenVO; -import org.apache.commons.lang.text.StrBuilder; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpEntity; -import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpMethod; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; - -import java.math.BigDecimal; -import java.math.RoundingMode; -import java.net.URLDecoder; -import java.text.SimpleDateFormat; -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; -import java.util.*; -import java.util.stream.Stream; - -/** - *

- * 学习任务列表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Service -public class ClassSubjectTaskServiceImpl extends ServiceImpl implements ClassSubjectTaskService { - - @Autowired - private SubjectTreeMapper subjectTreeMapper; - - @Autowired - private SubjectDictMapper subjectDictMapper; - - @Autowired - private ClassesDictMapper classesDictMapper; - - @Autowired - private TaskContentMapper taskContentMapper; - - @Autowired - private WrittenHomeworkMapper writtenHomeworkMapper; - - @Autowired - private ExerciseExpandMappingMapper exerciseExpandMappingMapper; - - @Autowired - private ClassSubjectTaskMapper classSubjectTaskMapper; - - @Autowired - private AdministerMapper administerMapper; - - @Autowired - private UserRoleMapper userRoleMapper; - - @Autowired - private WechatConfig wechatConfig; - - @Autowired - private RestTemplateConfig restTemplateConfig; - - @Autowired - private TaskDoneHistoryMapper taskDoneHistoryMapper; - - @Autowired - private ClassesUserMappingMapper classesUserMappingMapper; - - @Autowired - private VodDictMapper vodDictMapper; - - @Autowired - private ExerciseDictMapper exerciseDictMapper; - - @Autowired - private ExerciseTreeMappingMapper exerciseTreeMappingMapper; - - @Autowired - private TaskCompletionStatusMapper taskCompletionStatusMapper; - - @Autowired - private VodPlayHistoryMapper vodPlayHistoryMapper; - - @Autowired - private ExerciseDoneHistoryMapper exerciseDoneHistoryMapper; - - @Autowired - private ExerciseUserInfoMapper exerciseUserInfoMapper; - - @Autowired - private KnowledgeSubjectDictMapper knowledgeSubjectDictMapper; - - @Autowired - private ExerciseRelatedMappingMapper exerciseRelatedMappingMapper; - - @Autowired - private TaskContentDoneInfoMapper taskContentDoneInfoMapper; - - public String code(String telephone) { - - SimpleDateFormat sj1 = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); - String current = sj1.format(new Date()); - String[] arrTemp = current.split(" "); - - String[] timeArr = arrTemp[1].split(":"); - Integer first = Integer.valueOf(timeArr[1].substring(0, 1)); - Integer second = Integer.valueOf(timeArr[0].substring(0, 1)); - Integer third = Integer.valueOf(timeArr[0].substring(1)); - Integer fourth = Integer.valueOf(timeArr[1].substring(1)); - return telephone.charAt(first) + "->" + telephone.charAt(second) + "->" + telephone.charAt(third) + "->" + telephone.charAt(fourth); - - } - - public List getTeacherClass(GetClassesRequestVO getClassesRequestVO) { - - List getTeacherClassVOS = new ArrayList<>(); - - HashMap> hashMap = new HashMap<>(); - - List getClassesDetailResponseVOS = null; - - List getClassesDetailResponseVOS1 = administerMapper.getClasses(getClassesRequestVO); - for (GetClassesDetailResponseVO gcr : getClassesDetailResponseVOS1) { - GetClassesDetailResponseVO getClassesDetailResponseVO = new GetClassesDetailResponseVO(); - if (!hashMap.containsKey(gcr.getSubject())) { - getClassesDetailResponseVOS = new ArrayList<>(); - BeanUtils.copyProperties(gcr, getClassesDetailResponseVO); - getClassesDetailResponseVOS.add(getClassesDetailResponseVO); - hashMap.put(gcr.getSubject(), getClassesDetailResponseVOS); - } else { - BeanUtils.copyProperties(gcr, getClassesDetailResponseVO); - hashMap.get(gcr.getSubject()).add(getClassesDetailResponseVO); - } - } - - for (String key : hashMap.keySet()) { - TeacherClassVO getTeachersVO = new TeacherClassVO(); - getTeachersVO.setSubject(key); - KnowledgeSubjectDictDO knowledgeSubjectDict = knowledgeSubjectDictMapper.selectOne(new QueryWrapper() - .lambda() - .eq(KnowledgeSubjectDictDO::getSubjectName, key)); - getTeachersVO.setSubjectId(knowledgeSubjectDict.getId()); - getTeachersVO.setGetClassesDetailResponseVOS(hashMap.get(key)); - getTeacherClassVOS.add(getTeachersVO); - } - - return getTeacherClassVOS; - } - - public String publishTasks(PublishTasksDTO publishTasksDTO) { - - //保存任务信息 - ClassSubjectTaskDO classSubjectTask = new ClassSubjectTaskDO(); - PushMsgPO pushMsgPO = new PushMsgPO(); - - if (null == publishTasksDTO.getTaskDate()) { - classSubjectTask.setTaskDate(new Date()); - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - String dateStr = simpleDateFormat.format(new Date()); - pushMsgPO.setDateTime(dateStr); - } else { - classSubjectTask.setTaskDate(publishTasksDTO.getTaskDate()); - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - String dateStr = simpleDateFormat.format(publishTasksDTO.getTaskDate()); - pushMsgPO.setDateTime(dateStr); - } - classSubjectTask.setTreeId(publishTasksDTO.getTreeIds()); - classSubjectTask.setTaskType(publishTasksDTO.getTaskType()); - classSubjectTask.setTeacherId(publishTasksDTO.getUserId()); - classSubjectTask.setCreateDate(new Date()); - classSubjectTask.setUpdateDate(new Date()); - List subjectIds = publishTasksDTO.getSubjectIds(); - for (String subjectId : subjectIds) { - classSubjectTask.setSubjectId(Integer.valueOf(subjectId)); - if (StringUtils.isEmpty(publishTasksDTO.getTreeName())) { - String treeName = this.labels(publishTasksDTO.getTreeIds()); - classSubjectTask.setTreeName(treeName); - pushMsgPO.setTaskName(treeName); - } else { - classSubjectTask.setTreeName(publishTasksDTO.getTreeName()); - pushMsgPO.setTaskName(publishTasksDTO.getTreeName()); - } - SubjectDictDO subjectDict = subjectDictMapper.selectById(subjectId); - - //学期信息录入 - classSubjectTask.setGrade(subjectDict.getGrade()); - classSubjectTask.setClasses(subjectDict.getClasses()); - classSubjectTask.setSession(subjectDict.getSession()); - - ClassesDictDO classesDictTmp = classesDictMapper.selectOne(new QueryWrapper() - .lambda() - .eq(ClassesDictDO::getGrade, subjectDict.getGrade()) - .eq(ClassesDictDO::getClasses, subjectDict.getClasses()) - .eq(ClassesDictDO::getSession, subjectDict.getSession())); - - classSubjectTask.setClassId(classesDictTmp.getId()); - this.baseMapper.insert(classSubjectTask); - addTaskContents(publishTasksDTO, classSubjectTask.getId(),classesDictTmp.getId(),classSubjectTask.getTreeName()); - - //立即发布的作业需要微信提醒,延时发布的作业定时任务通知 - //找到发布对象 - - List exerciseExpandMappings = exerciseExpandMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(ExerciseExpandMappingDO::getTaskId, classSubjectTask.getId())); - List strings = new ArrayList<>(); - - AdministerDO administerDO = administerMapper.selectById(publishTasksDTO.getUserId()); - - List users1 = new ArrayList<>(); - if (classSubjectTask.getTaskType() == 2 && exerciseExpandMappings.size() > 0) { - pushMsgPO.setTaskName(exerciseExpandMappings.get(0).getExerciseName()); - strings = Arrays.asList(exerciseExpandMappings.get(0).getStudentIds().split(",")); - users1 = userRoleMapper.selectBatchIds(strings); - - } else { - ClassesDictDO classesDict = classesDictMapper.selectOne(new QueryWrapper() - .lambda() - .eq(ClassesDictDO::getGrade, subjectDict.getGrade()) - .eq(ClassesDictDO::getClasses, subjectDict.getClasses()) - .eq(ClassesDictDO::getSession, subjectDict.getSession())); - users1 = userRoleMapper.findOpenIdByClassId(classesDict.getId()); - } - - pushMsgPO.setTitle("你有新任务,请注意查收"); - pushMsgPO.setSchool(subjectDict.getSchool()); - pushMsgPO.setTeacherName(administerDO.getUserName()); - - String url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" + wechatConfig.getAppId() + "&secret=" + wechatConfig.getAppSecret(); - ResponseEntity response = restTemplateConfig.restTemplate() - .exchange(url, HttpMethod.GET, null, AccessTokenVO.class); - - String token = response.getBody().getAccess_token(); -// pushMsgPO.setRemark("这是一个备注"); //备注 - for (UserRoleDO user : users1) { - pushMsgPO.setOpenId(user.getOpenId()); - pushMsg(pushMsgPO, token); - } - } - return ConstantUtils.SUCCESS_SEND_OUT; - } - - public IPage getTaskById(GetTaskByIdRequestDTO getTaskByIdRequestDTO) { - - Page pager = new Page(getTaskByIdRequestDTO.getPageNum(), getTaskByIdRequestDTO.getPageSize()); - - //已经发布的任务 - getTaskByIdRequestDTO.setCurrentDate(new Date()); - - SubjectDictDO subjectDict = subjectDictMapper.selectById(getTaskByIdRequestDTO.getSubjectId()); - - //找到科目所在班级 - ClassesDictDO classesDict = classesDictMapper.selectOne(new QueryWrapper() - .lambda() - .eq(ClassesDictDO::getClasses, subjectDict.getClasses()) - .eq(ClassesDictDO::getGrade, subjectDict.getGrade()) - .eq(ClassesDictDO::getSession, subjectDict.getSession()) - .eq(ClassesDictDO::getStatus, "在读")); - - if (null != classesDict) { - getTaskByIdRequestDTO.setClassId(classesDict.getId()); - } - - IPage classSubjectTasks = classSubjectTaskMapper.queryAlreadyTasks(pager, getTaskByIdRequestDTO.getClassId(), getTaskByIdRequestDTO.getSubjectId(), getTaskByIdRequestDTO.getStartDate(), getTaskByIdRequestDTO.getEndDate(), getTaskByIdRequestDTO.getTaskType()); - - List getTaskByIdVOS = classSubjectTasks.getRecords(); - getTaskByIdVOS.stream().forEach(x->{ - List ids = Arrays.asList(x.getTreeId().split(",")); - List subjectTreeDOS = subjectTreeMapper.selectBatchIds(ids); - x.setSubjectTreeDOS(subjectTreeDOS); - List knowledge = new ArrayList<>(); - for (SubjectTreeDO subjectTreeDO : subjectTreeDOS){ - knowledge.add(subjectTreeDO.getTreeName()); - } - x.setKnowledges(knowledge); - }); - - return classSubjectTasks; - } - - public String deletePreTasks(ClassSubjectTaskDO classSubjectTask) { - - //class_subject_task - classSubjectTaskMapper.deleteById(classSubjectTask.getId()); - - //task_content 微视频,关联习题,书面作业 - QueryWrapper queryWrapper = new QueryWrapper(); - queryWrapper.eq("task_id", classSubjectTask.getId()); - taskContentMapper.delete(queryWrapper); - - //拓展习题 - exerciseExpandMappingMapper.delete(queryWrapper); - - //学生完成该任务的记录 - taskDoneHistoryMapper.delete(new QueryWrapper() - .lambda() - .eq(TaskDoneHistoryDO::getTaskId, classSubjectTask.getId())); - - return ConstantUtils.DELETE_SUCCESS; - } - - public QueryTaskDetailResponseVO queryTaskDetail(QueryTaskDetailDTO queryTaskDetailRequestVO) { - - QueryTaskDetailResponseVO queryTaskDetailResponseVO = new QueryTaskDetailResponseVO(); - - //作业内容 - ClassSubjectTaskDO classSubjectTask = classSubjectTaskMapper.selectById(queryTaskDetailRequestVO.getId()); - queryTaskDetailResponseVO.setTreeName(classSubjectTask.getTreeName()); - - - //查看班级 - int total = classesUserMappingMapper.selectCount(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getClassesId, classSubjectTask.getClassId())); - - GetPreTaskContentVO getPreTaskContentVO = getTaskContents(classSubjectTask); - queryTaskDetailResponseVO.setGetPreTaskContentVO(getPreTaskContentVO); - - //headers - queryTaskDetailResponseVO.setTaskType(classSubjectTask.getTaskType()); - UserRoleDO userRole = userRoleMapper.selectById(classSubjectTask.getTeacherId()); - queryTaskDetailResponseVO.setUserName(userRole != null ? userRole.getUserName() : null); - List strings = new ArrayList<>(); - strings.add(classSubjectTask.getTreeName()); - queryTaskDetailResponseVO.setKnowledges(strings); - - //完成度 - List exerciseDoneInfoVOS = new ArrayList<>(); - - //获取关联习题 完成度 - List preRelateExeVOS = getPreTaskContentVO.getPreRelateExeVOS(); - if (null != preRelateExeVOS && preRelateExeVOS.size() > 0) { - for (PreRelateExeVO preRelateExeVO : preRelateExeVOS) { - ExerciseDoneInfoVO exerciseDoneInfoVO = new ExerciseDoneInfoVO(); - QueryWrapper queryWrapper = new QueryWrapper(); - queryWrapper.eq("tree_id", preRelateExeVO.getTreeId()); - queryWrapper.eq("exe_type", 0); - queryWrapper.eq("subject_task_id", queryTaskDetailRequestVO.getId()); - - Integer counts = taskCompletionStatusMapper.selectCount(queryWrapper); - exerciseDoneInfoVO.setRights(counts); - exerciseDoneInfoVO.setTotal(total); // 班级人数 - exerciseDoneInfoVO.setLabel(preRelateExeVO.getTreeName()); - exerciseDoneInfoVOS.add(exerciseDoneInfoVO); - } - } - //获取拓展习题 完成度 - for (PreExpandExerciseVO preExpandExerciseVO : getPreTaskContentVO.getPreExpandExerciseVOS()) { - ExerciseDoneInfoVO exerciseDoneInfoVO = new ExerciseDoneInfoVO(); - exerciseDoneInfoVO.setTotal(preExpandExerciseVO.getStudentCounts()); - exerciseDoneInfoVO.setLabel(preExpandExerciseVO.getExpandExerciseNames()); - QueryWrapper queryWrapper = new QueryWrapper(); - queryWrapper.eq("tree_id", preExpandExerciseVO.getTreeId()); - queryWrapper.eq("exe_type", 1); - queryWrapper.eq("subject_task_id", queryTaskDetailRequestVO.getId()); - queryWrapper.eq("status", ConstantUtils.ALREADY_DONE); - Integer counts = taskCompletionStatusMapper.selectCount(queryWrapper); - exerciseDoneInfoVO.setRights(counts); - exerciseDoneInfoVOS.add(exerciseDoneInfoVO); - } - queryTaskDetailResponseVO.setExerciseDoneInfoVOS(exerciseDoneInfoVOS); - return queryTaskDetailResponseVO; - } - - public List getRelativeExercises(GetExerciseRequestDTO getExerciseRequestVO) { - - List getExerciseDetailResponseVOS = exerciseDictMapper.getRelativeExercises(getExerciseRequestVO); - for (GetExerciseDetailResponseVO getExerciseDetailResponseVO : getExerciseDetailResponseVOS) { - getExerciseDetailResponseVO.setLengthSecond(getExerciseDetailResponseVO.getAdviceLength()); - getExerciseDetailResponseVO.setLength(MathUtil.exerciseLength(getExerciseDetailResponseVO.getAdviceLength())); - } - return getExerciseDetailResponseVOS; - } - - public List perStudentVod(GetUserVodPlayDTO getUserVodPlayPO) { - //查看任务时间 - ClassSubjectTaskDO classSubjectTaskDO = classSubjectTaskMapper.selectById(getUserVodPlayPO.getTaskId()); - getUserVodPlayPO.setClassesId(classSubjectTaskDO.getClassId()); - List perStudentComplicationVOS = vodPlayHistoryMapper.getCurrentUserVodPlayVO(getUserVodPlayPO); - return perStudentComplicationVOS; - } - - public PerStudentExesResponseVO perStudentRelateExes(PerStudentExesDTO perStudentExesRequestVO) { - - PerStudentExesResponseVO perStudentExesResponseVO = new PerStudentExesResponseVO(); - ClassSubjectTaskDO classSubjectTask = classSubjectTaskMapper.selectById(perStudentExesRequestVO.getTaskId()); - //查看班级人数 - Integer total = getClassStuCounts(classSubjectTask.getClassId()); - perStudentExesResponseVO.setTotalCount(total); - - //查看已提交的人数 - Integer submitCounts = taskCompletionStatusMapper.selectCount(new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getSubjectTaskId, perStudentExesRequestVO.getTaskId()) - .eq(TaskCompletionStatusDO::getExeType, 0) - .eq(TaskCompletionStatusDO::getTreeId, perStudentExesRequestVO.getTreeId())); - - //查看该任务下,知识点一共有多少关联习题 - ExerciseRelatedMappingDO exerciseRelatedMappingDO = exerciseRelatedMappingMapper.selectById(perStudentExesRequestVO.getTreeId()); - - Integer relateCounts = exerciseRelatedMappingDO.getExerciseIds().split(",").length; - - List pser = new ArrayList<>(); - int totalLength = 0; - int rights = 0; - //查看学生完成度+名字 - List perStuExeDoneResponseVOS = exerciseDoneHistoryMapper.perStudentRelateExes(perStudentExesRequestVO); - //封装结果 - for (PerStuExeDoneResponseVO perStuExeDoneResponseVO : perStuExeDoneResponseVOS) { - totalLength += perStuExeDoneResponseVO.getLength(); - rights += perStuExeDoneResponseVO.getRightCounts(); - pser.add(perStuExeDoneResponseVO); - } - perStudentExesResponseVO.setPerStuExeDoneResponseVOS(pser); - - //平均用时 - if (submitCounts != 0) { - BigDecimal bigDecimal = new BigDecimal(totalLength).divide(new BigDecimal(submitCounts), RoundingMode.CEILING); - BigDecimal bigDecimal1 = new BigDecimal(rights).multiply(new BigDecimal(100)).divide((new BigDecimal(submitCounts).multiply(new BigDecimal(relateCounts))), RoundingMode.CEILING); - perStudentExesResponseVO.setAvgUseTimes(bigDecimal); - perStudentExesResponseVO.setRightPercent(bigDecimal1); - } - - perStudentExesResponseVO.setSubmitCount(submitCounts); - //平均正确率 - return perStudentExesResponseVO; - } - - public List exeRightRatio(ExeRightRatioDTO exeRightRatioPO) { - - List exeRightRatioVOS = new ArrayList<>(); - //获取关联习题/拓展习题:提交人数 - Integer submitCounts = taskCompletionStatusMapper.selectCount(new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getExeType, exeRightRatioPO.getExerciseType()) - .eq(TaskCompletionStatusDO::getSubjectTaskId, exeRightRatioPO.getTaskId()) - .eq(TaskCompletionStatusDO::getTreeId, exeRightRatioPO.getTreeId())); - - //正确率 - HashMap classMap = new HashMap<>(); - HashMap totalMap = new HashMap<>(); - - //时长 - HashMap classLength = new HashMap<>(); - HashMap totalLength = new HashMap<>(); - - List integers = new ArrayList<>(); - - //0 关联习题 1 拓展习题 - if (exeRightRatioPO.getExerciseType() == 0) { - //找到该任务下 该知识点的关联习题 - ExerciseRelatedMappingDO exerciseRelatedMappingDO = exerciseRelatedMappingMapper.selectById(exeRightRatioPO.getTreeId()); - - String[] exerciseIds = exerciseRelatedMappingDO.getExerciseIds().split(","); - integers = Arrays.asList(exerciseIds); - //} - } else { - // - String[] strings = exerciseExpandMappingMapper.selectById(exeRightRatioPO.getTreeId()).getExerciseIds().split(","); - integers = Arrays.asList(strings); - } - - //获取班级做题情况 - ClassDoneInfoDTO classDoneInfoPO = new ClassDoneInfoDTO(); - classDoneInfoPO.setTaskId(exeRightRatioPO.getTaskId()); - classDoneInfoPO.setTreeId(exeRightRatioPO.getTreeId()); - classDoneInfoPO.setExerciseType(exeRightRatioPO.getExerciseType()); - List classDoneInfoVOS = exerciseDoneHistoryMapper.classDoneInfo(classDoneInfoPO); - for (ClassDoneInfoVO classDoneInfoVO : classDoneInfoVOS) { - classMap.put(classDoneInfoVO.getExerciseId(), MathUtil.getPercentAvgIndexWithPercent(new BigDecimal(classDoneInfoVO.getResult()), new BigDecimal(submitCounts))); - classLength.put(classDoneInfoVO.getExerciseId(), MathUtil.getAvgIndex(new BigDecimal(classDoneInfoVO.getLength()), new BigDecimal(submitCounts))); - } - - //通过题目ids查询题目做题历史情况 - ExesDoneInfoPO exesDoneInfoPO = new ExesDoneInfoPO(); - exesDoneInfoPO.setExeIds(integers); - List classDoneInfoVOS1 = exerciseDoneHistoryMapper.exesDoneInfo(exesDoneInfoPO); - for (ClassDoneInfoVO classDoneInfoVO : classDoneInfoVOS1) { - totalMap.put(classDoneInfoVO.getExerciseId(), MathUtil.getPercentAvgIndexWithPercent(new BigDecimal(classDoneInfoVO.getResult()), new BigDecimal(classDoneInfoVO.getCountNum()))); - totalLength.put(classDoneInfoVO.getExerciseId(), MathUtil.getAvgIndex(new BigDecimal(classDoneInfoVO.getLength()), new BigDecimal(classDoneInfoVO.getCountNum()))); - } - - int i = 1; - for (String integer : integers) { - ExeRightRatioVO exeRightRatioVO = new ExeRightRatioVO(); - - exeRightRatioVO.setType("class"); - exeRightRatioVO.setExercise("第" + i + "题目"); - exeRightRatioVO.setValue(classMap.get(Integer.valueOf(integer)) == null ? "0" : classMap.get(Integer.valueOf(integer))); - exeRightRatioVO.setLength(classLength.get(Integer.valueOf(integer)) == null ? "0" : classLength.get(Integer.valueOf(integer))); - exeRightRatioVOS.add(exeRightRatioVO); - - exeRightRatioVO = new ExeRightRatioVO(); - exeRightRatioVO.setExercise("第" + i + "题目"); - exeRightRatioVO.setType("total"); - exeRightRatioVO.setValue(totalMap.get(Integer.valueOf(integer)) == null ? "0" : totalMap.get(Integer.valueOf(integer))); - exeRightRatioVO.setLength(totalLength.get(Integer.valueOf(integer)) == null ? "0" : totalLength.get(Integer.valueOf(integer))); - exeRightRatioVOS.add(exeRightRatioVO); - i++; - } - return exeRightRatioVOS; - } - - public StudentDoneInfoResponseVO studentRelateDoneInfo(StudentDoneInfoRequestVO studentDoneInfoRequestVO) { - - StudentDoneInfoResponseVO studentDoneInfoResponseVO = new StudentDoneInfoResponseVO(); - - //个人完成情况 + 班级完成情况 exercise totalright totallength - GetClassExeDoneInfoRequestVO getClassExeDoneInfoRequestVO = new GetClassExeDoneInfoRequestVO(); - getClassExeDoneInfoRequestVO.setTaskId(studentDoneInfoRequestVO.getTaskId()); - getClassExeDoneInfoRequestVO.setTreeId(studentDoneInfoRequestVO.getTreeId()); - getClassExeDoneInfoRequestVO.setUserId(studentDoneInfoRequestVO.getUserId()); - List getClassExeDoneInfoResponseVOS = exerciseDoneHistoryMapper.getRelateExeDoneInfo(getClassExeDoneInfoRequestVO); - - //提交人数 - Integer submitCounts = taskCompletionStatusMapper.selectCount(new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getSubjectTaskId, studentDoneInfoRequestVO.getTaskId()) - .eq(TaskCompletionStatusDO::getTreeId, studentDoneInfoRequestVO.getTreeId()) - .eq(TaskCompletionStatusDO::getExeType, 0)); - - //学生做对个数 - int rights = 0; - //学生用时 - int length = 0; - //int exeCount = 0 ; - //平均用时 - BigDecimal avgLength = new BigDecimal(0); - //全部做对个数 - BigDecimal totalRights = new BigDecimal(0); - //完成度明细 - for (GetClassExeDoneInfoResponseVO gcedv : getClassExeDoneInfoResponseVOS) { - - rights += gcedv.getResult(); - totalRights = totalRights.add(new BigDecimal(gcedv.getClassResult())); - length += gcedv.getLength(); - avgLength = avgLength.add(new BigDecimal(gcedv.getClassLength())); - gcedv.setClassResult(MathUtil.getPercentAvgIndex(new BigDecimal(gcedv.getClassResult()), new BigDecimal(submitCounts))); - gcedv.setClassLength(Integer.valueOf(MathUtil.getAvgIndex(new BigDecimal(gcedv.getClassLength()), new BigDecimal(submitCounts)))); - gcedv.setLabel(this.labels(gcedv.getTreeId())); - - } - studentDoneInfoResponseVO.setStudentDoneDetailVOS(getClassExeDoneInfoResponseVOS); - //关练习题个数 - Integer relatedCounts = getClassExeDoneInfoResponseVOS.size(); - studentDoneInfoResponseVO.setTotalCounts(relatedCounts); - - //做对个数 - studentDoneInfoResponseVO.setRightCounts(rights); - - //用时 - studentDoneInfoResponseVO.setUseLength(length); - - DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); - - //提交时间 - LocalDateTime date = taskCompletionStatusMapper.selectOne(new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getUserId, studentDoneInfoRequestVO.getUserId()) - .eq(TaskCompletionStatusDO::getExeType, 0) - .eq(TaskCompletionStatusDO::getSubjectTaskId, studentDoneInfoRequestVO.getTaskId()) - .eq(TaskCompletionStatusDO::getTreeId, studentDoneInfoRequestVO.getTreeId())).getCreateDate(); - String createDate = dateTimeFormatter.format(date); - studentDoneInfoResponseVO.setSubmitTime(createDate); - - //平均正确率 - String avgRights = MathUtil.getPercentAvgIndex(new BigDecimal(rights), (new BigDecimal(relatedCounts))); - studentDoneInfoResponseVO.setAvgRightPercent(avgRights); - //平均用时 - studentDoneInfoResponseVO.setAvgUseLength(Integer.valueOf(MathUtil.getAvgIndex(new BigDecimal(avgLength.intValue()), new BigDecimal(submitCounts)))); - - return studentDoneInfoResponseVO; - } - - public GetExeByIdResponseVO getExeById(ExerciseDictDO exerciseDict) { - ExerciseDictDO ed = exerciseDictMapper.selectById(exerciseDict.getId()); - GetExeByIdResponseVO getExeByIdResponseVO = new GetExeByIdResponseVO(); - BeanUtils.copyProperties(ed, getExeByIdResponseVO); - return getExeByIdResponseVO; - } - - public List getExpandings(GetExpandingsPO getExpandingsPO) { - - List exerciseUserInfos = new ArrayList<>(); - ExerciseExpandMappingDO exerciseExpandMapping1 = exerciseExpandMappingMapper.selectById(getExpandingsPO.getId()); - - List ids = Arrays.asList(exerciseExpandMapping1.getExerciseIds().split(",")); - List exerciseDicts = exerciseDictMapper.selectList(new QueryWrapper() - .lambda() - .in(ExerciseDictDO::getId, ids) - .orderByAsc(ExerciseDictDO::getDifficulty)); - - for (ExerciseDictDO exerciseDict : exerciseDicts) { - ExerciseUserInfoVO exerciseUserInfoVO = new ExerciseUserInfoVO(); - BeanUtils.copyProperties(exerciseDict, exerciseUserInfoVO); - - //QueryWrapper queryWrapper = new QueryWrapper(); - //queryWrapper.eq("user_id", getExpandingsPO.getUserId()); - //queryWrapper.eq("exercise_id", exerciseDict.getId()); - //ExerciseUserInfoDO exerciseUserInfo = exerciseUserInfoMapper.selectOne(queryWrapper); - //if (null == exerciseUserInfo || exerciseUserInfo.getCollectionStatus() == 0) { - // exerciseUserInfoVO.setCollectionStatus(0); - //} else { - // exerciseUserInfoVO.setCollectionStatus(1); - //} - exerciseUserInfos.add(exerciseUserInfoVO); - } - return exerciseUserInfos; - } - - public StudentDoneInfoResponseVO studentxpandingDoneInfo(StudentDoneInfoRequestVO studentDoneInfoRequestVO) { - - StudentDoneInfoResponseVO studentDoneInfoResponseVO = new StudentDoneInfoResponseVO(); - - //题目总数 - ExerciseExpandMappingDO eem = exerciseExpandMappingMapper.selectById(studentDoneInfoRequestVO.getTreeId()); - Integer exerciseCounts = eem.getExerciseIds().split(",").length; - studentDoneInfoResponseVO.setTotalCounts(exerciseCounts); - - //提交人数 - QueryWrapper queryWrapper1 = new QueryWrapper(); - queryWrapper1.eq("exe_type", 1); - queryWrapper1.eq("subject_task_id", studentDoneInfoRequestVO.getTaskId()); - queryWrapper1.eq("tree_id", studentDoneInfoRequestVO.getTreeId()); - - Integer submitCounts = taskCompletionStatusMapper.selectCount(new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getExeType, 1) - .eq(TaskCompletionStatusDO::getTreeId, studentDoneInfoRequestVO.getTreeId()) - .eq(TaskCompletionStatusDO::getSubjectTaskId, studentDoneInfoRequestVO.getTaskId())); - List userIds = Arrays.asList(eem.getStudentIds().split(",")); - - int rightCounts = 0; - int avgLength = 0; - int useLength = 0; - BigDecimal totalRights = new BigDecimal(0); - //完成度明细 + 班级总正确数,总用时 - GetClassExeDoneInfoRequestVO getClassExeDoneInfoRequestVO = new GetClassExeDoneInfoRequestVO(); - getClassExeDoneInfoRequestVO.setTreeId(studentDoneInfoRequestVO.getTreeId()); - getClassExeDoneInfoRequestVO.setUserId(studentDoneInfoRequestVO.getUserId()); - getClassExeDoneInfoRequestVO.setTaskId(studentDoneInfoRequestVO.getTaskId()); - getClassExeDoneInfoRequestVO.setUserIds(userIds); - List getClassExeDoneInfoResponseVOS = exerciseDoneHistoryMapper.getExpandingExeDoneInfo(getClassExeDoneInfoRequestVO); - for (GetClassExeDoneInfoResponseVO getClassExeDoneInfoResponseVO : getClassExeDoneInfoResponseVOS) { - rightCounts += getClassExeDoneInfoResponseVO.getResult(); - useLength += Integer.valueOf(getClassExeDoneInfoResponseVO.getLength()); - totalRights = totalRights.add(new BigDecimal(getClassExeDoneInfoResponseVO.getClassResult())); - avgLength += Integer.valueOf(getClassExeDoneInfoResponseVO.getClassLength()); - getClassExeDoneInfoResponseVO.setClassResult(MathUtil.getPercentAvgIndex(new BigDecimal(getClassExeDoneInfoResponseVO.getClassResult()), new BigDecimal(submitCounts))); - getClassExeDoneInfoResponseVO.setClassLength(Integer.valueOf(MathUtil.getAvgIndex(new BigDecimal(getClassExeDoneInfoResponseVO.getClassLength()), new BigDecimal(submitCounts)))); - getClassExeDoneInfoResponseVO.setLabel(this.labels(getClassExeDoneInfoResponseVO.getTreeId())); - } - studentDoneInfoResponseVO.setStudentDoneDetailVOS(getClassExeDoneInfoResponseVOS); - - //用时 - studentDoneInfoResponseVO.setUseLength(useLength); - - //正确率==>做对个数 - studentDoneInfoResponseVO.setRightCounts(rightCounts); - - DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); - //提交时间 - LocalDateTime date = taskCompletionStatusMapper.selectOne(new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getUserId, studentDoneInfoRequestVO.getUserId()) - .eq(TaskCompletionStatusDO::getTreeId, studentDoneInfoRequestVO.getTreeId()) - .eq(TaskCompletionStatusDO::getExeType, 1)).getCreateDate(); - - String createDate = dateTimeFormatter.format(date); - studentDoneInfoResponseVO.setSubmitTime(createDate); - //平均用时 - studentDoneInfoResponseVO.setAvgUseLength(Integer.valueOf(MathUtil.getAvgIndex(new BigDecimal(avgLength), new BigDecimal(submitCounts)))); - - //平均正确率 - String avgRights = MathUtil.getPercentAvgIndex(totalRights, (new BigDecimal(exerciseCounts).multiply(new BigDecimal(submitCounts)))); - studentDoneInfoResponseVO.setAvgRightPercent(avgRights); - return studentDoneInfoResponseVO; - } - - public PerStudentExesResponseVO perStudentExpandingExes(PerStudentExesRequestVO perStudentExesRequestVO) { - - PerStudentExesResponseVO perStudentExesResponseVO = new PerStudentExesResponseVO(); - - ExerciseExpandMappingDO exerciseExpandMapping = exerciseExpandMappingMapper.selectById(perStudentExesRequestVO.getTreeId()); - - //该作业总人数 - List totalCounts = Arrays.asList(exerciseExpandMapping.getStudentIds().split(",")); - perStudentExesResponseVO.setTotalCount(totalCounts.size()); - - //提交人数 - Integer submitCounts = taskCompletionStatusMapper.selectCount(new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getExeType, 1) - .eq(TaskCompletionStatusDO::getSubjectTaskId, perStudentExesRequestVO.getTaskId()) - .eq(TaskCompletionStatusDO::getTreeId, perStudentExesRequestVO.getTreeId())); - perStudentExesResponseVO.setSubmitCount(submitCounts); - - int totalRithts = 0; - int totalLength = 0; - - //题目个数 - int exeCounts = exerciseExpandMapping.getExerciseIds().split(",").length; - - //完成度明细 - perStudentExesRequestVO.setUserIds(totalCounts); - List perStuExeDoneResponseVOS = exerciseDoneHistoryMapper.perStudentExpandingExes(perStudentExesRequestVO); - for (PerStuExeDoneResponseVO psed : perStuExeDoneResponseVOS) { - totalRithts += psed.getRightCounts(); - totalLength += psed.getLength(); - psed.setTotalCounts(exeCounts); - } - perStudentExesResponseVO.setPerStuExeDoneResponseVOS(perStuExeDoneResponseVOS); - - //正确率 + 平均用时 - if (submitCounts != 0) { - BigDecimal bigDecimal1 = new BigDecimal(totalRithts).multiply(new BigDecimal(100)).divide((new BigDecimal(submitCounts).multiply(new BigDecimal(exeCounts))), RoundingMode.CEILING); - perStudentExesResponseVO.setRightPercent(bigDecimal1); - BigDecimal bigDecimal = new BigDecimal(totalLength).divide(new BigDecimal(submitCounts), RoundingMode.CEILING); - perStudentExesResponseVO.setAvgUseTimes(bigDecimal); - } - - - return perStudentExesResponseVO; - } - - public List getRecommendVodByTreeId(GetRecommendVodByTreeIdVO getRecommendVodByTreeIdVO) { - List getVodDetailResponseVOS = new ArrayList<>(); - List relatedVods = JSON.parseArray(getRecommendVodByTreeIdVO.getTreeIds(), Integer.class); - - getRecommendVodByTreeIdVO.setTreeIdInteger(relatedVods); - - List vodDicts = vodDictMapper.getRecommendVodByTreeId(getRecommendVodByTreeIdVO); - for (VodDictDO vodDict : vodDicts) { - GetVodDetailResponseVO getVodDetailResponseVO = new GetVodDetailResponseVO(); - BeanUtils.copyProperties(vodDict, getVodDetailResponseVO); - getVodDetailResponseVO.setLengthSecond(vodDict.getVodLength()); - AdministerDO vodUserAlias = administerMapper.selectById(vodDict.getAdministerId()); - if (vodUserAlias != null) { - getVodDetailResponseVO.setUserName(vodUserAlias.getUserName()); - } - getVodDetailResponseVOS.add(getVodDetailResponseVO); - } - return getVodDetailResponseVOS; - } - - public List getRecommendExeByTreeId(GetRecommendExeByTreeIdVO getRecommendExeByTreeIdVO) { - - List getExercisesInfoByIdsResponseVOS = new ArrayList<>(); - List relatedExes = JSON.parseArray(getRecommendExeByTreeIdVO.getTreeIds(), Integer.class); - - for (Integer integer : relatedExes) { - GetExercisesInfoByIdsResponseVO getExercisesInfoByIdsResponseVO = new GetExercisesInfoByIdsResponseVO(); - - List exerciseDicts = exerciseTreeMappingMapper.getRelatedExercise(integer); - if (exerciseDicts.size() == 0) { - continue; - } - getExercisesInfoByIdsResponseVO.setExeCounts(exerciseDicts.size()); - int len = 0; - for (ExerciseDictDO ed : exerciseDicts) { - len += ed.getAdviceLength(); - } - getExercisesInfoByIdsResponseVO.setTreeId(integer); - getExercisesInfoByIdsResponseVO.setLength(MathUtil.exerciseLength(len)); - getExercisesInfoByIdsResponseVO.setLengthSecond(len); - SubjectTreeDO knowledgeTree = subjectTreeMapper.selectById(integer); - if (knowledgeTree != null) { - getExercisesInfoByIdsResponseVO.setLabel(knowledgeTree.getTreeName()); - } - getExercisesInfoByIdsResponseVOS.add(getExercisesInfoByIdsResponseVO); - } - return getExercisesInfoByIdsResponseVOS; - } - - public List allNodes(SubjectTreeDO knowledgeTree) { - - //SubjectTreeDO subjectTreeDO1 = subjectTreeMapper.selectById(knowledgeTree.getId()); - - //获取某科目下的所有父节点 - List knowledgeTrees = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getSubjectId, knowledgeTree.getSubjectId()) - .isNull(SubjectTreeDO::getParentId)); - - //只展示三级节点 - - for (SubjectTreeDO kn : knowledgeTrees) { - //二级节点 - List subjectTreeDOS = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, kn.getId())); - kn.setChildren(subjectTreeDOS); - - for (SubjectTreeDO subjectTreeDO : subjectTreeDOS) { - List subjectTreeDOS1 = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, subjectTreeDO.getId())); - subjectTreeDO.setChildren(subjectTreeDOS1); - } - //kn.setChildren(getChildNodes(kn)); - } - - return knowledgeTrees; - } - - public List getClassStudents(GetClassStudentsDTO getClassStudentsDTO) { - return this.baseMapper.getClassStudents(getClassStudentsDTO); - } - - public List queryTaskRelatedExercise(TaskContentDO taskContentDO){ - ExerciseRelatedMappingDO exerciseRelatedMappingDO =exerciseRelatedMappingMapper.selectById(taskContentDO.getContentId()); - return exerciseDictMapper.selectBatchIds(Arrays.asList(exerciseRelatedMappingDO.getExerciseIds().split(","))); - } - - - /** - * 关联习题处理 - */ - public void data(){ - - List taskContentDOS = taskContentMapper.selectList(new QueryWrapper() - .lambda() - .eq(TaskContentDO::getContentType,"1") - .isNull(TaskContentDO::getDeleteDate)); - - for (TaskContentDO taskContentDO : taskContentDOS){ - - ExerciseRelatedMappingDO exerciseRelatedMappingDO = new ExerciseRelatedMappingDO(); - - exerciseRelatedMappingDO.setTaskId(taskContentDO.getTaskId()); - exerciseRelatedMappingDO.setTreeId(taskContentDO.getContentId()); - - ClassSubjectTaskDO classSubjectTaskDO = classSubjectTaskMapper.selectById(taskContentDO.getTaskId()); - if (null != classSubjectTaskDO){ - //exerciseRelatedMappingDO.setExerciseName(classSubjectTaskDO.getTreeName()); - SubjectTreeDO subjectTreeDO = subjectTreeMapper.selectById(taskContentDO.getContentId()); - exerciseRelatedMappingDO.setExerciseName(subjectTreeDO.getTreeName()); - - //班级里的人 - List classesUserMappingDOS = classesUserMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getClassesId,classSubjectTaskDO.getClassId())); - - if (classesUserMappingDOS.size()>0){ - StringBuilder temp = new StringBuilder(); - - for (ClassesUserMappingDO classesUserMappingDO : classesUserMappingDOS){ - temp.append(classesUserMappingDO.getUserId()); - temp.append(","); - } - - String stuentIds = temp.toString().substring(0,temp.length()-1); - exerciseRelatedMappingDO.setStudentIds(stuentIds); - } - - //题目去重 - Set sets = new HashSet<>(); - List exerciseDoneHistoryDOS = exerciseDoneHistoryMapper.selectList(new QueryWrapper() - .lambda() - .eq(ExerciseDoneHistoryDO::getTaskSubjectId,taskContentDO.getTaskId()) - .eq(ExerciseDoneHistoryDO::getContentId,taskContentDO.getContentId())); - if (exerciseDoneHistoryDOS.size()>0){ - for (ExerciseDoneHistoryDO exerciseDoneHistoryDO : exerciseDoneHistoryDOS){ - sets.add(String.valueOf(exerciseDoneHistoryDO.getExerciseId())); - } - - StringBuilder stringBuilder = new StringBuilder(); - for (String str : sets){ - stringBuilder.append(str); - stringBuilder.append(","); - } - String exerciseids = stringBuilder.toString().substring(0,stringBuilder.length()-1); - exerciseRelatedMappingDO.setExerciseIds(exerciseids); - } - exerciseRelatedMappingMapper.insert(exerciseRelatedMappingDO); - - //更新history的contentId - ExerciseDoneHistoryDO exerciseDoneHistoryDO = new ExerciseDoneHistoryDO(); - exerciseDoneHistoryDO.setContentId(exerciseRelatedMappingDO.getId()); - exerciseDoneHistoryMapper.update(exerciseDoneHistoryDO,new QueryWrapper() - .lambda() - .eq(ExerciseDoneHistoryDO::getContentId,taskContentDO.getContentId()) - .eq(ExerciseDoneHistoryDO::getTaskSubjectId,taskContentDO.getTaskId())); - - //task_completion_status - TaskCompletionStatusDO taskCompletionStatusDO = new TaskCompletionStatusDO(); - taskCompletionStatusDO.setTreeId(exerciseRelatedMappingDO.getId()); - taskCompletionStatusMapper.update(taskCompletionStatusDO,new QueryWrapper() - .lambda() - .eq(TaskCompletionStatusDO::getSubjectTaskId,taskContentDO.getTaskId()) - .eq(TaskCompletionStatusDO::getExeType,0) - .eq(TaskCompletionStatusDO::getTreeId,taskContentDO.getContentId())); - - //task_content_done_info - TaskContentDoneInfoDO taskContentDoneInfoDO = new TaskContentDoneInfoDO(); - taskContentDoneInfoDO.setContentId(exerciseRelatedMappingDO.getId()); - taskContentDoneInfoMapper.update(taskContentDoneInfoDO,new QueryWrapper() - .lambda() - .eq(TaskContentDoneInfoDO::getTaskId,taskContentDO.getTaskId()) - .eq(TaskContentDoneInfoDO::getContentType,1) - .eq(TaskContentDoneInfoDO::getContentId,taskContentDO.getContentId())); - - //更新taskContent的contentId - taskContentDO.setContentId(exerciseRelatedMappingDO.getId()); - taskContentMapper.updateById(taskContentDO); - } - - } - } - - - ///** - // * 遍历子节点并赋值 - // */ - //public List getChildNodes(SubjectTreeDO knowledgeTree) { - // - // //查找该父节点下的子节点 - // List knowledgeTrees = subjectTreeMapper.selectList(new QueryWrapper() - // .lambda() - // .eq(SubjectTreeDO::getParentId, knowledgeTree.getId()) - // .orderByAsc(SubjectTreeDO::getTreeOrder)); - // - // for (SubjectTreeDO kn : knowledgeTrees) { - // kn.setChildren(getChildNodes(kn)); - // } - // if (knowledgeTrees.size() == 0) { - // return null; - // } - // return knowledgeTrees; - //} - - /** - * 获取某个班级的学生人数 - * - * @return - */ - public Integer getClassStuCounts(Integer classId) { - return classesUserMappingMapper.selectCount(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getClassesId, classId)); - } - - private GetPreTaskContentVO getTaskContents(ClassSubjectTaskDO cst) { - GetPreTaskContentVO getPreTaskIdResponseVO = new GetPreTaskContentVO(); - - List taskContents = taskContentMapper.selectList(new QueryWrapper() - .lambda() - .eq(TaskContentDO::getTaskId, cst.getId())); - if (taskContents.size() > 0) { - //微视频 - List vodIntegers = new ArrayList<>(); - //关联习题 - List relateIds = new ArrayList<>(); - //书面作业 - List homeIntegers = new ArrayList<>(); - for (TaskContentDO tc : taskContents) { - if (tc.getContentType() == 0) { - vodIntegers.add(tc.getContentId()); - } - if (tc.getContentType() == 1) { - relateIds.add(tc.getContentId()); - } - if (tc.getContentType() == 3) { - homeIntegers.add(tc.getContentId()); - } - } - //微视频列表 - if (vodIntegers.size() > 0) { - List preVodInfoVOS = new ArrayList<>(); - List vodDicts = vodDictMapper.selectBatchIds(vodIntegers); - for (VodDictDO vodDict : vodDicts) { - PreVodInfoVO preVodInfoVO = new PreVodInfoVO(); - BeanUtils.copyProperties(vodDict, preVodInfoVO); - AdministerDO administerDO = administerMapper.selectById(vodDict.getAdministerId()); - - if (null != administerDO) { - preVodInfoVO.setTeacherName(administerDO.getUserName()); - } - //preVodInfoVO.setTreeId(vodDict.getTreeId()); - preVodInfoVO.setLength(MathUtil.vodLength(vodDict.getVodLength())); - preVodInfoVO.setLengthSecond(vodDict.getVodLength()); - preVodInfoVO.setVodId(vodDict.getId()); - preVodInfoVOS.add(preVodInfoVO); - } - getPreTaskIdResponseVO.setPreVodInfoVOS(preVodInfoVOS); - } - - - //关联习题 -// String ids[] = cst.getTreeId().split(","); - List preRelateExeVOS = new ArrayList<>(); - for (Integer str : relateIds) { - ExerciseRelatedMappingDO exerciseRelatedMappingDO = exerciseRelatedMappingMapper.selectById(str); - List relatedExes = exerciseDictMapper.selectBatchIds(Arrays.asList(exerciseRelatedMappingDO.getExerciseIds().split(","))); - PreRelateExeVO preRelateExeVO = new PreRelateExeVO(); - preRelateExeVO.setExeCounts(relatedExes.size()); - preRelateExeVO.setTreeName(subjectTreeMapper.selectById(exerciseRelatedMappingDO.getTreeId()).getTreeName()); - int length = 0; - for (ExerciseDictDO ed : relatedExes) { - length += ed.getAdviceLength(); - } - preRelateExeVO.setTreeId(Integer.valueOf(str)); - preRelateExeVO.setLength(MathUtil.exerciseLength(length)); - preRelateExeVO.setLengthSecond(length); - preRelateExeVOS.add(preRelateExeVO); - } - getPreTaskIdResponseVO.setPreRelateExeVOS(preRelateExeVOS); - - //书面作业 - PreHomeWorkInfoVO preHomeWorkInfoVO = new PreHomeWorkInfoVO(); - if (homeIntegers.size() > 0) { - List writtenHomeworks = writtenHomeworkMapper.selectBatchIds(homeIntegers); - List whs = new ArrayList<>(); - for (WrittenHomeworkDO writtenHomework : writtenHomeworks) { - if (writtenHomework.getHomeworkType() == 2) { - preHomeWorkInfoVO.setNotice(writtenHomework.getHomeworkContent()); - } else { - writtenHomework.setHomeworkContent(URLDecoder.decode(writtenHomework.getHomeworkContent())); - whs.add(writtenHomework); - } - preHomeWorkInfoVO.setLengthSecond(writtenHomework.getAdviceLength()); - preHomeWorkInfoVO.setFileName(writtenHomework.getFileName()); - } - preHomeWorkInfoVO.setWrittenHomeworks(whs); - preHomeWorkInfoVO.setLength(MathUtil.exerciseLength(writtenHomeworks.get(0).getAdviceLength())); - - preHomeWorkInfoVO.setHomeworksCounts(writtenHomeworks.size()); - getPreTaskIdResponseVO.setPreHomeWorkInfoVO(preHomeWorkInfoVO); - } - //知识点 -// List treeIds = Arrays.asList(cst.getTreeId().split(",")); -// List knowledgeTrees = knowledgeTreeMapper.selectBatchIds(treeIds); -// getPreTaskIdResponseVO.setKnowledgeTrees(knowledgeTrees); - } - - //拓展习题 - List preExpandExerciseVOS = new ArrayList<>(); - QueryWrapper queryWrapper1 = new QueryWrapper(); - queryWrapper1.eq("task_id", cst.getId()); - List exerciseExpandMappings = exerciseExpandMappingMapper.selectList(queryWrapper1); - for (ExerciseExpandMappingDO eem : exerciseExpandMappings) { - PreExpandExerciseVO preExpandExerciseVO = new PreExpandExerciseVO(); - int length = 0; - String[] exerciseIds = eem.getExerciseIds().split(","); - for (String str : exerciseIds) { - length += exerciseDictMapper.selectById(str).getAdviceLength(); - } - preExpandExerciseVO.setExerciseCounts(exerciseIds.length); - preExpandExerciseVO.setLength(MathUtil.exerciseLength(length)); - String[] studentIds = eem.getStudentIds().split(","); - preExpandExerciseVO.setTreeId(eem.getId()); - preExpandExerciseVO.setExpandExerciseNames(eem.getExerciseName()); - preExpandExerciseVO.setStudentCounts(studentIds.length); - preExpandExerciseVO.setLengthSecond(length); - preExpandExerciseVOS.add(preExpandExerciseVO); - } - getPreTaskIdResponseVO.setPreExpandExerciseVOS(preExpandExerciseVOS); - - getPreTaskIdResponseVO.setTaskType(cst.getTaskType()); - UserRoleDO userRole = userRoleMapper.selectById(cst.getTeacherId()); - getPreTaskIdResponseVO.setTeacherName(userRole != null ? userRole.getUserName() : null); - getPreTaskIdResponseVO.setTaskId(cst.getId()); - return getPreTaskIdResponseVO; - } - - - public void pushMsg(PushMsgPO pushMsgPO, String token) { - - String msgUrl = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" + token; - - String input = "{\n" + - " \"touser\":\"" + pushMsgPO.getOpenId() + "\",\n" + - " \"template_id\":\"" + wechatConfig.getTemplateId() + "\",\n" + - " \"url\":\"" + wechatConfig.getMsgUrl() + "\",\n" + - " \"data\":{\n" + - " \"first\":{\n" + - " \"value\":\"" + pushMsgPO.getTitle() + "\",\n" + - " \"color\":\"#173177\"\n" + - " },\n" + - " \"keyword1\":{\n" + - " \"value\":\"" + pushMsgPO.getSchool() + "\",\n" + - " \"color\":\"#173177\"\n" + - " },\n" + - " \"keyword2\":{\n" + - " \"value\":\"" + pushMsgPO.getTeacherName() + "\",\n" + - " \"color\":\"#173177\"\n" + - " },\n" + - " \"keyword3\":{\n" + - " \"value\":\"" + pushMsgPO.getTaskName() + "\",\n" + - " \"color\":\"#173177\"\n" + - " },\n" + - " \"keyword4\":{\n" + - " \"value\":\"" + pushMsgPO.getDateTime() + "\",\n" + - " \"color\":\"#173177\"\n" + -// " },\n" + -// " \"remark\":{\n" + -// " \"value\":\""+pushMsgPO.getRemark()+"\",\n" + -// " \"color\":\"#173177\"\n" + - " }\n" + - " }\n" + - "}"; - - - HttpHeaders headers = new HttpHeaders(); - - ResponseEntity responseEntity = restTemplateConfig.restTemplate() - .exchange(msgUrl, HttpMethod.POST, new HttpEntity<>(input.getBytes(), headers), PushMsgVO.class); - } - - //新增微视频 书面作业 关联习题 拓展习题 - public void addTaskContents(PublishTasksDTO publishTasksDTO, Integer taskId,Integer classId,String taskName) { - - //保存微视频作业 - String[] vodIds = publishTasksDTO.getVodIds().split(","); - if (!StringUtils.isEmpty(publishTasksDTO.getVodIds()) && vodIds.length > 0) { - for (String integer : vodIds) { - TaskContentDO tc = new TaskContentDO(); - tc.setTaskId(taskId); - tc.setContentType(0); - tc.setContentId(Integer.valueOf(integer)); - tc.setCreateDate(LocalDateTime.now()); - tc.setUpdateDate(LocalDateTime.now()); - taskContentMapper.insert(tc); - } - } - - //保存关联习题 - //关联知识点 -// String[] treeIds = publishTasksRequestVO.getTreeIds().split(","); - //老师布置的关联习题 - List relatedIds = Arrays.asList(publishTasksDTO.getRelatedIds().split(",")); - if (!StringUtils.isEmpty(publishTasksDTO.getRelatedIds()) && relatedIds.size() > 0) { - for (String integer : relatedIds) { - //布置关联习题 - ExerciseRelatedMappingDO exerciseRelatedMappingDO = new ExerciseRelatedMappingDO(); - exerciseRelatedMappingDO.setTaskId(taskId); - exerciseRelatedMappingDO.setTreeId(Integer.valueOf(integer)); - exerciseRelatedMappingDO.setExerciseName(taskName); - - List exerciseTreeMappingDOS = exerciseTreeMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(ExerciseTreeMappingDO::getTreeId,integer) - .eq(ExerciseTreeMappingDO::getStatus,1)); - - StringBuilder stringBuilder = new StringBuilder(); - - for (ExerciseTreeMappingDO exerciseTreeMappingDO : exerciseTreeMappingDOS){ - stringBuilder.append(exerciseTreeMappingDO.getExerciseId()); - stringBuilder.append(","); - } - String exerciseIds = stringBuilder.toString().substring(0,stringBuilder.length()-1); - exerciseRelatedMappingDO.setExerciseIds(exerciseIds); - - - List classesUserMappingDOS = classesUserMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getClassesId,classId)); - StrBuilder strBuilder = new StrBuilder(); - for (ClassesUserMappingDO classesUserMappingDO : classesUserMappingDOS){ - strBuilder.append(classesUserMappingDO.getUserId()); - strBuilder.append(","); - } - String userIds = strBuilder.toString().substring(0,strBuilder.length()-1); - exerciseRelatedMappingDO.setStudentIds(userIds); - exerciseRelatedMappingMapper.insert(exerciseRelatedMappingDO); - - TaskContentDO tc = new TaskContentDO(); - tc.setTaskId(taskId); - tc.setContentType(1); - tc.setContentId(exerciseRelatedMappingDO.getId()); - tc.setCreateDate(LocalDateTime.now()); - tc.setUpdateDate(LocalDateTime.now()); - taskContentMapper.insert(tc); - - } - } - - - - - //拓展习题 - List publishExpandingVOS = publishTasksDTO.getPublishExpandingVOS(); - if (publishExpandingVOS.size() > 0) { - for (PublishExpandingVO pev : publishExpandingVOS) { - ExerciseExpandMappingDO eem = new ExerciseExpandMappingDO(); - eem.setTaskId(taskId); - eem.setExerciseIds(pev.getExpandingExeIds()); - eem.setStudentIds(pev.getExpandingStudents()); - eem.setExerciseName(pev.getExpandingName()); - eem.setCreateDate(LocalDateTime.now()); - eem.setUpdateDate(LocalDateTime.now()); - exerciseExpandMappingMapper.insert(eem); - TaskContentDO taskContent = new TaskContentDO(); - taskContent.setTaskId(taskId); - taskContent.setContentType(2); - taskContent.setContentId(eem.getId()); - taskContent.setCreateDate(LocalDateTime.now()); - taskContent.setUpdateDate(LocalDateTime.now()); - taskContentMapper.insert(taskContent); - } - - } - - //附件作业 - List publishHomeworkVOS = publishTasksDTO.getPublishHomeworkVOS(); - if (publishHomeworkVOS.size() > 0) { - for (PublishHomeworkVO phk : publishHomeworkVOS) { - WrittenHomeworkDO writtenHomework = new WrittenHomeworkDO(); - writtenHomework.setHomeworkType(phk.getHomeworkType()); - writtenHomework.setHomeworkContent(phk.getHomeworkContent()); - writtenHomework.setFileName(phk.getFileName()); - writtenHomework.setAdviceLength(publishTasksDTO.getAdviceLength()); - writtenHomework.setFileSize(phk.getFileSize()); - writtenHomework.setFileType(phk.getFileType()); - writtenHomework.setCreateDate(LocalDateTime.now()); - writtenHomework.setUpdateDate(LocalDateTime.now()); - writtenHomeworkMapper.insert(writtenHomework); - TaskContentDO taskContent = new TaskContentDO(); - taskContent.setContentType(3); - taskContent.setTaskId(taskId); - taskContent.setContentId(writtenHomework.getId()); - taskContent.setUpdateDate(LocalDateTime.now()); - taskContent.setCreateDate(LocalDateTime.now()); - taskContentMapper.insert(taskContent); - } - } - - } - - public String labels(String ids) { - StringBuilder sb = new StringBuilder(); - if (!StringUtils.isEmpty(ids)) { - String[] arr = ids.split(","); - if (arr.length > 0) { - for (String str : arr) { - SubjectTreeDO knowledgeTree = subjectTreeMapper.selectById(str); - if (null != knowledgeTree) { - sb.append(knowledgeTree.getTreeName()).append(";"); - } - } - return sb.substring(0, sb.length() - 1); - } else { - return ""; - } - } else { - return ""; - } - - } - -} diff --git a/src/main/java/com/meishu/service/impl/ClassesDictHistoryServiceImpl.java b/src/main/java/com/meishu/service/impl/ClassesDictHistoryServiceImpl.java deleted file mode 100644 index f14f4b9..0000000 --- a/src/main/java/com/meishu/service/impl/ClassesDictHistoryServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.ClassesDictHistoryDO; -import com.meishu.mapper.ClassesDictHistoryMapper; -import com.meishu.service.ClassesDictHistoryService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学校班级字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Service -public class ClassesDictHistoryServiceImpl extends ServiceImpl implements ClassesDictHistoryService { - -} diff --git a/src/main/java/com/meishu/service/impl/ClassesDictServiceImpl.java b/src/main/java/com/meishu/service/impl/ClassesDictServiceImpl.java deleted file mode 100644 index 3665003..0000000 --- a/src/main/java/com/meishu/service/impl/ClassesDictServiceImpl.java +++ /dev/null @@ -1,373 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.classes.*; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.ClassesDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.classes.GetClassStudentsVO; -import com.meishu.vo.classes.GetClassesVO; -import com.meishu.vo.classes.SubjectDictVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; - -/** - *

- * 学校班级字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Service -public class ClassesDictServiceImpl extends ServiceImpl implements ClassesDictService { - - @Autowired - private SubjectDictMapper subjectDictMapper; - - @Autowired - private SubjectSemesterMapper subjectSemesterMapper; - - @Autowired - private UserSubjectMappingMapper userSubjectMappingMapper; - - @Autowired - private ClassesUserMappingMapper classesUserMappingMapper; - - @Autowired - private ClassesDictHistoryMapper classesDictHistoryMapper; - - @Autowired - private UserSubjectPermissionDictMapper userSubjectPermissionDictMapper; - - @Autowired - private KnowledgeSubjectDictMapper knowledgeSubjectDictMapper; - - public IPage getClasses(GetClassesDTO getClassesDTO) { - - Page pager = new Page(getClassesDTO.getPageNum(), getClassesDTO.getPageSize()); - - IPage getClassesVOIPage = this.baseMapper.getClasses(pager, getClassesDTO.getClassName(), getClassesDTO.getGrade(), getClassesDTO.getSession(), getClassesDTO.getStatus()); - - List getClassesVOS = getClassesVOIPage.getRecords(); - //找出班级所有的科目 - for (GetClassesVO getClassesVO : getClassesVOS) { - List subjectDictDOS = subjectDictMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectDictDO::getGrade, getClassesVO.getGrade()) - .eq(SubjectDictDO::getClasses, getClassesVO.getClasses()) - .eq(SubjectDictDO::getSession, getClassesVO.getSession())); - - List subjectDictVOS = new ArrayList<>(); - for (SubjectDictDO subjectDictDO : subjectDictDOS) { - SubjectDictVO subjectDictVO = new SubjectDictVO(); - BeanUtils.copyProperties(subjectDictDO, subjectDictVO); - //查询该科目下的授课老师 - List administerDOS = userSubjectMappingMapper.querySubjectTeachers(subjectDictDO.getId()); - subjectDictVO.setAdministerDOS(administerDOS); - - KnowledgeSubjectDictDO knowledgeSubjectDict = knowledgeSubjectDictMapper.selectOne(new QueryWrapper() - .lambda() - .eq(KnowledgeSubjectDictDO::getSubjectName, subjectDictDO.getSubject())); - if (null != knowledgeSubjectDict) { - subjectDictVO.setId(knowledgeSubjectDict.getId().intValue()); - } else { - subjectDictVO.setId(null); - } - subjectDictVOS.add(subjectDictVO); - } - getClassesVO.setSubjectDictDOS(subjectDictVOS); - } - getClassesVOIPage.setRecords(getClassesVOS); - return getClassesVOIPage; - } - - @Transactional(rollbackFor = Exception.class) - public String addClass(AddClassDTO addClassDTO) { - - ClassesDictDO classesDictDO = new ClassesDictDO(); - BeanUtils.copyProperties(addClassDTO, classesDictDO); - classesDictDO.setClassName(classesDictDO.getGrade() + "(" + classesDictDO.getClasses() + ")班"); - classesDictDO.setSchool(ConstantUtils.SCHOOL); - classesDictDO.setSubjectType("高中"); - classesDictDO.setStatus("在读"); - - - Calendar cal = Calendar.getInstance(); - int year = cal.get(Calendar.YEAR); - int month = cal.get(Calendar.MONTH)+1;//获取月份 - - Date date = new Date(); - if (month>=7){ - date.setYear(year-1899); - date.setMonth(7); - date.setDate(1); - date.setHours(0); - date.setMinutes(0); - date.setSeconds(0); - }else { - date.setYear(year-1900); - date.setMonth(7); - date.setDate(1); - date.setHours(0); - date.setMinutes(0); - date.setSeconds(0); - } - classesDictDO.setUpgradeDate(date); - this.baseMapper.insert(classesDictDO); - - ClassesDictHistoryDO classesDictHistoryDO = new ClassesDictHistoryDO(); - BeanUtils.copyProperties(addClassDTO, classesDictHistoryDO); - classesDictHistoryDO.setClassName(classesDictDO.getClassName()); - classesDictHistoryDO.setSchool(classesDictDO.getSchool()); - classesDictHistoryDO.setSubjectType(classesDictDO.getSubjectType()); - classesDictHistoryDO.setStatus("在读"); - classesDictHistoryDO.setClassDictId(classesDictDO.getId()); - classesDictHistoryMapper.insert(classesDictHistoryDO); - - //找到班级所有学生 - List classesUserMappingDOS = classesUserMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getClassesId,addClassDTO.getId())); - - - //添加 班级里的科目信息 - List subjects = addClassDTO.getSubjects(); - for (String str : subjects) { - SubjectDictDO subjectDictDO = new SubjectDictDO(); - subjectDictDO.setSchool(ConstantUtils.SCHOOL); - subjectDictDO.setGrade(addClassDTO.getGrade()); - subjectDictDO.setClasses(addClassDTO.getClasses()); - subjectDictDO.setClassName(classesDictDO.getClassName()); - subjectDictDO.setSubject(knowledgeSubjectDictMapper.selectById(str).getSubjectName()); - subjectDictDO.setSubjectType("高中"); - subjectDictDO.setSession(classesDictDO.getSession()); - subjectDictDO.setStatus("在读"); - subjectDictMapper.insert(subjectDictDO); - - SubjectSemesterDO subjectSemesterDO = new SubjectSemesterDO(); - subjectSemesterDO.setSubjectId(subjectDictDO.getId()); - subjectSemesterDO.setSemester("上"); - subjectSemesterMapper.insert(subjectSemesterDO); - -// for (ClassesUserMappingDO classesUserMappingDO : classesUserMappingDOS){ -// PtStudentScoreDO ptStudentScoreDO = new PtStudentScoreDO(); -// ptStudentScoreDO.setScore(30.0); -// ptStudentScoreDO.setScoreRecord(30.0); -// ptStudentScoreDO.setSemesterId(subjectSemesterDO.getId()); -// ptStudentScoreDO.setStudentId(classesUserMappingDO.getUserId()); -// ptStudentScoreDO.setSubjectId(subjectDictDO.getId()); -// } - - subjectSemesterDO.setSemester("下"); - subjectSemesterMapper.insert(subjectSemesterDO); - -// for (ClassesUserMappingDO classesUserMappingDO : classesUserMappingDOS){ -// PtStudentScoreDO ptStudentScoreDO = new PtStudentScoreDO(); -// ptStudentScoreDO.setScore(30.0); -// ptStudentScoreDO.setScoreRecord(30.0); -// ptStudentScoreDO.setSemesterId(subjectSemesterDO.getId()); -// ptStudentScoreDO.setStudentId(classesUserMappingDO.getUserId()); -// ptStudentScoreDO.setSubjectId(subjectDictDO.getId()); -// } - - } - - return ConstantUtils.ADD_SUCCESS; - } - - public String updateClass(AddClassDTO addClassDTO) { - - ClassesDictHistoryDO classesDictHistoryDO = classesDictHistoryMapper.selectOne(new QueryWrapper() - .lambda() - .eq(ClassesDictHistoryDO::getStatus,"在读") - .eq(ClassesDictHistoryDO::getClassDictId,addClassDTO.getId())); - - classesDictHistoryDO.setGrade(addClassDTO.getGrade()); - classesDictHistoryDO.setClasses(addClassDTO.getClasses()); - classesDictHistoryDO.setSession(addClassDTO.getSession()); - classesDictHistoryDO.setClassName(classesDictHistoryDO.getGrade() + "(" + classesDictHistoryDO.getClasses() + ")班"); - classesDictHistoryMapper.updateById(classesDictHistoryDO); - - ClassesDictDO classesDictDO = new ClassesDictDO(); - BeanUtils.copyProperties(classesDictHistoryDO, classesDictDO); - classesDictDO.setId(addClassDTO.getId()); - classesDictDO.setClassName(classesDictDO.getGrade() + "(" + classesDictDO.getClasses() + ")班"); - this.baseMapper.updateById(classesDictDO); - - //查找该班级下已经有的科目 - List existSubject = subjectDictMapper.getClassSubjectName(classesDictHistoryDO.getGrade(),classesDictHistoryDO.getClasses(),classesDictHistoryDO.getSession()); - - //找到班级所有学生 - List classesUserMappingDOS = classesUserMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getClassesId,addClassDTO.getId())); - - List subjects = addClassDTO.getSubjects(); - for (String str : subjects) { - KnowledgeSubjectDictDO knowledgeSubjectDictDO = knowledgeSubjectDictMapper.selectById(str); - if (!existSubject.contains(knowledgeSubjectDictDO.getSubjectName())){ - SubjectDictDO subjectDictDO = new SubjectDictDO(); - subjectDictDO.setSchool(ConstantUtils.SCHOOL); - subjectDictDO.setGrade(addClassDTO.getGrade()); - subjectDictDO.setClasses(addClassDTO.getClasses()); - subjectDictDO.setClassName(classesDictDO.getClassName()); - subjectDictDO.setSubject(knowledgeSubjectDictMapper.selectById(str).getSubjectName()); - subjectDictDO.setSubjectType("高中"); - subjectDictDO.setSession(classesDictDO.getSession()); - subjectDictDO.setStatus("1"); - subjectDictMapper.insert(subjectDictDO); - - SubjectSemesterDO subjectSemesterDO = new SubjectSemesterDO(); - subjectSemesterDO.setSubjectId(subjectDictDO.getId()); - subjectSemesterDO.setSemester("上"); - subjectSemesterMapper.insert(subjectSemesterDO); - - for (ClassesUserMappingDO classesUserMappingDO : classesUserMappingDOS){ - PtStudentScoreDO ptStudentScoreDO = new PtStudentScoreDO(); - ptStudentScoreDO.setScore(30.0); - ptStudentScoreDO.setScoreRecord(30.0); - ptStudentScoreDO.setSemesterId(subjectSemesterDO.getId()); - ptStudentScoreDO.setStudentId(classesUserMappingDO.getUserId()); - ptStudentScoreDO.setSubjectId(subjectDictDO.getId()); - } - - subjectSemesterDO.setSemester("下"); - subjectSemesterMapper.insert(subjectSemesterDO); - for (ClassesUserMappingDO classesUserMappingDO : classesUserMappingDOS){ - PtStudentScoreDO ptStudentScoreDO = new PtStudentScoreDO(); - ptStudentScoreDO.setScore(30.0); - ptStudentScoreDO.setScoreRecord(30.0); - ptStudentScoreDO.setSemesterId(subjectSemesterDO.getId()); - ptStudentScoreDO.setStudentId(classesUserMappingDO.getUserId()); - ptStudentScoreDO.setSubjectId(subjectDictDO.getId()); - } - } - } - - return ConstantUtils.SUCCESS_UPDATE; - } - - @Transactional(rollbackFor = Exception.class) - public String addSubjectTeacherMapping(AddSubjectTeacherDTO addSubjectTeacherDTO) { - - ClassesDictDO classesDictDO = this.baseMapper.selectById(addSubjectTeacherDTO.getClassId()); - List addSubjectTeacherMappingDTOS = addSubjectTeacherDTO.getAddSubjectTeacherMappingDTOS(); - - for (AddSubjectTeacherMappingDTO addSubjectTeacherMappingDTO :addSubjectTeacherMappingDTOS){ - KnowledgeSubjectDictDO knowledgeSubjectDict = knowledgeSubjectDictMapper.selectById(addSubjectTeacherMappingDTO.getSubjectId()); - - List integers = addSubjectTeacherMappingDTO.getTeacherIds(); - - SubjectDictDO subjectDictDO = subjectDictMapper.selectOne(new QueryWrapper() - .lambda() - .eq(SubjectDictDO::getGrade, classesDictDO.getGrade()) - .eq(SubjectDictDO::getSession, classesDictDO.getSession()) - .eq(SubjectDictDO::getClasses, classesDictDO.getClasses()) - .eq(SubjectDictDO::getSubject, knowledgeSubjectDict.getSubjectName())); - - userSubjectMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(UserSubjectMappingDO::getSubjectId,subjectDictDO.getId())); - - userSubjectPermissionDictMapper.delete(new QueryWrapper() - .lambda() - .eq(UserSubjectPermissionDictDO::getSubjectId,subjectDictDO.getId())); - - if (null != subjectDictDO) { - - for (Integer integer : integers) { - - UserSubjectMappingDO userSubjectMappingDO = new UserSubjectMappingDO(); - userSubjectMappingDO.setSubjectId(subjectDictDO.getId()); - userSubjectMappingDO.setUserId(integer); - userSubjectMappingDO.setClassType(0); - userSubjectMappingMapper.insert(userSubjectMappingDO); - - UserSubjectPermissionDictDO userSubjectPermissionDictDO = new UserSubjectPermissionDictDO(); - userSubjectPermissionDictDO.setSubjectId(subjectDictDO.getId()); - userSubjectPermissionDictDO.setUserId(integer); - userSubjectPermissionDictMapper.insert(userSubjectPermissionDictDO); - } - } - } - return ConstantUtils.ADD_SUCCESS; - } - - public List getClassStudents(GetClassStudentsDTO getClassStudentsDTO) { - -// Page pager = new Page(getClassStudentsDTO.getPageNum(), getClassStudentsDTO.getPageSize()); - return this.baseMapper.getClassStudents(getClassStudentsDTO.getClassId(), getClassStudentsDTO.getUserName()); - } - - public IPage queryNoClassStudents(QueryNoClassStudentsDTO queryNoClassStudentsDTO) { - Page pager = new Page(queryNoClassStudentsDTO.getPageNum(), queryNoClassStudentsDTO.getPageSize()); - return this.baseMapper.queryNoClassStudents(pager, queryNoClassStudentsDTO.getUserName()); - } - - @Transactional(rollbackFor = Exception.class) - public String batchAddStudentToClass(BatchAddStudentToClassDTO batchAddStudentToClassDTO) { - - List integers = batchAddStudentToClassDTO.getIds(); - - for (Integer integer : integers) { - classesUserMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getUserId, integer)); - - ClassesUserMappingDO classesUserMappingDO = new ClassesUserMappingDO(); - classesUserMappingDO.setClassesId(batchAddStudentToClassDTO.getClassId()); - classesUserMappingDO.setUserId(integer); - classesUserMappingDO.setStatus(1); - classesUserMappingMapper.insert(classesUserMappingDO); - } - return ConstantUtils.ADD_SUCCESS; - } - - public String batchDeleteStudent(BatchAddStudentToClassDTO batchAddStudentToClassDTO) { - - List integers = batchAddStudentToClassDTO.getIds(); - - for (Integer integer : integers) { - classesUserMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(ClassesUserMappingDO::getClassesId, batchAddStudentToClassDTO.getClassId()) - .eq(ClassesUserMappingDO::getUserId, integer)); - } - - return ConstantUtils.DELETE_SUCCESS; - } - - public List getClassesWithPage() { - return this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(ClassesDictDO::getStatus, "在读")); - } - - @Override - public ClassesDictDO getClassesById(Long studentId) { - return this.baseMapper.getClassesById(studentId); - } - - public String batchUpGrade(BatchUpGradeDTO batchUpGradeDTO){ - - List ids = batchUpGradeDTO.getIds(); - - for (Integer id : ids){ - ClassesDictDO classesDictDO = new ClassesDictDO(); - classesDictDO.setId(id); - classesDictDO.setUpgradeDate(batchUpGradeDTO.getUpgradeDate()); - this.baseMapper.updateById(classesDictDO); - } - return ConstantUtils.SUCCESS_UPDATE; - } - -} diff --git a/src/main/java/com/meishu/service/impl/ClassesUserMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/ClassesUserMappingServiceImpl.java deleted file mode 100644 index cb8a79c..0000000 --- a/src/main/java/com/meishu/service/impl/ClassesUserMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.ClassesUserMappingDO; -import com.meishu.mapper.ClassesUserMappingMapper; -import com.meishu.service.ClassesUserMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 班级--学生--映射表(包括以前的班级) 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@Service -public class ClassesUserMappingServiceImpl extends ServiceImpl implements ClassesUserMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/CourseAdministerMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/CourseAdministerMappingServiceImpl.java deleted file mode 100644 index 944831f..0000000 --- a/src/main/java/com/meishu/service/impl/CourseAdministerMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.CourseAdministerMappingDO; -import com.meishu.mapper.CourseAdministerMappingMapper; -import com.meishu.service.CourseAdministerMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 课程老师映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -@Service -public class CourseAdministerMappingServiceImpl extends ServiceImpl implements CourseAdministerMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/CourseStudentStatusHistoryServiceImpl.java b/src/main/java/com/meishu/service/impl/CourseStudentStatusHistoryServiceImpl.java deleted file mode 100644 index 28da90c..0000000 --- a/src/main/java/com/meishu/service/impl/CourseStudentStatusHistoryServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.CourseStudentStatusHistoryDO; -import com.meishu.mapper.CourseStudentStatusHistoryMapper; -import com.meishu.service.CourseStudentStatusHistoryService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-27 - */ -@Service -public class CourseStudentStatusHistoryServiceImpl extends ServiceImpl implements CourseStudentStatusHistoryService { - -} diff --git a/src/main/java/com/meishu/service/impl/CourseTreeExerciseStudentResultServiceImpl.java b/src/main/java/com/meishu/service/impl/CourseTreeExerciseStudentResultServiceImpl.java deleted file mode 100644 index 814b904..0000000 --- a/src/main/java/com/meishu/service/impl/CourseTreeExerciseStudentResultServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.CourseTreeExerciseStudentResultDO; -import com.meishu.mapper.CourseTreeExerciseStudentResultMapper; -import com.meishu.service.CourseTreeExerciseStudentResultService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 课程--学生做题记录 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-25 - */ -@Service -public class CourseTreeExerciseStudentResultServiceImpl extends ServiceImpl implements CourseTreeExerciseStudentResultService { - -} diff --git a/src/main/java/com/meishu/service/impl/CourseTreeVodStudentResultServiceImpl.java b/src/main/java/com/meishu/service/impl/CourseTreeVodStudentResultServiceImpl.java deleted file mode 100644 index 8a62727..0000000 --- a/src/main/java/com/meishu/service/impl/CourseTreeVodStudentResultServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.CourseTreeVodStudentResultDO; -import com.meishu.mapper.CourseTreeVodStudentResultMapper; -import com.meishu.service.CourseTreeVodStudentResultService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生视频完成情况 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-20 - */ -@Service -public class CourseTreeVodStudentResultServiceImpl extends ServiceImpl implements CourseTreeVodStudentResultService { - -} diff --git a/src/main/java/com/meishu/service/impl/CourseVodTreeStudentResultServiceImpl.java b/src/main/java/com/meishu/service/impl/CourseVodTreeStudentResultServiceImpl.java deleted file mode 100644 index 6c18a64..0000000 --- a/src/main/java/com/meishu/service/impl/CourseVodTreeStudentResultServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.CourseTreeVodStudentResultDO; -import com.meishu.mapper.CourseVodTressStudentResultMapper; -import com.meishu.service.CourseTreeVodStudentResultService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生视频完成情况 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Service -public class CourseVodTreeStudentResultServiceImpl extends ServiceImpl implements CourseTreeVodStudentResultService { - -} diff --git a/src/main/java/com/meishu/service/impl/DepartmentDictServiceImpl.java b/src/main/java/com/meishu/service/impl/DepartmentDictServiceImpl.java deleted file mode 100644 index 7b0dc6c..0000000 --- a/src/main/java/com/meishu/service/impl/DepartmentDictServiceImpl.java +++ /dev/null @@ -1,285 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.department.BatchOprDTO; -import com.meishu.dto.department.GetAllDepartmentVO; -import com.meishu.dto.department.GetTeachersDTO; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.mapper.AdministerDepartmentMappingMapper; -import com.meishu.mapper.AdministerMapper; -import com.meishu.model.*; -import com.meishu.mapper.DepartmentDictMapper; -import com.meishu.service.DepartmentDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.administer.GetTeachersVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; - -/** - *

- * 部门字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Service -public class DepartmentDictServiceImpl extends ServiceImpl implements DepartmentDictService { - - @Autowired - private AdministerMapper administerMapper; - - @Autowired - private AdministerDepartmentMappingMapper administerDepartmentMappingMapper; - - public List getDepartmentInfo() { - - //返回结果 - List getAllDepartmentVOS = new ArrayList<>(); - - //获取所有的父节点 - List parentNodes = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .isNull(DepartmentDictDO::getParentId)); - - //遍历父节点 - for (DepartmentDictDO departmentDictDO : parentNodes) { - GetAllDepartmentVO getAllDepartmentVO = new GetAllDepartmentVO(); - BeanUtils.copyProperties(departmentDictDO, getAllDepartmentVO); - if (null != departmentDictDO.getParentId()) { - DepartmentDictDO departmentDictDO1 = this.baseMapper.selectById(departmentDictDO.getParentId()); - getAllDepartmentVO.setParentDepartmentName(departmentDictDO1.getDepartmentName()); - } - getAllDepartmentVO.setChildren(getChildNodes(getAllDepartmentVO)); - AdministerDO administerDO = administerMapper.selectById(getAllDepartmentVO.getDepartmentLeaderId()); - if (null != administerDO) { - List administerDepartmentMappingDOS = administerDepartmentMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(AdministerDepartmentMappingDO::getAdministerId, administerDO.getId())); - getAllDepartmentVO.setAdministerDepartmentMappingDOS(administerDepartmentMappingDOS); - getAllDepartmentVO.setAdministerId(administerDO.getId()); - getAllDepartmentVO.setUserName(administerDO.getUserName()); - getAllDepartmentVO.setImg(administerDO.getImg()); - } - Integer count = administerDepartmentMappingMapper.selectCount(new QueryWrapper() - .lambda() - .eq(AdministerDepartmentMappingDO::getDepartmentId, departmentDictDO.getId())); - getAllDepartmentVO.setCount(count); - //部门人员 - List administerDOS = administerMapper.getAdministerByDepartmentId(departmentDictDO.getId()); - getAllDepartmentVO.setAdministerDOS(administerDOS); - - getAllDepartmentVOS.add(getAllDepartmentVO); - } - return getAllDepartmentVOS; - } - - public List getDepartmentList(GetSubjectTreeDTO getSubjectTreeDTO) { - - //查看角色所在部门 - List departmentDictDOS = administerMapper.getDepartmentByAdministerId(getSubjectTreeDTO.getUserId()); - - List ids = new ArrayList<>(); - for (DepartmentDictDO departmentDictDO : departmentDictDOS) { - ids.add(departmentDictDO.getId()); - } - - List parentNodes = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(DepartmentDictDO::getParentId, 1) - .in(DepartmentDictDO::getId, ids)); - - for (DepartmentDictDO departmentDictDO : parentNodes) { - departmentDictDO.setChildren(getChildNodes(departmentDictDO)); - } - return parentNodes; - } - - public String addDepartment(DepartmentDictDO departmentDictDO) { - Integer count = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(DepartmentDictDO::getDepartmentName, departmentDictDO.getDepartmentName())); - - if (count > 0) { - throw new HttpException(20001); - } - - this.baseMapper.insert(departmentDictDO); - return ConstantUtils.ADD_SUCCESS; - } - - public IPage getTeachers(GetTeachersDTO getTeachersDTO) { - - Page pager = new Page(getTeachersDTO.getPageNum(), getTeachersDTO.getPageSize()); - - List userIds = new ArrayList<>(); - - //查看该角色所在部门 - if (null == getTeachersDTO.getDepartmentId()){ - List departmentDictDOS = administerMapper.getDepartmentByAdministerId(getTeachersDTO.getUserId()); - for (DepartmentDictDO departmentDictDO : departmentDictDOS){ - userIds.add(departmentDictDO.getId()); - } - } - - IPage getTeachersVOIPage = administerMapper.getDepartmentTeachers(pager, getTeachersDTO.getDepartmentId(), getTeachersDTO.getCampusId(), getTeachersDTO.getUserName(),userIds); - List getTeachersVOS = getTeachersVOIPage.getRecords(); - for (GetTeachersVO getTeachersVO : getTeachersVOS) { -// List campusDictDOS = administerMapper.getTeacherCampus(getTeachersVO.getId()); -// getTeachersVO.setCampusDictDOS(campusDictDOS); - //部门 - List departmentDictDOS = administerMapper.getDepartmentByAdministerId(getTeachersVO.getId()); - getTeachersVO.setDepartmentDictDOS(departmentDictDOS); - - //科目 - List knowledgeSubjectDicts = administerMapper.getTeacherSubjects(getTeachersVO.getId()); - getTeachersVO.setKnowledgeSubjectDicts(knowledgeSubjectDicts); - - //角色 - List roleDictDOS = administerMapper.getTeacherRoles(getTeachersVO.getId()); - getTeachersVO.setRoleDictDOS(roleDictDOS); - - //多个在读班级 - List subjectDictDOS = administerMapper.getTeacherClasses(getTeachersVO.getId()); - getTeachersVO.setSubjectDictDOS(subjectDictDOS); - - } - return getTeachersVOIPage; - } - - public String batchOpr(BatchOprDTO batchOprDTO) { - - List longs = batchOprDTO.getIds(); - for (Long lg : longs) { - DepartmentDictDO departmentDictDO = this.baseMapper.selectById(lg); - if (null != batchOprDTO.getDepartmentLeaderId()) { - departmentDictDO.setDepartmentLeaderId(batchOprDTO.getDepartmentLeaderId()); - } - if (null != batchOprDTO.getParentId()) { - departmentDictDO.setParentId(batchOprDTO.getParentId()); - } - this.baseMapper.updateById(departmentDictDO); - } - return ConstantUtils.SUCCESS_UPDATE; - } - - - public String deleteDepartment(BatchOprDTO batchOprDTO) { - - List longs = batchOprDTO.getIds(); - - for (Long lg : longs) { - List departmentDictDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(DepartmentDictDO::getParentId, lg) - ); - - for (DepartmentDictDO departmentDictDO1 : departmentDictDOS) { - deleteChildNode(departmentDictDO1); - } - this.baseMapper.deleteById(lg); - } - - return ConstantUtils.DELETE_SUCCESS; - } - - public String updateDepartment(DepartmentDictDO departmentDictDO) { - this.baseMapper.updateById(departmentDictDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - void deleteChildNode(DepartmentDictDO departmentDictDO) { - - List departmentDictDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(DepartmentDictDO::getParentId, departmentDictDO.getId())); - - for (DepartmentDictDO departmentDictDO1 : departmentDictDOS) { - deleteChildNode(departmentDictDO1); - } - this.baseMapper.deleteById(departmentDictDO.getId()); - } - - - /** - * 递归 带上部门总数,部门负责人等参数 - * - * @param getAllDepartmentVO 父节点查找该节点的children - * @return 子节点 - */ - public List getChildNodes(GetAllDepartmentVO getAllDepartmentVO) { - - List getAllDepartmentVOS = new ArrayList<>(); - - //查询该节点的子节点 - List departmentDictDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(DepartmentDictDO::getParentId, getAllDepartmentVO.getId())); - - //递归 - for (DepartmentDictDO dd : departmentDictDOS) { - GetAllDepartmentVO getAllDepartmentVO1 = new GetAllDepartmentVO(); - BeanUtils.copyProperties(dd, getAllDepartmentVO1); - if (null != dd.getParentId()) { - DepartmentDictDO departmentDictDO = this.baseMapper.selectById(dd.getParentId()); - getAllDepartmentVO1.setParentDepartmentName(departmentDictDO.getDepartmentName()); - } - getAllDepartmentVO1.setChildren(getChildNodes(getAllDepartmentVO1)); - AdministerDO administerDO = administerMapper.selectById(getAllDepartmentVO1.getDepartmentLeaderId()); - if (null != administerDO) { - List administerDepartmentMappingDOS = administerDepartmentMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(AdministerDepartmentMappingDO::getAdministerId, administerDO.getId())); - getAllDepartmentVO1.setAdministerDepartmentMappingDOS(administerDepartmentMappingDOS); - getAllDepartmentVO1.setUserName(administerDO.getUserName()); - getAllDepartmentVO1.setImg(administerDO.getImg()); - getAllDepartmentVO1.setAdministerId(administerDO.getId()); - } - Integer count = administerDepartmentMappingMapper.selectCount(new QueryWrapper() - .lambda() - .eq(AdministerDepartmentMappingDO::getDepartmentId, dd.getId())); - getAllDepartmentVO1.setCount(count); - //部门人员 - List administerDOS = administerMapper.getAdministerByDepartmentId(dd.getId()); - getAllDepartmentVO1.setAdministerDOS(administerDOS); - getAllDepartmentVOS.add(getAllDepartmentVO1); - } - if (departmentDictDOS.size() == 0) { - return null; - } - - return getAllDepartmentVOS; - } - - /** - * 递归部门列表 不包含老师信息和人数信息 - * - * @param departmentDictDO - * @return - */ - public List getChildNodes(DepartmentDictDO departmentDictDO) { - - List departmentDictDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(DepartmentDictDO::getParentId, departmentDictDO.getId())); - - for (DepartmentDictDO departmentDictDO1 : departmentDictDOS) { - departmentDictDO1.setChildren(getChildNodes(departmentDictDO1)); - } - - if (departmentDictDOS.size() == 0) { - return null; - } - return departmentDictDOS; - } - - -} diff --git a/src/main/java/com/meishu/service/impl/ExerciseCourseTreeMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/ExerciseCourseTreeMappingServiceImpl.java deleted file mode 100644 index e5112eb..0000000 --- a/src/main/java/com/meishu/service/impl/ExerciseCourseTreeMappingServiceImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.exercise.QueryCourseTreeExerciseDTO; -import com.meishu.dto.exercise.UpdateStatusDTO; -import com.meishu.model.CourseTreeDO; -import com.meishu.model.ExerciseCourseTreeMappingDO; -import com.meishu.mapper.ExerciseCourseTreeMappingMapper; -import com.meishu.service.ExerciseCourseTreeMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.exercise.QueryCourseTreeExerciseVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - *

- * 课程知识树--题目字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-24 - */ -@Service -public class ExerciseCourseTreeMappingServiceImpl extends ServiceImpl implements ExerciseCourseTreeMappingService { - - @Autowired - private ExerciseCourseTreeMappingMapper exerciseCourseTreeMappingMapper; - - public String updateStatus(UpdateStatusDTO updateStatusDTO){ - - List ids = updateStatusDTO.getIds(); - for (Long lg : ids){ - ExerciseCourseTreeMappingDO exerciseCourseTreeMappingDO = this.baseMapper.selectById(lg); - exerciseCourseTreeMappingDO.setStatus(updateStatusDTO.getStatus()); - this.baseMapper.updateById(exerciseCourseTreeMappingDO); - } - return ConstantUtils.SET_SUCCESS; - } - -} diff --git a/src/main/java/com/meishu/service/impl/ExerciseDictServiceImpl.java b/src/main/java/com/meishu/service/impl/ExerciseDictServiceImpl.java deleted file mode 100644 index 4af7b0b..0000000 --- a/src/main/java/com/meishu/service/impl/ExerciseDictServiceImpl.java +++ /dev/null @@ -1,291 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.exercise.AddExerciseDTO; -import com.meishu.dto.exercise.CheckExerciseDTO; -import com.meishu.dto.exercise.GetTreeExercisesDTO; -import com.meishu.dto.voddict.GetToCheckVodCountsDTO; -import com.meishu.dto.voddict.PublicCheckingDTO; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.ExerciseDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.exercise.GetExerciseDetailVO; -import com.meishu.vo.exercise.GetTreeExercisesVO; -import com.meishu.vo.voddict.GetToCheckCountsVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; - -/** - *

- * 习题库 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class ExerciseDictServiceImpl extends ServiceImpl implements ExerciseDictService { - - @Autowired - private ExerciseTreeMappingMapper exerciseTreeMappingMapper; - - @Autowired - private KnowledgeSubjectDictMapper knowledgeSubjectDictMapper; - - @Autowired - private AdministerMapper administerMapper; - - public IPage getTreeExercises(GetTreeExercisesDTO getTreeExercisesDTO) { - - Page pager = new Page(getTreeExercisesDTO.getPageNum(), getTreeExercisesDTO.getPageSize()); - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getTreeExercisesDTO.getSubjectId()); - - if ("1".equals(getTreeExercisesDTO.getShareStatus())) { - getTreeExercisesDTO.setUserId(null); - } - - //查看该老师的科目信息 - List subjectDictDOS = administerMapper.getTeacherSubjects(getTreeExercisesDTO.getUserId()); - - List strings = new ArrayList<>(); - for (KnowledgeSubjectDictDO subjectDictDO1 : subjectDictDOS) { - strings.add(subjectDictDO1.getSubjectEn()); - } - - IPage getTreeExercisesVOIPage = this.baseMapper.getTreeExercises(pager, getTreeExercisesDTO.getUserId(), subjectDictDO.getSubjectEn(), getTreeExercisesDTO.getTreeId(), getTreeExercisesDTO.getExerciseType(), getTreeExercisesDTO.getDifficulty(), getTreeExercisesDTO.getTitle(), getTreeExercisesDTO.getShareStatus(),getTreeExercisesDTO.getCheckStatus(),strings); - - List getTreeExercisesVOS = getTreeExercisesVOIPage.getRecords(); - for (GetTreeExercisesVO getTreeExercisesVO : getTreeExercisesVOS) { - //找知识树 - List subjectTreeDOS = this.baseMapper.getTrees(getTreeExercisesVO.getId()); - getTreeExercisesVO.setSubjectTreeDOS(subjectTreeDOS); - } - getTreeExercisesVOIPage.setRecords(getTreeExercisesVOS); - return getTreeExercisesVOIPage; - } - - public IPage getCheckTreeExercises(GetTreeExercisesDTO getTreeExercisesDTO){ - - Page pager = new Page(getTreeExercisesDTO.getPageNum(), getTreeExercisesDTO.getPageSize()); - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getTreeExercisesDTO.getSubjectId()); - - //查看该老师的科目信息 - List subjectDictDOS = administerMapper.getTeacherSubjects(getTreeExercisesDTO.getUserId()); - - List strings = new ArrayList<>(); - for (KnowledgeSubjectDictDO subjectDictDO1 : subjectDictDOS) { - strings.add(subjectDictDO1.getSubjectEn()); - } - - IPage getTreeExercisesVOIPage = this.baseMapper.getTreeExercises(pager, null, subjectDictDO.getSubjectEn(), getTreeExercisesDTO.getTreeId(), getTreeExercisesDTO.getExerciseType(), getTreeExercisesDTO.getDifficulty(), getTreeExercisesDTO.getTitle(), getTreeExercisesDTO.getShareStatus(),getTreeExercisesDTO.getCheckStatus(),strings); - - List getTreeExercisesVOS = getTreeExercisesVOIPage.getRecords(); - for (GetTreeExercisesVO getTreeExercisesVO : getTreeExercisesVOS) { - //找知识树 - List subjectTreeDOS = this.baseMapper.getTrees(getTreeExercisesVO.getId()); - getTreeExercisesVO.setSubjectTreeDOS(subjectTreeDOS); - } - getTreeExercisesVOIPage.setRecords(getTreeExercisesVOS); - return getTreeExercisesVOIPage; - - } - - @Transactional(rollbackFor = Exception.class) - public String deleteExercise(ExerciseDictDO exerciseDictDO) { - -// Integer count = exerciseCourseTreeMappingMapper.selectCount(new QueryWrapper() -// .lambda() -// .eq(ExerciseCourseTreeMappingDO::getExerciseId, exerciseDictDO.getId())); -// -// if (count > 0) { -// throw new HttpException(30003); -// } -// - this.baseMapper.deleteById(exerciseDictDO.getId()); - - //删相关树 - exerciseTreeMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(ExerciseTreeMappingDO::getExerciseId, exerciseDictDO.getId())); - -// //删相关做题记录 -// exerciseDoneHistoryMapper.delete(new QueryWrapper() -// .lambda() -// .eq(ExerciseDoneHistoryDO::getExerciseId, exerciseDictDO.getId())); - - return ConstantUtils.DELETE_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public String addExercise(AddExerciseDTO addExerciseDTO) { - ExerciseDictDO exerciseDictDO = new ExerciseDictDO(); - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(addExerciseDTO.getSubjectId()); - BeanUtils.copyProperties(addExerciseDTO, exerciseDictDO); - exerciseDictDO.setShareStatus("0"); - exerciseDictDO.setCheckStatus("0"); - exerciseDictDO.setSubjectId(subjectDictDO.getSubjectEn()); - this.baseMapper.insert(exerciseDictDO); - - List longs = addExerciseDTO.getTreeIds(); - for (Long lg : longs) { - ExerciseTreeMappingDO exerciseTreeMappingDO = new ExerciseTreeMappingDO(); - exerciseTreeMappingDO.setTreeId(lg); - exerciseTreeMappingDO.setExerciseId(exerciseDictDO.getId()); - exerciseTreeMappingMapper.insert(exerciseTreeMappingDO); - -// //新增的题目也要加到courseTree里去 -// List courseTreeDOS = courseTreeMapper.selectList(new QueryWrapper() -// .lambda() -// .eq(CourseTreeDO::getTreeId, lg)); -// -// for (CourseTreeDO courseTreeDO : courseTreeDOS) { -// ExerciseCourseTreeMappingDO exerciseCourseTreeMappingDO = new ExerciseCourseTreeMappingDO(); -// exerciseCourseTreeMappingDO.setExerciseId(exerciseDictDO.getId()); -// exerciseCourseTreeMappingDO.setStatus("0"); -// exerciseCourseTreeMappingDO.setCourseTreeId(courseTreeDO.getId()); -// exerciseCourseTreeMappingDO.setCourseId(lg); -// exerciseCourseTreeMappingMapper.insert(exerciseCourseTreeMappingDO); -// } - } - return ConstantUtils.ADD_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public String updateExercise(AddExerciseDTO addExerciseDTO) { - ExerciseDictDO exerciseDictDO = new ExerciseDictDO(); - BeanUtils.copyProperties(addExerciseDTO, exerciseDictDO); - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(addExerciseDTO.getSubjectId()); - if (null!=subjectDictDO){ - exerciseDictDO.setSubjectId(subjectDictDO.getSubjectEn()); - } - this.baseMapper.updateById(exerciseDictDO); - - exerciseTreeMappingMapper.delete(new QueryWrapper() - .lambda() - .in(ExerciseTreeMappingDO::getExerciseId, addExerciseDTO.getId())); - - List longs = addExerciseDTO.getTreeIds(); - for (Long lg : longs) { - ExerciseTreeMappingDO exerciseTreeMappingDO = new ExerciseTreeMappingDO(); - exerciseTreeMappingDO.setTreeId(lg); - exerciseTreeMappingDO.setExerciseId(exerciseDictDO.getId()); - exerciseTreeMappingMapper.insert(exerciseTreeMappingDO); - } - return ConstantUtils.SUCCESS_UPDATE; - } - - public GetToCheckCountsVO getToCheckExeCounts(GetToCheckVodCountsDTO getToCheckVodCountsDTO) { - - GetToCheckCountsVO getToCheckCountsVO = new GetToCheckCountsVO(); - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getToCheckVodCountsDTO.getSubjectId()); - - Integer count = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(ExerciseDictDO::getCheckStatus, "2") - .eq(ExerciseDictDO::getSubjectId, subjectDictDO.getSubjectEn())); - getToCheckCountsVO.setToCheckCounts(count); - - //已审核 包括已通过 未通过 - Integer counts1 = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(ExerciseDictDO::getSubjectId, subjectDictDO.getSubjectEn()) - .in(ExerciseDictDO::getCheckStatus, new String[]{"1", "3"})); - getToCheckCountsVO.setCheckCounts(counts1); - - return getToCheckCountsVO; - } - - public String checkExercise(CheckExerciseDTO checkExerciseDTO) { - - //审核通过 - if ("1".equals(checkExerciseDTO.getCheckStatus())) { - ExerciseDictDO exerciseDictDO = this.baseMapper.selectById(checkExerciseDTO.getId()); - - exerciseDictDO.setCheckStatus("1");// 已通过审核 - this.baseMapper.updateById(exerciseDictDO); - - exerciseDictDO.setShareStatus("1"); //已共享 - exerciseDictDO.setDifficulty(checkExerciseDTO.getDifficulty()); - exerciseDictDO.setAdviceLength(checkExerciseDTO.getAdviceLength()); - exerciseDictDO.setCreateDate(LocalDateTime.now()); - exerciseDictDO.setUpdateDate(LocalDateTime.now()); - this.baseMapper.insert(exerciseDictDO); - - List ids = checkExerciseDTO.getTreeIds(); - -// //取消之前的关联 -// exerciseTreeMappingMapper.delete(new QueryWrapper() -// .lambda() -// .eq(ExerciseTreeMappingDO::getExerciseId, checkExerciseDTO.getId())); - - for (Long lg : ids) { - //知识点关联 - ExerciseTreeMappingDO exerciseTreeMappingDO = new ExerciseTreeMappingDO(); - exerciseTreeMappingDO.setExerciseId(exerciseDictDO.getId()); - exerciseTreeMappingDO.setTreeId(lg); - exerciseDictDO.setStatus("0"); //不是关联习题 - exerciseTreeMappingMapper.insert(exerciseTreeMappingDO); - } - } else { - //不通过 - ExerciseDictDO exerciseDictDO = new ExerciseDictDO(); - BeanUtils.copyProperties(checkExerciseDTO, exerciseDictDO); - this.baseMapper.updateById(exerciseDictDO); - } - - return ConstantUtils.CHECK_STATUS; - } - - public IPage publicUpload(PublicCheckingDTO publicCheckingDTO) { - - Page pager = new Page(publicCheckingDTO.getPageNum(), publicCheckingDTO.getPageSize()); - return this.baseMapper.selectPage(pager, new QueryWrapper() - .lambda() - .eq(ExerciseDictDO::getAdministerId, publicCheckingDTO.getUserId()) - .eq(ExerciseDictDO::getCheckStatus, publicCheckingDTO.getCheckStatus())); - } - - public String withdraw(ExerciseDictDO exerciseDictDO) { - exerciseDictDO.setShareStatus("0"); - exerciseDictDO.setCheckStatus("0"); - this.baseMapper.updateById(exerciseDictDO); - return ConstantUtils.SET_SUCCESS; - } - - public GetExerciseDetailVO getExerciseDetail(ExerciseDictDO exerciseDictDO) { - - GetExerciseDetailVO getExerciseDetailVO = new GetExerciseDetailVO(); - ExerciseDictDO exerciseDictDO1 = this.baseMapper.selectById(exerciseDictDO.getId()); - BeanUtils.copyProperties(exerciseDictDO1, getExerciseDetailVO); - - List subjectTreeDOS = this.baseMapper.getTrees(exerciseDictDO.getId()); - getExerciseDetailVO.setSubjectTreeDOS(subjectTreeDOS); - return getExerciseDetailVO; - } - - public String setRelatedExercise(ExerciseTreeMappingDO exerciseTreeMappingDO){ - - ExerciseTreeMappingDO exerciseTreeMappingDO1 = new ExerciseTreeMappingDO(); - exerciseTreeMappingDO1.setStatus(exerciseTreeMappingDO.getStatus()); - - exerciseTreeMappingMapper.update(exerciseTreeMappingDO1,new QueryWrapper() - .lambda() - .eq(ExerciseTreeMappingDO::getExerciseId,exerciseTreeMappingDO.getExerciseId())); - - return ConstantUtils.SUCCESS_UPDATE; - } - -} diff --git a/src/main/java/com/meishu/service/impl/ExerciseDoneHistoryServiceImpl.java b/src/main/java/com/meishu/service/impl/ExerciseDoneHistoryServiceImpl.java deleted file mode 100644 index 930ea54..0000000 --- a/src/main/java/com/meishu/service/impl/ExerciseDoneHistoryServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.ExerciseDoneHistoryDO; -import com.meishu.mapper.ExerciseDoneHistoryMapper; -import com.meishu.service.ExerciseDoneHistoryService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生做题记录表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class ExerciseDoneHistoryServiceImpl extends ServiceImpl implements ExerciseDoneHistoryService { - -} diff --git a/src/main/java/com/meishu/service/impl/ExerciseExpandMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/ExerciseExpandMappingServiceImpl.java deleted file mode 100644 index ee7e1b6..0000000 --- a/src/main/java/com/meishu/service/impl/ExerciseExpandMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.ExerciseExpandMappingDO; -import com.meishu.mapper.ExerciseExpandMappingMapper; -import com.meishu.service.ExerciseExpandMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生--拓展习题映射表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Service -public class ExerciseExpandMappingServiceImpl extends ServiceImpl implements ExerciseExpandMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/ExerciseRelatedMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/ExerciseRelatedMappingServiceImpl.java deleted file mode 100644 index 3867fec..0000000 --- a/src/main/java/com/meishu/service/impl/ExerciseRelatedMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.ExerciseRelatedMappingDO; -import com.meishu.mapper.ExerciseRelatedMappingMapper; -import com.meishu.service.ExerciseRelatedMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生--拓展习题映射表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@Service -public class ExerciseRelatedMappingServiceImpl extends ServiceImpl implements ExerciseRelatedMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/ExerciseTreeMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/ExerciseTreeMappingServiceImpl.java deleted file mode 100644 index 08c5df0..0000000 --- a/src/main/java/com/meishu/service/impl/ExerciseTreeMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.ExerciseTreeMappingDO; -import com.meishu.mapper.ExerciseTreeMappingMapper; -import com.meishu.service.ExerciseTreeMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 题目知识树映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class ExerciseTreeMappingServiceImpl extends ServiceImpl implements ExerciseTreeMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/ExerciseUserInfoServiceImpl.java b/src/main/java/com/meishu/service/impl/ExerciseUserInfoServiceImpl.java deleted file mode 100644 index 0c4af34..0000000 --- a/src/main/java/com/meishu/service/impl/ExerciseUserInfoServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.ExerciseUserInfoDO; -import com.meishu.mapper.ExerciseUserInfoMapper; -import com.meishu.service.ExerciseUserInfoService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 题目收藏信息表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-17 - */ -@Service -public class ExerciseUserInfoServiceImpl extends ServiceImpl implements ExerciseUserInfoService { - -} diff --git a/src/main/java/com/meishu/service/impl/KnowledgeSubjectDictServiceImpl.java b/src/main/java/com/meishu/service/impl/KnowledgeSubjectDictServiceImpl.java deleted file mode 100644 index 6d2a387..0000000 --- a/src/main/java/com/meishu/service/impl/KnowledgeSubjectDictServiceImpl.java +++ /dev/null @@ -1,171 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.subject.GetSubjectAdministerDTO; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.dto.subject.GetSubjectsDTO; -import com.meishu.mapper.AdministerMapper; -import com.meishu.mapper.SubjectTreeMapper; -import com.meishu.model.*; -import com.meishu.mapper.KnowledgeSubjectDictMapper; -import com.meishu.service.KnowledgeSubjectDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.util.tree.SerialNumber; -import com.meishu.vo.subject.GetSubjectTreeVO; -import com.meishu.vo.subject.SubjectTreeOrder; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; - -/** - *

- * 学科字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class KnowledgeSubjectDictServiceImpl extends ServiceImpl implements KnowledgeSubjectDictService { - - @Autowired - private SubjectTreeMapper subjectTreeMapper; - - @Autowired - private AdministerMapper administerMapper; - - public IPage getSubjects(GetSubjectsDTO getSubjectsDTO) { - Page pager = new Page(getSubjectsDTO.getPageNum(), getSubjectsDTO.getPageSize()); - return this.baseMapper.getAdministerSubjects(pager, getSubjectsDTO.getUserId(), getSubjectsDTO.getSubjectType(), getSubjectsDTO.getSubjectName()); - } - - public List getAllSubjects(GetSubjectsDTO getSubjectsDTO) { - return this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(false, KnowledgeSubjectDictDO::getSubjectName, getSubjectsDTO.getSubjectName()) - .eq(false, KnowledgeSubjectDictDO::getSubjectType, getSubjectsDTO.getSubjectType())); - } - - public String updateSubject(KnowledgeSubjectDictDO subjectDictDO) { - this.baseMapper.updateById(subjectDictDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - public String addSubject(KnowledgeSubjectDictDO subjectDictDO) { - this.baseMapper.insert(subjectDictDO); - return ConstantUtils.ADD_SUCCESS; - } - - public String deleteSubject(KnowledgeSubjectDictDO subjectDictDO) { - this.baseMapper.deleteById(subjectDictDO.getId()); - return ConstantUtils.DELETE_SUCCESS; - } - - - public KnowledgeSubjectDictDO getSubject(KnowledgeSubjectDictDO subjectDictDO) { - return this.baseMapper.selectById(subjectDictDO.getId()); - } - - - public List getSubjectAdminister(GetSubjectAdministerDTO getSubjectAdministerDTO) { - return this.baseMapper.getSubjectAdminister(getSubjectAdministerDTO.getSubjectId(), getSubjectAdministerDTO.getUserName()); - } - - /** - * 递归遍历子节点 - * - * @param getSubjectTreeVO 父节点填充子节点 - * @return - */ - public List getChildNodes(GetSubjectTreeVO getSubjectTreeVO, SubjectTreeOrder treeNode,Integer i,boolean flag,List nodeList,Integer chapterId) { - - List getSubjectTreeVOS = new ArrayList<>(); - - i++; - - if (i==4 && !flag){ //只看前三层 - return null; - } - getSubjectTreeVO.setLayer(chapterId+""); - if (!"10.1".equals(getSubjectTreeVO.getText()) && !"20.1".equals(getSubjectTreeVO.getText()) && !"30.1".equals(getSubjectTreeVO.getText()) && !"40.1".equals(getSubjectTreeVO.getText()) && !"50.1".equals(getSubjectTreeVO.getText())){ - getSubjectTreeVO.setText(getSubjectTreeVO.getText().replace("0.1",getSubjectTreeVO.getLayer())); - } - getSubjectTreeVO.setTreeNode(getSubjectTreeVO.getText()); - - //查找该父节点下的子节点 - List subjectTreeDOS = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, getSubjectTreeVO.getId()) - .orderByAsc(SubjectTreeDO::getTreeOrder)); - - getSubjectTreeVO.setChildNodeCounts(subjectTreeDOS.size()); - - for (SubjectTreeDO subjectTreeDO1 : subjectTreeDOS) { -// GetSubjectTreeVO getSubjectTreeVO1 = new GetSubjectTreeVO(); - GetSubjectTreeVO getSubjectTreeVO1 =SubjectTreeOrder.getNextNode(treeNode,getSubjectTreeVO,nodeList); - BeanUtils.copyProperties(subjectTreeDO1, getSubjectTreeVO1); - getSubjectTreeVO1.setParentTreeName(getSubjectTreeVO.getTreeName()); - getSubjectTreeVOS.add(getSubjectTreeVO1); - getSubjectTreeVO1.setChildren(getChildNodes(getSubjectTreeVO1, treeNode,i,flag,nodeList,chapterId)); - } - if (subjectTreeDOS.size() == 0) { - return null; - } - return getSubjectTreeVOS; - } - - public List getSubjectTree(GetSubjectTreeDTO getSubjectTreeDTO) { - - List getSubjectTreeVOS = new ArrayList<>(); - - SerialNumber number = new SerialNumber(); - SubjectTreeOrder treeNode = new SubjectTreeOrder(".", number); - - //判断老师角色 - List roleDictDOS = administerMapper.getTeacherRoles(getSubjectTreeDTO.getUserId()); - - boolean flag = false; //true 可以看全部的 false 没权限或者是授课老师 只能看三级 - - for (RoleDictDO roleDictDO : roleDictDOS) { - if (roleDictDO.getId() == 1 || roleDictDO.getId() == 2 || roleDictDO.getId() == 4) { - flag = true; - } - } - - //获取科目的父节点 - List subjectTreeDOS = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getSubjectId, getSubjectTreeDTO.getSubjectId()) - .isNull(SubjectTreeDO::getParentId) - .orderByAsc(SubjectTreeDO::getTreeOrder)); - - GetSubjectTreeVO root = treeNode.getRoot(treeNode.getNodeList()); - - List nodeList = new ArrayList<>(); - - //章节id - int chapterId = 1; - - for (SubjectTreeDO std : subjectTreeDOS) { - GetSubjectTreeVO getSubjectTreeVO = SubjectTreeOrder.getNextNode(treeNode,root,nodeList); - BeanUtils.copyProperties(std, getSubjectTreeVO); - int i = 1 ; //第几层 - - - getSubjectTreeVO.setChildren(getChildNodes(getSubjectTreeVO, treeNode,i,flag,nodeList,chapterId)); - getSubjectTreeVO.setLayer(chapterId+""); - chapterId++; - getSubjectTreeVO.setText(getSubjectTreeVO.getText().replace("0.1",getSubjectTreeVO.getLayer())); - getSubjectTreeVO.setTreeNode(getSubjectTreeVO.getText()); - getSubjectTreeVOS.add(getSubjectTreeVO); - } - return getSubjectTreeVOS; - } - -} diff --git a/src/main/java/com/meishu/service/impl/LaboratoryAttendanceMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/LaboratoryAttendanceMappingServiceImpl.java deleted file mode 100644 index 476d1aa..0000000 --- a/src/main/java/com/meishu/service/impl/LaboratoryAttendanceMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.LaboratoryAttendanceMappingDO; -import com.meishu.mapper.LaboratoryAttendanceMappingMapper; -import com.meishu.service.LaboratoryAttendanceMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 实验室场次预约考勤记录 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-15 - */ -@Service -public class LaboratoryAttendanceMappingServiceImpl extends ServiceImpl implements LaboratoryAttendanceMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/LaboratoryDictMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/LaboratoryDictMappingServiceImpl.java deleted file mode 100644 index 9b9449a..0000000 --- a/src/main/java/com/meishu/service/impl/LaboratoryDictMappingServiceImpl.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.LaboratoryDictMappingDO; -import com.meishu.mapper.LaboratoryDictMappingMapper; -import com.meishu.service.LaboratoryDictMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - *

- * 实验室场次关联表 服务实现类 - *

- * - * @author DengMin - * @since 2021-08-30 - */ -@Service -public class LaboratoryDictMappingServiceImpl extends ServiceImpl implements LaboratoryDictMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/LaboratoryDictServiceImpl.java b/src/main/java/com/meishu/service/impl/LaboratoryDictServiceImpl.java deleted file mode 100644 index 77def4b..0000000 --- a/src/main/java/com/meishu/service/impl/LaboratoryDictServiceImpl.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.laboratory.LaboratoryDictDTO; -import com.meishu.dto.laboratory.LaboratoryPageDTO; -import com.meishu.model.LaboratoryDictDO; -import com.meishu.mapper.LaboratoryDictMapper; -import com.meishu.model.LaboratoryDictMappingDO; -import com.meishu.model.SessionsDictDO; -import com.meishu.service.LaboratoryDictMappingService; -import com.meishu.service.LaboratoryDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.service.SessionsDictService; -import com.meishu.vo.laboratorySession.LaboratoryDictPageVO; -import org.apache.commons.lang3.StringUtils; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - *

- * 实验室 服务实现类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Service -public class LaboratoryDictServiceImpl extends ServiceImpl implements LaboratoryDictService { - - @Autowired - private SessionsDictService sessionsDictService; - - @Autowired - private LaboratoryDictMappingService laboratoryDictMappingService; - - @Override - public IPage selectPage(LaboratoryPageDTO laboratoryPageDTO) { - IPage iPage = this.baseMapper.getLaboratoryPage(new Page(laboratoryPageDTO.getPageNo(), laboratoryPageDTO.getPageSize()), laboratoryPageDTO.getName(), laboratoryPageDTO.getLaboratoryType()); - for (LaboratoryDictPageVO record : iPage.getRecords()) { - List list = sessionsDictService.getListById(record.getId()); - record.setSessions(list); - } - return iPage; - } - - @Override - @Transactional(rollbackFor = Exception.class) - public void add(LaboratoryDictDTO laboratoryDictDTO) { - LaboratoryDictDO laboratoryDictDO = new LaboratoryDictDO(); - BeanUtils.copyProperties(laboratoryDictDTO, laboratoryDictDO); - this.baseMapper.insert(laboratoryDictDO); - - for (Long id : laboratoryDictDTO.getSessionDictId()) { - LaboratoryDictMappingDO laboratoryDictMappingDO = new LaboratoryDictMappingDO(); - laboratoryDictMappingDO.setLaboratoryDictId(laboratoryDictDO.getId()); - laboratoryDictMappingDO.setSessionsDictId(id); - laboratoryDictMappingService.save(laboratoryDictMappingDO); - } - } - - @Override - public void updateLaboratory(LaboratoryDictDTO laboratoryDictDTO) { - LaboratoryDictDO laboratoryDictDO = new LaboratoryDictDO(); - BeanUtils.copyProperties(laboratoryDictDTO, laboratoryDictDO); - this.baseMapper.updateById(laboratoryDictDO); - - List list = laboratoryDictMappingService.list(new QueryWrapper() - .lambda() - .eq(LaboratoryDictMappingDO::getLaboratoryDictId, laboratoryDictDTO.getId())); - for (LaboratoryDictMappingDO laboratoryDictMappingDO : list) { - if(laboratoryDictDTO.getSessionDictId().stream().filter(id -> id.equals(laboratoryDictMappingDO.getSessionsDictId())).findAny().isPresent()) { - continue; - } else { - laboratoryDictMappingService.removeById(laboratoryDictMappingDO.getId()); - } - } - - for (Long id : laboratoryDictDTO.getSessionDictId()) { - if(list.stream().filter(ldm -> ldm.getSessionsDictId().equals(id)).findAny().isPresent()) { - continue; - } else { - LaboratoryDictMappingDO laboratoryDictMappingDO = new LaboratoryDictMappingDO(); - laboratoryDictMappingDO.setLaboratoryDictId(laboratoryDictDO.getId()); - laboratoryDictMappingDO.setSessionsDictId(id); - laboratoryDictMappingService.save(laboratoryDictMappingDO); - } - } - } - - @Override - @Transactional(rollbackFor = Exception.class) - public void delete(Long id) { - List list = laboratoryDictMappingService.list(new QueryWrapper() - .lambda() - .eq(LaboratoryDictMappingDO::getLaboratoryDictId, id)); - if(list != null) { - for (LaboratoryDictMappingDO laboratoryDictMappingDO : list) { - laboratoryDictMappingService.removeById(laboratoryDictMappingDO.getId()); - } - } - - this.baseMapper.deleteById(id); - } - - @Override - public LaboratoryDictDO getLaboratoryDicOne(String laboratoryType, String startDate) { - return this.baseMapper.getLaboratoryDicOne(laboratoryType, startDate); - } -} diff --git a/src/main/java/com/meishu/service/impl/LaboratorySessionMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/LaboratorySessionMappingServiceImpl.java deleted file mode 100644 index e9d0d59..0000000 --- a/src/main/java/com/meishu/service/impl/LaboratorySessionMappingServiceImpl.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.common.constant.AttendanceConstant; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.laboratorySession.CalendarStatusDTO; -import com.meishu.dto.laboratorySession.GetLaboratorySessionDTO; -import com.meishu.dto.laboratorySession.SetLaboratorySessionDTO; -import com.meishu.model.*; -import com.meishu.mapper.LaboratorySessionMappingMapper; -import com.meishu.service.*; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.DateFormatUtil; -import com.meishu.util.HttpUtil; -import com.meishu.vo.laboratorySession.*; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.*; -import java.util.stream.Collectors; - -/** - *

- * 实验室场次预约安排表 服务实现类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Service -public class LaboratorySessionMappingServiceImpl extends ServiceImpl implements LaboratorySessionMappingService { - - @Autowired - private SessionsDictService sessionsDictService; - - @Autowired - private LaboratoryDictService laboratoryDictService; - - @Autowired - private LaboratoryDictMappingService laboratoryDictMappingService; - - @Autowired - private LaboratoryUserMappingService laboratoryUserMappingService; - - @Autowired - private ClassesDictService classesDictService; - - @Override - public List getLaboratorySessionList(String startDate) { - List list = this.baseMapper.getLaboratorySessionList(startDate); - for (LaboratorySessionMappingVO laboratorySessionMappingVO : list) { - List sessionDictList = sessionsDictService.getListSessionDictById(laboratorySessionMappingVO.getLaboratoryDictId(), startDate); - laboratorySessionMappingVO.setTimeSlot(sessionDictList); - } - return list; - } - - @Override - @Transactional(rollbackFor = Exception.class) - public void deleteLaboratorySession(SetLaboratorySessionDTO setLaboratorySessionDTO) { - List list = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(LaboratorySessionMappingDO::getLaboratoryDictId, setLaboratorySessionDTO.getLaboratoryDictId()) - .eq(LaboratorySessionMappingDO::getStartDate, setLaboratorySessionDTO.getStartDate())); - if(list != null) { - for (LaboratorySessionMappingDO laboratorySessionMappingDO : list) { - this.baseMapper.deleteById(laboratorySessionMappingDO.getId()); - } - } - } - - @Override - @Transactional(rollbackFor = Exception.class) - public void setLaboratorySession(SetLaboratorySessionDTO setLaboratorySessionDTO) { - LaboratoryDictDO laboratoryDict = laboratoryDictService.getLaboratoryDicOne(setLaboratorySessionDTO.getLaboratoryType(), setLaboratorySessionDTO.getStartDate()); - if(laboratoryDict != null) { - throw new HttpException(70009); - } - - List laboratoryDictList = laboratoryDictService.list(new QueryWrapper() - .lambda() - .eq(LaboratoryDictDO::getLaboratoryType, setLaboratorySessionDTO.getLaboratoryType())); - if(laboratoryDictList == null) { - throw new HttpException(70001); - } - - /* 根据实验室类型查询关联数据 */ - for (LaboratoryDictDO laboratoryDictDO : laboratoryDictList) { - List list = laboratoryDictMappingService.list(new QueryWrapper() - .lambda() - .eq(LaboratoryDictMappingDO::getLaboratoryDictId, laboratoryDictDO.getId())); - /* 实验室场次关系 */ - for (LaboratoryDictMappingDO laboratoryDictMappingDO : list) { - SessionsDictDO sessionsDictDO = sessionsDictService.getById(laboratoryDictMappingDO.getSessionsDictId()); - if(sessionsDictDO == null) { - throw new HttpException(70002); - } - - /*Map params = new HashMap(); - params.put("organizerId", AttendanceConstant.organizerId); - params.put("date", setLaboratorySessionDTO.getStartDate()); - params.put("topic", setLaboratorySessionDTO.getStartDate() +"-"+ setLaboratorySessionDTO.getStartDate() + "-" + sessionsDictDO.getTimeSlot()); - params.put("startTime", AttendanceConstant.startTime); - params.put("endTime", AttendanceConstant.endTime); - HttpUtil.sendPost(params, "", AttendanceConstant.CREATE_TOPIC_URL, 1);*/ - - LaboratorySessionMappingDO laboratorySessionMappingDO = new LaboratorySessionMappingDO(); - laboratorySessionMappingDO.setSessionsDictId(laboratoryDictMappingDO.getSessionsDictId()); - laboratorySessionMappingDO.setLaboratoryDictId(laboratoryDictDO.getId()); - laboratorySessionMappingDO.setGrade(setLaboratorySessionDTO.getGrade()); - laboratorySessionMappingDO.setStartDate(setLaboratorySessionDTO.getStartDate()); - laboratorySessionMappingDO.setRegisterStartDate(setLaboratorySessionDTO.getRegisterStartDate()); - laboratorySessionMappingDO.setRegisterEndDate(setLaboratorySessionDTO.getRegisterEndDate()); - this.baseMapper.insert(laboratorySessionMappingDO); - } - } - } - - @Override - public void updateLaboratorySession(SetLaboratorySessionDTO setLaboratorySessionDTO) { - List list = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(LaboratorySessionMappingDO::getLaboratoryDictId, setLaboratorySessionDTO.getLaboratoryDictId()) - .eq(LaboratorySessionMappingDO::getStartDate, setLaboratorySessionDTO.getStartDate())); - if(list != null) { - for (LaboratorySessionMappingDO laboratorySessionMappingDO : list) { - if(setLaboratorySessionDTO.getSessionDictId().stream().filter(id -> id.equals(laboratorySessionMappingDO.getSessionsDictId())).findAny().isPresent()) { - continue; - } else { - this.baseMapper.deleteById(laboratorySessionMappingDO.getId()); - } - } - - if(setLaboratorySessionDTO.getSessionDictId() != null) { - for (Long id : setLaboratorySessionDTO.getSessionDictId()) { - LaboratorySessionMappingDO sessionMappingDO = new LaboratorySessionMappingDO(); - sessionMappingDO.setSessionsDictId(id); - sessionMappingDO.setLaboratoryDictId(setLaboratorySessionDTO.getLaboratoryDictId()); - sessionMappingDO.setGrade(setLaboratorySessionDTO.getGrade()); - sessionMappingDO.setStartDate(setLaboratorySessionDTO.getStartDate()); - sessionMappingDO.setRegisterStartDate(setLaboratorySessionDTO.getRegisterStartDate()); - sessionMappingDO.setRegisterEndDate(setLaboratorySessionDTO.getRegisterEndDate()); - if(list.stream().filter(ldm -> ldm.getSessionsDictId().equals(id)).findAny().isPresent()) { - LaboratorySessionMappingDO laboratorySessionMappingDO = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(LaboratorySessionMappingDO::getStartDate, setLaboratorySessionDTO.getStartDate()) - .eq(LaboratorySessionMappingDO::getSessionsDictId, id) - .eq(LaboratorySessionMappingDO::getLaboratoryDictId, setLaboratorySessionDTO.getLaboratoryDictId())); - if(laboratorySessionMappingDO != null) { - sessionMappingDO.setId(laboratorySessionMappingDO.getId()); - this.baseMapper.updateById(sessionMappingDO); - } - } else { - this.baseMapper.insert(sessionMappingDO); - } - } - } - } - } - - @Override - public LaboratorySessionMappingVO getOneById(Long laboratorySessionId) { - return this.baseMapper.getOneById(laboratorySessionId); - } - - @Override - public List getCalendarStatus(CalendarStatusDTO calendarStatusDTO) { - List data = new ArrayList<>(); - List list = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .like(LaboratorySessionMappingDO::getStartDate, calendarStatusDTO.getSelectDate()) - .groupBy(LaboratorySessionMappingDO::getStartDate)); - if(list != null) { - for (LaboratorySessionMappingDO laboratorySessionMappingDO : list) { - CalendarStatusVO calendarStatusVO = new CalendarStatusVO(); - calendarStatusVO.setStartDate(laboratorySessionMappingDO.getStartDate()); - calendarStatusVO.setStatus(1); - data.add(calendarStatusVO); - } - } - return data; - } - - @Override - public StatisticsVO getLaboratorySessionStatistics(CalendarStatusDTO calendarStatusDTO) { - StatisticsVO statisticsVO = new StatisticsVO(); - List list = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .like(LaboratorySessionMappingDO::getStartDate, calendarStatusDTO.getSelectDate())); - // 创建数量 - statisticsVO.setCreateNum(list.size()); - - // 占用场次数量 - Long sessionNum = list.stream().map(ls -> ls.getSessionsDictId()).distinct().count(); - statisticsVO.setSessionNum(Math.toIntExact(sessionNum)); - - // 占用实验室数量 - Long laboratoryNum = list.stream().map(ls -> ls.getLaboratoryDictId()).distinct().count(); - statisticsVO.setLaboratoryNum(Math.toIntExact(laboratoryNum)); - return statisticsVO; - } - - @Override - public List getLaboratorySessionDate(GetLaboratorySessionDTO getLaboratorySessionDTO) { - List list = this.baseMapper.getLaboratorySessionDate(getLaboratorySessionDTO.getLaboratoryType()); - - Calendar cal = Calendar.getInstance(); - cal.add(Calendar.DATE, -1); - return list.stream().filter(ls -> DateFormatUtil.parse(ls.getStartDate(), DateFormatUtil.FMT_sdf_yMd).after(cal.getTime())) - .map(ls -> ls.getStartDate()).collect(Collectors.toList()); - } - - @Override - @Async - public List getLaboratorySession(GetLaboratorySessionDTO getLaboratorySessionDTO) { - List data = new ArrayList<>(); - List list = this.baseMapper.getList(getLaboratorySessionDTO.getStudentId(), - getLaboratorySessionDTO.getStartDate(), - null); - if(list != null) { - for (LaboratorySessionMappingDO laboratorySessionMappingDO : list) { - LaboratoryDictDO laboratoryDict = laboratoryDictService.getById(laboratorySessionMappingDO.getLaboratoryDictId()); - if(laboratoryDict != null && laboratoryDict.getLaboratoryType().equals(getLaboratorySessionDTO.getLaboratoryType())) { - GetLaboratorySessionVO getLaboratorySessionVO = new GetLaboratorySessionVO(); - LaboratoryUserMappingDO laboratoryUserMappingDO = laboratoryUserMappingService.getOne(new QueryWrapper().lambda() - .eq(LaboratoryUserMappingDO::getUserRoleId, getLaboratorySessionDTO.getStudentId()) - .eq(LaboratoryUserMappingDO::getLaboratorySessionId, laboratorySessionMappingDO.getId())); - getLaboratorySessionVO.setId(laboratorySessionMappingDO.getId()); - if(laboratoryUserMappingDO != null) { - getLaboratorySessionVO.setStatus(1); - } else { - getLaboratorySessionVO.setStatus(0); - } - - getLaboratorySessionVO.setRegisterStartDate(laboratorySessionMappingDO.getRegisterStartDate()); - getLaboratorySessionVO.setRegisterEndDate(laboratorySessionMappingDO.getRegisterEndDate()); - - LaboratoryDictDO laboratoryDictDO = laboratoryDictService.getById(laboratorySessionMappingDO.getLaboratoryDictId()); - if(laboratoryDictDO != null) { - getLaboratorySessionVO.setLaboratoryName(laboratoryDictDO.getLaboratoryName()); - } - - SessionsDictDO sessionsDictDO = sessionsDictService.getById(laboratorySessionMappingDO.getSessionsDictId()); - if(sessionsDictDO != null) { - getLaboratorySessionVO.setTimeSlot(sessionsDictDO.getTimeSlot()); - } - - int count = laboratoryUserMappingService.count(new QueryWrapper().lambda() - .eq(LaboratoryUserMappingDO::getLaboratorySessionId, laboratorySessionMappingDO.getId())); - if(laboratoryDict.getMaxNum() >= count) { - getLaboratorySessionVO.setSurplus(laboratoryDict.getMaxNum() - count); - } else { - getLaboratorySessionVO.setSurplus(0); - } - data.add(getLaboratorySessionVO); - } - } - } - return data; - } -} \ No newline at end of file diff --git a/src/main/java/com/meishu/service/impl/LaboratoryUserMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/LaboratoryUserMappingServiceImpl.java deleted file mode 100644 index b222591..0000000 --- a/src/main/java/com/meishu/service/impl/LaboratoryUserMappingServiceImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.laboratoryUser.ApplyDTO; -import com.meishu.dto.laboratoryUser.LaboratoryUserPageDTO; -import com.meishu.mapper.LaboratorySessionMappingMapper; -import com.meishu.model.LaboratoryDictDO; -import com.meishu.model.LaboratorySessionMappingDO; -import com.meishu.model.LaboratoryUserMappingDO; -import com.meishu.mapper.LaboratoryUserMappingMapper; -import com.meishu.model.SessionsDictDO; -import com.meishu.service.LaboratoryDictService; -import com.meishu.service.LaboratorySessionMappingService; -import com.meishu.service.LaboratoryUserMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.service.SessionsDictService; -import com.meishu.util.DateFormatUtil; -import com.meishu.util.excel.ExcelUtil; -import com.meishu.vo.laboratorySession.LaboratorySessionMappingVO; -import com.meishu.vo.laboratoryUser.LaboratoryUserPageVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Service; - -import javax.xml.crypto.Data; -import java.util.Calendar; -import java.util.Date; -import java.util.List; - -/** - *

- * 实验室场次预约报名记录 服务实现类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Service -public class LaboratoryUserMappingServiceImpl extends ServiceImpl implements LaboratoryUserMappingService { - - @Autowired - private LaboratorySessionMappingMapper laboratorySessionMappingService; - - @Autowired - private SessionsDictService sessionsDictService; - - @Autowired - private LaboratoryDictService laboratoryDictService; - - @Override - public List getLaboratoryUserPage(LaboratoryUserPageDTO laboratoryUserPageDTO) { - return this.baseMapper.getLaboratoryUserPage(laboratoryUserPageDTO.getLaboratorySessionId(), laboratoryUserPageDTO.getStartDate()); - } - - @Override - public void exportLaboratoryUser(LaboratoryUserPageDTO laboratoryUserPageDTO) { - List list = this.baseMapper.getLaboratoryUserList(laboratoryUserPageDTO.getLaboratorySessionId(), laboratoryUserPageDTO.getStartDate()); - if(list != null) { - for (LaboratoryUserPageVO laboratoryUserPageVO : list) { - LaboratorySessionMappingVO laboratorySessionMappingVO = laboratorySessionMappingService.getOneById(laboratoryUserPageVO.getLaboratorySessionId()); - if(laboratorySessionMappingVO != null) { - laboratoryUserPageVO.setLaboratoryName(laboratorySessionMappingVO.getLaboratoryName()); - } - - SessionsDictDO sessionsDictDO = sessionsDictService.getById(laboratoryUserPageVO.getSessionsDictId()); - if(sessionsDictDO != null) { - laboratoryUserPageVO.setTimeSlot(sessionsDictDO.getTimeSlot()); - } - } - } - ExcelUtil.writeExcel(list, LaboratoryUserPageVO.class); - } - - @Override - public void registration(ApplyDTO applyDTO) { - LaboratorySessionMappingDO laboratorySessionMappingDO = laboratorySessionMappingService.selectById(applyDTO.getLaboratorySessionId()); - if(laboratorySessionMappingDO == null) { - throw new HttpException(70003); - } - - // 未到达报名时间 - if(new Date().before(DateFormatUtil.parse(laboratorySessionMappingDO.getRegisterStartDate(), DateFormatUtil.FMT_sdf_yMd))) { - throw new HttpException(70004); - } - - String date = DateFormatUtil.format(new Date(), DateFormatUtil.FMT_sdf_yMd); - if(new Date().before(DateFormatUtil.parse(date+" 12:00:00", DateFormatUtil.FMT_sdf14_L))) { - throw new HttpException(70004); - } - - if(new Date().after(DateFormatUtil.parse(date+" 21:00:00", DateFormatUtil.FMT_sdf14_L))) { - throw new HttpException(70004); - } - - // 结束报名 - Calendar calendar = Calendar.getInstance(); - calendar.setTime(DateFormatUtil.parse(laboratorySessionMappingDO.getRegisterEndDate(), DateFormatUtil.FMT_sdf_yMd)); - calendar.add(Calendar.DATE, 1); - if(new Date().after(calendar.getTime())) { - throw new HttpException(70005); - } - - LaboratoryDictDO laboratoryDictDO = laboratoryDictService.getById(laboratorySessionMappingDO.getLaboratoryDictId()); - - // 人数上限 - List list = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(LaboratoryUserMappingDO::getLaboratorySessionId, applyDTO.getLaboratorySessionId())); - if(laboratoryDictDO.getMaxNum() <= list.size()) { - throw new HttpException(70006); - } - - // 同类型的实验室相同的时间内场次相同不能进行报名 - LaboratoryUserMappingDO laboratoryUserMapping = this.baseMapper.getLaboratoryUserMapping(applyDTO.getStudentId(), laboratorySessionMappingDO.getStartDate(), laboratorySessionMappingDO.getSessionsDictId()); - if(laboratoryUserMapping != null) { - throw new HttpException(70013); - } - - // 已报名 - if(list != null && list.size() > 0 ) { - if(list.stream().filter(ls -> ls.getUserRoleId().equals(applyDTO.getStudentId()) - && ls.getLaboratorySessionId().equals(applyDTO.getLaboratorySessionId())).findAny().isPresent()) { - throw new HttpException(70007); - } - } - - LaboratoryUserMappingDO laboratoryUserMappingDO = new LaboratoryUserMappingDO(); - laboratoryUserMappingDO.setLaboratorySessionId(applyDTO.getLaboratorySessionId()); - laboratoryUserMappingDO.setUserRoleId(applyDTO.getStudentId()); - this.baseMapper.insert(laboratoryUserMappingDO); - } - - @Override - public void cancelRegistration(ApplyDTO applyDTO) { - LaboratorySessionMappingDO laboratorySessionMappingDO = laboratorySessionMappingService.selectById(applyDTO.getLaboratorySessionId()); - if(laboratorySessionMappingDO == null) { - throw new HttpException(70003); - } - - // 结束报名 - Calendar calendar = Calendar.getInstance(); - calendar.setTime(DateFormatUtil.parse(laboratorySessionMappingDO.getRegisterEndDate(), DateFormatUtil.FMT_sdf_yMd)); - calendar.add(Calendar.DATE, 1); - if(new Date().after(calendar.getTime())) { - throw new HttpException(70014); - } - - // 已报名 - LaboratoryUserMappingDO laboratoryUserMappingDO = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(LaboratoryUserMappingDO::getUserRoleId, applyDTO.getStudentId()) - .eq(LaboratoryUserMappingDO::getLaboratorySessionId, applyDTO.getLaboratorySessionId())); - if(laboratoryUserMappingDO == null) { - throw new HttpException(70008); - } - - this.baseMapper.deleteById(laboratoryUserMappingDO.getId()); - } -} diff --git a/src/main/java/com/meishu/service/impl/PermissionsDictServiceImpl.java b/src/main/java/com/meishu/service/impl/PermissionsDictServiceImpl.java deleted file mode 100644 index ec16689..0000000 --- a/src/main/java/com/meishu/service/impl/PermissionsDictServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.PermissionsDictDO; -import com.meishu.mapper.PermissionsDictMapper; -import com.meishu.service.PermissionsDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 权限表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Service -public class PermissionsDictServiceImpl extends ServiceImpl implements PermissionsDictService { - -} diff --git a/src/main/java/com/meishu/service/impl/RoleAdministerMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/RoleAdministerMappingServiceImpl.java deleted file mode 100644 index 49c834c..0000000 --- a/src/main/java/com/meishu/service/impl/RoleAdministerMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.RoleAdministerMappingDO; -import com.meishu.mapper.RoleAdministerMappingMapper; -import com.meishu.service.RoleAdministerMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Service -public class RoleAdministerMappingServiceImpl extends ServiceImpl implements RoleAdministerMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/RoleDictServiceImpl.java b/src/main/java/com/meishu/service/impl/RoleDictServiceImpl.java deleted file mode 100644 index 78de1bf..0000000 --- a/src/main/java/com/meishu/service/impl/RoleDictServiceImpl.java +++ /dev/null @@ -1,148 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.role.AddPermissionDTO; -import com.meishu.dto.role.DeletePermissionDTO; -import com.meishu.dto.role.GetRoleTeachersDTO; -import com.meishu.dto.role.RoleTeacherDTO; -import com.meishu.dto.rule.GetRuleReportDTO; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.RoleDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.role.GetAllRolesVO; -import com.meishu.vo.role.GetRoleTeachersVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import javax.management.relation.Role; -import java.util.ArrayList; -import java.util.List; - -/** - *

- * 角色表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Service -public class RoleDictServiceImpl extends ServiceImpl implements RoleDictService { - - @Autowired - private RoleAdministerMappingMapper roleAdministerMappingMapper; - - @Autowired - private RolePermissionMappingMapper rolePermissionMappingMapper; - - @Autowired - private AdministerMapper administerMapper; - - public List getAllRoles(){ - - List getAllRolesVOS = new ArrayList<>(); - - List roleDictDOS = this.baseMapper.selectList(null); - for (RoleDictDO roleDictDO : roleDictDOS){ - GetAllRolesVO getAllRolesVO = new GetAllRolesVO(); - List list = rolePermissionMappingMapper.getRolePermission(roleDictDO.getId()); - //树形结构 - List treeList = new ArrayList(); - if (list != null) { - list.forEach(permission -> { - if (permission.getParentId() == null) { - treeList.add(permission); - } - - list.forEach(p -> { - if (null != p.getParentId() && p.getParentId().equals(permission.getId())) { - if (permission.getChildren() == null) { - permission.setChildren(new ArrayList<>()); - } - permission.getChildren().add(p); - } - }); - }); - } - - BeanUtils.copyProperties(roleDictDO,getAllRolesVO); - getAllRolesVO.setPermissionsDictDOS(treeList); - getAllRolesVOS.add(getAllRolesVO); - } - return getAllRolesVOS; - } - - public IPage getRoleTeachers(GetRoleTeachersDTO getRoleTeachersDTO){ - Page pager = new Page(getRoleTeachersDTO.getPageNum(), getRoleTeachersDTO.getPageSize()); - IPage getRoleTeachersVOIPage = this.baseMapper.getRoleTeachers(pager,getRoleTeachersDTO.getRoleId(),getRoleTeachersDTO.getUserName()); - List getRoleTeachersVOS = getRoleTeachersVOIPage.getRecords(); - for (GetRoleTeachersVO getRoleTeachersVO : getRoleTeachersVOS){ - List departmentDictDOS = administerMapper.getDepartmentByAdministerId(getRoleTeachersVO.getAdministerId()); - getRoleTeachersVO.setDepartmentDictDOS(departmentDictDOS); - } - return getRoleTeachersVOIPage; - } - - public String removeTeacher(RoleTeacherDTO roleTeacherDTO){ - - roleAdministerMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(RoleAdministerMappingDO::getRoleId,roleTeacherDTO.getRoleId()) - .in(RoleAdministerMappingDO::getId,roleTeacherDTO.getIds())); - - return ConstantUtils.DELETE_SUCCESS; - } - - public String roleTeacher(RoleTeacherDTO roleTeacherDTO){ - - roleAdministerMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(RoleAdministerMappingDO::getRoleId,roleTeacherDTO.getRoleId())); - - List longs = roleTeacherDTO.getIds(); - for (Long lg : longs){ - RoleAdministerMappingDO roleAdministerMappingDO = new RoleAdministerMappingDO(); - roleAdministerMappingDO.setAdministerId(lg); - roleAdministerMappingDO.setRoleId(roleTeacherDTO.getRoleId()); - roleAdministerMappingMapper.insert(roleAdministerMappingDO); - } - return ConstantUtils.ADD_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public String addPermission(AddPermissionDTO addPermissionDTO){ - List longs = addPermissionDTO.getPermissionIds(); - - rolePermissionMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(RolePermissionMappingDO::getRoleId,addPermissionDTO.getRoleId())); - - for (Long lg : longs){ - RolePermissionMappingDO rolePermissionMappingDO = new RolePermissionMappingDO(); - rolePermissionMappingDO.setRoleId(addPermissionDTO.getRoleId()); - rolePermissionMappingDO.setPermissionId(lg); - rolePermissionMappingMapper.insert(rolePermissionMappingDO); - } - return ConstantUtils.ADD_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public String deletePermission(DeletePermissionDTO deletePermissionDTO){ - - List longs = deletePermissionDTO.getRoleIds(); - for (Long lg : longs){ - rolePermissionMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(RolePermissionMappingDO::getPermissionId,deletePermissionDTO.getPermissionId()) - .eq(RolePermissionMappingDO::getRoleId,lg)); - } - return ConstantUtils.DELETE_SUCCESS; - } - -} diff --git a/src/main/java/com/meishu/service/impl/RolePermissionMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/RolePermissionMappingServiceImpl.java deleted file mode 100644 index 831027e..0000000 --- a/src/main/java/com/meishu/service/impl/RolePermissionMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.RolePermissionMappingDO; -import com.meishu.mapper.RolePermissionMappingMapper; -import com.meishu.service.RolePermissionMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 系统用户角色表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-26 - */ -@Service -public class RolePermissionMappingServiceImpl extends ServiceImpl implements RolePermissionMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/SessionsDictServiceImpl.java b/src/main/java/com/meishu/service/impl/SessionsDictServiceImpl.java deleted file mode 100644 index 5a13783..0000000 --- a/src/main/java/com/meishu/service/impl/SessionsDictServiceImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.SessionsDictDO; -import com.meishu.mapper.SessionsDictMapper; -import com.meishu.service.SessionsDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - *

- * 场次字典表 服务实现类 - *

- * - * @author DengMin - * @since 2021-08-17 - */ -@Service -public class SessionsDictServiceImpl extends ServiceImpl implements SessionsDictService { - - @Override - public List getListById(Long laboratoryDictId) { - return this.baseMapper.getListById(laboratoryDictId); - } - - @Override - public List getListSessionDictById(Long laboratoryDictId, String startDate) { - return this.baseMapper.getListSessionDictById(laboratoryDictId, startDate); - } -} diff --git a/src/main/java/com/meishu/service/impl/SignInRecordServiceImpl.java b/src/main/java/com/meishu/service/impl/SignInRecordServiceImpl.java deleted file mode 100644 index 505d3fa..0000000 --- a/src/main/java/com/meishu/service/impl/SignInRecordServiceImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.sign.ClassSignInDTO; -import com.meishu.model.SignInRecordDO; -import com.meishu.mapper.SignInRecordMapper; -import com.meishu.service.SignInRecordService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.vo.sign.ClassSignInVO; -import org.springframework.stereotype.Service; - -/** - *

- * 学生签到表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-28 - */ -@Service -public class SignInRecordServiceImpl extends ServiceImpl implements SignInRecordService { - - public IPage classSignIn(ClassSignInDTO classSignInDTO){ - Page pager = new Page(classSignInDTO.getPageNum(), classSignInDTO.getPageSize()); - return this.baseMapper.classSignIn(pager,classSignInDTO.getClassId(),classSignInDTO.getStartDate(),classSignInDTO.getEndDate(),classSignInDTO.getUserName()); - } - -} diff --git a/src/main/java/com/meishu/service/impl/SmsCodeServiceImpl.java b/src/main/java/com/meishu/service/impl/SmsCodeServiceImpl.java deleted file mode 100644 index 8393980..0000000 --- a/src/main/java/com/meishu/service/impl/SmsCodeServiceImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.sms.SendVerifyCodeDTO; -import com.meishu.model.SmsCodeDO; -import com.meishu.mapper.SmsCodeMapper; -import com.meishu.model.UserRoleDO; -import com.meishu.service.SmsCodeService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.service.UserRoleService; -import com.meishu.util.ConstantUtils; -import com.meishu.util.RandomUtil; -import com.meishu.util.SMSUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -/** - *

- * 短信验证码 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Service -public class SmsCodeServiceImpl extends ServiceImpl implements SmsCodeService { - - @Autowired - private SMSUtils smsUtils; - - @Autowired - private UserRoleService userRoleService; - - @Override - public void sendVerifyCode(SendVerifyCodeDTO sendVerifyCodeDTO) { - UserRoleDO userRoleDO =userRoleService.getOne(new QueryWrapper() - .lambda() - .eq(UserRoleDO::getPhone, sendVerifyCodeDTO.getPhone())); - if(userRoleDO == null) { - throw new HttpException(70012); - } - - String code = RandomUtil.getRandomCode(6); - smsUtils.send(sendVerifyCodeDTO.getPhone(), code); - - SmsCodeDO smsCodeDO = new SmsCodeDO(); - smsCodeDO.setCode(code); - smsCodeDO.setTelephone(sendVerifyCodeDTO.getPhone()); - this.baseMapper.insert(smsCodeDO); - } -} diff --git a/src/main/java/com/meishu/service/impl/StudentServiceImpl.java b/src/main/java/com/meishu/service/impl/StudentServiceImpl.java deleted file mode 100644 index fc30174..0000000 --- a/src/main/java/com/meishu/service/impl/StudentServiceImpl.java +++ /dev/null @@ -1,172 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.course.GetExercisesByTreeDTO; -import com.meishu.dto.student.*; -import com.meishu.dto.subject.BatchStatusOprDTO; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.StudentService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.util.MathUtil; -import com.meishu.util.RandomUtil; -import com.meishu.util.SMSUtils; -import com.meishu.vo.course.*; -import com.meishu.vo.grade.DimensionStarVO; -import com.meishu.vo.grade.QueryOneGradeVO; -import com.meishu.vo.rule.GetOneExaminationDetailVO; -import com.meishu.vo.rule.GetStudentRulesVO; -import com.meishu.vo.rule.StudentStarVO; -import com.meishu.vo.student.*; -import com.meishu.vo.voddict.GetCourseTreesVodsVO; -import net.sf.json.JSONArray; -import org.apache.commons.lang.StringUtils; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - *

- * 白名单 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-25 - */ -@Service -public class StudentServiceImpl extends ServiceImpl implements StudentService { - - @Autowired - private SmsCodeMapper smsCodeMapper; - - - public String sendMsg(StudentDO studentDO) { - - //验证是否是白名单用户 - Integer count = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(StudentDO::getTelephone, studentDO.getTelephone())); - - StudentDO studentDO1 = this.baseMapper.getStudentInfo(studentDO.getTelephone()); - - if (count == 0 && null == studentDO1) { - throw new HttpException(10010); - } - - String verifyCode = RandomUtil.getRandomCode(6); - String param = "{ \"code\":\"" + verifyCode + "\"}"; - - //插入短信验证码 - smsCodeMapper.delete(new QueryWrapper() - .lambda() - .eq(SmsCodeDO::getTelephone, studentDO.getTelephone())); - - SmsCodeDO smsCodeDO = new SmsCodeDO(); - smsCodeDO.setTelephone(studentDO.getTelephone()); - smsCodeDO.setCode(verifyCode); - smsCodeMapper.insert(smsCodeDO); - return SMSUtils.sendVerifySMS(ConstantUtils.TEMPLATE_CODE, smsCodeDO.getTelephone(), param); - } - - public LoginVO login(SmsCodeDO smsCodeDO) { - - LoginVO loginVO = new LoginVO(); - - Integer count = smsCodeMapper.selectCount(new QueryWrapper() - .lambda() - .eq(SmsCodeDO::getTelephone, smsCodeDO.getTelephone()) - .eq(SmsCodeDO::getCode, smsCodeDO.getCode()) - .gt(SmsCodeDO::getCreateDate, LocalDateTime.now().minusMinutes(10L)) - ); - - //提交小程序,验证专用 - if ("15666666666".equals(smsCodeDO.getTelephone())) { - count = 1; - } - - if (count > 0) { - StudentDO studentDO = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(StudentDO::getTelephone, smsCodeDO.getTelephone())); - if (smsCodeDO == null) { - throw new HttpException(10013); - } - //该手机号是学生账号 - if (null != studentDO) { - BeanUtils.copyProperties(studentDO, loginVO); - - loginVO.setIsStudent("1"); - } else { - StudentDO studentDO2 = this.baseMapper.getStudentInfo(smsCodeDO.getTelephone()); - loginVO.setUsername(studentDO2.getUsername()); - List subjectReportVOS = this.baseMapper.getSubjectReport(studentDO2.getId()); - loginVO.setSubjectReportVOS(subjectReportVOS); - loginVO.setId(studentDO2.getId()); - loginVO.setIsStudent("0"); - } - return loginVO; - } else { - throw new HttpException(10003); - } - } - - public String addStudent(StudentDO studentDO) { - - Integer count = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(StudentDO::getTelephone,studentDO.getTelephone())); - - if (count>0){ - throw new HttpException(10014); - } - - studentDO.setStatus("1"); - this.baseMapper.insert(studentDO); - return ConstantUtils.ADD_SUCCESS; - } - - public String updateStudent(StudentDO studentDO) { - this.baseMapper.updateById(studentDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - @Transactional(rollbackFor = Exception.class) - public String batchUpdateStudent(BatchStatusOprDTO batchStatusOprDTO) { - List longs = batchStatusOprDTO.getIds(); - for (Long lg : longs) { - StudentDO studentDO = new StudentDO(); - studentDO.setStatus(batchStatusOprDTO.getStatus()); - studentDO.setId(lg); - this.baseMapper.updateById(studentDO); - } - return ConstantUtils.SUCCESS_UPDATE; - } - - public String deleteStudent(DeleteStudentDTO deleteStudentDTO) { - - List ids = deleteStudentDTO.getIds(); - for (Long id : ids) { - this.baseMapper.deleteById(id); - } - return ConstantUtils.DELETE_SUCCESS; - } - - public QueryStudentVO queryStudent(StudentDO studentDO) { - QueryStudentVO queryStudentVO = new QueryStudentVO(); - StudentDO studentDO1 = this.baseMapper.selectById(studentDO.getId()); - BeanUtils.copyProperties(studentDO1, queryStudentVO); - return queryStudentVO; - } - - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectDictServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectDictServiceImpl.java deleted file mode 100644 index d08e778..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectDictServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.SubjectDictDO; -import com.meishu.mapper.SubjectDictMapper; -import com.meishu.service.SubjectDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学校科目字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@Service -public class SubjectDictServiceImpl extends ServiceImpl implements SubjectDictService { - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectDimensionDictServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectDimensionDictServiceImpl.java deleted file mode 100644 index fa06aed..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectDimensionDictServiceImpl.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.mapper.SubjectDimensionStarDictMapper; -import com.meishu.mapper.SubjectTestGradeStarMappingMapper; -import com.meishu.model.*; -import com.meishu.mapper.SubjectDimensionDictMapper; -import com.meishu.service.SubjectDimensionDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.dimension.GetAllDimensionStarVO; -import com.meishu.vo.dimension.GetAllDimensionStarsVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; - -/** - *

- * 测评表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Service -public class SubjectDimensionDictServiceImpl extends ServiceImpl implements SubjectDimensionDictService { - - @Autowired - private SubjectDimensionStarDictMapper subjectDimensionStarDictMapper; - - @Autowired - private SubjectDimensionDictMapper subjectDimensionDictMapper; - - @Autowired - private SubjectTestGradeStarMappingMapper subjectTestGradeStarMappingMapper; - - public List getAllDimensions(SubjectDimensionDictDO subjectDimensionDictDO){ - return this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectDimensionDictDO::getRuleId,subjectDimensionDictDO.getRuleId())); - } - - public String deleteDimensionById(SubjectDimensionDictDO subjectDimensionDictDO){ - this.baseMapper.deleteById(subjectDimensionDictDO.getId()); - - //删除下面的星级 - subjectDimensionStarDictMapper.delete(new QueryWrapper() - .lambda() - .eq(SubjectDimensionStarDictDO::getDimensionId,subjectDimensionDictDO.getId())); - - return ConstantUtils.DELETE_SUCCESS; - } - - public String updateDimension(SubjectDimensionDictDO subjectDimensionDictDO){ - this.baseMapper.updateById(subjectDimensionDictDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - public String addDimension(SubjectDimensionDictDO subjectDimensionDictDO){ - this.baseMapper.insert(subjectDimensionDictDO); - return ConstantUtils.ADD_SUCCESS; - } - - public List getAllDimensionStar(SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - - //通过发布id查询规则 - SubjectRuleDO subjectRuleDO = subjectTestGradeStarMappingMapper.getRuleIdByPublishId(subjectTestPublishGradeDO.getPublishId()); - - List getAllDimensionStarVOS = new ArrayList<>(); - - //获取所有的维度 - List subjectDimensionDictDOS = subjectDimensionDictMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectDimensionDictDO::getRuleId,subjectRuleDO.getId())); - - for (SubjectDimensionDictDO subjectDimensionDictDO: subjectDimensionDictDOS){ - - GetAllDimensionStarVO getAllDimensionStarsVO = new GetAllDimensionStarVO(); - //维度获取星级 - List subjectDimensionStarDictDOS = subjectDimensionStarDictMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectDimensionStarDictDO::getDimensionId,subjectDimensionDictDO.getId())); - - getAllDimensionStarsVO.setDimensionId(subjectDimensionDictDO.getId()); - getAllDimensionStarsVO.setDimension(subjectDimensionDictDO.getDimension()); - getAllDimensionStarsVO.setSubjectDimensionStarDictDOS(subjectDimensionStarDictDOS); - - getAllDimensionStarVOS.add(getAllDimensionStarsVO); - } - return getAllDimensionStarVOS; - } - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectDimensionStarDictServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectDimensionStarDictServiceImpl.java deleted file mode 100644 index cdfe15c..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectDimensionStarDictServiceImpl.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.dto.dimension.AddStarDTO; -import com.meishu.mapper.SubjectStarTreeMappingMapper; -import com.meishu.dto.dimension.DeleteStarByIdDTO; -import com.meishu.model.SubjectDimensionStarDictDO; -import com.meishu.mapper.SubjectDimensionStarDictMapper; -import com.meishu.model.SubjectStarTreeMappingDO; -import com.meishu.model.SubjectTreeDO; -import com.meishu.service.SubjectDimensionStarDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.dimension.GetAllDimensionStarsVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; - -/** - *

- * 维度星级字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Service -public class SubjectDimensionStarDictServiceImpl extends ServiceImpl implements SubjectDimensionStarDictService { - - @Autowired - private SubjectStarTreeMappingMapper subjectStarTreeMappingMapper; - - - public List getAllDimensionStars(SubjectDimensionStarDictDO subjectDimensionStartDictDO) { - - List getAllDimensionStarsVOS = new ArrayList<>(); - - List subjectDimensionStartDictDOS = this.baseMapper.getStar(subjectDimensionStartDictDO.getDimensionId(),subjectDimensionStartDictDO.getStar()); - for (SubjectDimensionStarDictDO subjectDimensionStartDictDO1 : subjectDimensionStartDictDOS) { - GetAllDimensionStarsVO getAllDimensionStarsVO = new GetAllDimensionStarsVO(); - BeanUtils.copyProperties(subjectDimensionStartDictDO1, getAllDimensionStarsVO); - List subjectTreeDOS = subjectStarTreeMappingMapper.getSubjectTrees(subjectDimensionStartDictDO1.getId()); - getAllDimensionStarsVO.setSubjectTreeDOS(subjectTreeDOS); - getAllDimensionStarsVOS.add(getAllDimensionStarsVO); - } - return getAllDimensionStarsVOS; - } - - public String deleteStarById(DeleteStarByIdDTO deleteDimensionByIdDTO) { - - List longs = deleteDimensionByIdDTO.getIds(); - for (Long lg : longs) { - this.baseMapper.deleteById(lg); - } - return ConstantUtils.DELETE_SUCCESS; - } - - public String addStar(AddStarDTO addStarDTO) { - - SubjectDimensionStarDictDO subjectDimensionStartDictDO = new SubjectDimensionStarDictDO(); - BeanUtils.copyProperties(addStarDTO, subjectDimensionStartDictDO); - this.baseMapper.insert(subjectDimensionStartDictDO); - - List treeIds = addStarDTO.getTreeIds(); - for (Long lg : treeIds) { - SubjectStarTreeMappingDO subjectStarTreeMappingDO = new SubjectStarTreeMappingDO(); - subjectStarTreeMappingDO.setSubjectTreeId(lg); - subjectStarTreeMappingDO.setSubjectStarId(subjectDimensionStartDictDO.getId()); - subjectStarTreeMappingMapper.insert(subjectStarTreeMappingDO); - } - return ConstantUtils.ADD_SUCCESS; - } - - public String updateStar(AddStarDTO addStarDTO) { - - SubjectDimensionStarDictDO subjectDimensionStartDictDO = new SubjectDimensionStarDictDO(); - BeanUtils.copyProperties(addStarDTO, subjectDimensionStartDictDO); - this.baseMapper.updateById(subjectDimensionStartDictDO); - - //删除之前的知识树映射 - subjectStarTreeMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(SubjectStarTreeMappingDO::getSubjectStarId, addStarDTO.getId())); - - List treeIds = addStarDTO.getTreeIds(); - for (Long lg : treeIds) { - SubjectStarTreeMappingDO subjectStarTreeMappingDO = new SubjectStarTreeMappingDO(); - subjectStarTreeMappingDO.setSubjectTreeId(lg); - subjectStarTreeMappingDO.setSubjectStarId(subjectDimensionStartDictDO.getId()); - subjectStarTreeMappingMapper.insert(subjectStarTreeMappingDO); - } - - return ConstantUtils.SUCCESS_UPDATE; - } - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectRuleServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectRuleServiceImpl.java deleted file mode 100644 index 33d998f..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectRuleServiceImpl.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.rule.GetAllRulesDTO; -import com.meishu.mapper.SubjectTestDictMapper; -import com.meishu.model.SubjectRuleDO; -import com.meishu.mapper.SubjectRuleMapper; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.service.SubjectRuleService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.rule.GetAllRulesVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - *

- * 规则字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@Service -public class SubjectRuleServiceImpl extends ServiceImpl implements SubjectRuleService { - - @Autowired - private SubjectTestDictMapper subjectTestDictMapper; - - public IPage getAllRules(GetAllRulesDTO getAllRulesDTO) { - Page pager = new Page(getAllRulesDTO.getPageNum(), getAllRulesDTO.getPageSize()); - return this.baseMapper.getAllRules(pager); - } - - public List getRules(){ - return this.baseMapper.getRules(); - } - - public String addRule(SubjectRuleDO subjectRuleDO) { - subjectRuleDO.setStatus("1"); - this.baseMapper.insert(subjectRuleDO); - return ConstantUtils.ADD_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public String updateRule(SubjectRuleDO subjectRuleDO) { - this.baseMapper.updateById(subjectRuleDO); - List subjectTestDictDOS = subjectTestDictMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTestDictDO::getRuleId,subjectRuleDO.getId())); - for (SubjectTestDictDO subjectTestDictDO : subjectTestDictDOS){ - subjectTestDictDO.setStatus(subjectRuleDO.getStatus()); - subjectTestDictMapper.updateById(subjectTestDictDO); - } - return ConstantUtils.SUCCESS_UPDATE; - } - - public String deleteRule(SubjectRuleDO subjectRuleDO){ - this.baseMapper.deleteById(subjectRuleDO.getId()); - return ConstantUtils.DELETE_SUCCESS; - } - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectSemesterServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectSemesterServiceImpl.java deleted file mode 100644 index 96b6b7f..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectSemesterServiceImpl.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.semester.GetSemesterScoreDTO; -import com.meishu.dto.semester.GetStudentDetailDTO; -import com.meishu.dto.semester.GetStudentRecordDTO; -import com.meishu.mapper.ClassesDictHistoryMapper; -import com.meishu.mapper.ClassesDictMapper; -import com.meishu.model.ClassesDictDO; -import com.meishu.model.ClassesDictHistoryDO; -import com.meishu.model.SubjectSemesterDO; -import com.meishu.mapper.SubjectSemesterMapper; -import com.meishu.service.SubjectSemesterService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.vo.semester.*; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.ArrayList; -import java.util.List; - -/** - *

- * 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-11 - */ -@Service -public class SubjectSemesterServiceImpl extends ServiceImpl implements SubjectSemesterService { - - @Autowired - private ClassesDictMapper classesDictMapper; - - @Autowired - private ClassesDictHistoryMapper classesDictHistoryMapper; - - public List getAllStudyingSemester() { - - List result = new ArrayList<>(); - - String[] array = new String[]{"高一", "高二", "高三"}; - - for (String str : array) { - GetAllStudyingSemesterVO subjectSemesterServiceVO = new GetAllStudyingSemesterVO(); - subjectSemesterServiceVO.setGradeType(str); - subjectSemesterServiceVO.setClassesDictDOS(classesDictMapper.getGradeClasses(str)); - result.add(subjectSemesterServiceVO); - } - return result; - } - - public List getAllPastSemester(){ - - List result = new ArrayList<>(); - - String[] array = new String[]{"高一", "高二", "高三"}; - - for (String str : array) { - GetAllPastSemesterVO getAllPastSemesterVO = new GetAllPastSemesterVO(); - getAllPastSemesterVO.setGradeType(str); - getAllPastSemesterVO.setClassesDictDOS(classesDictHistoryMapper.getAllPastSemester(str)); - result.add(getAllPastSemesterVO); - } - return result; - } - - public IPage getSemesterScore(GetSemesterScoreDTO getSemesterScoreDTO) { - Page pager = new Page(getSemesterScoreDTO.getPageNum(), getSemesterScoreDTO.getPageSize()); - return this.baseMapper.getSemesterScore(pager, getSemesterScoreDTO.getSemester(), getSemesterScoreDTO.getGrade(), getSemesterScoreDTO.getClasses(), getSemesterScoreDTO.getSession(), getSemesterScoreDTO.getSubject(), getSemesterScoreDTO.getUserName()); - } - - public List exportScore(GetSemesterScoreDTO getSemesterScoreDTO) { - return this.baseMapper.exportScore(getSemesterScoreDTO.getSemester(), getSemesterScoreDTO.getGrade(),getSemesterScoreDTO.getClasses(),getSemesterScoreDTO.getSession(), getSemesterScoreDTO.getSubject(), getSemesterScoreDTO.getUserName()); - } - - public IPage getStudentDetail(GetStudentDetailDTO getStudentDetailDTO) { - Page pager = new Page(getStudentDetailDTO.getPageNum(), getStudentDetailDTO.getPageSize()); - return this.baseMapper.getStudentDetail(pager, getStudentDetailDTO.getId(), getStudentDetailDTO.getUserId()); - } - - public List getStudentRecord(GetStudentRecordDTO getStudentRecordDTO){ - return this.baseMapper.getStudentRecord(getStudentRecordDTO); - } - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectStarTreeMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectStarTreeMappingServiceImpl.java deleted file mode 100644 index 565b9f7..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectStarTreeMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.SubjectStarTreeMappingDO; -import com.meishu.mapper.SubjectStarTreeMappingMapper; -import com.meishu.service.SubjectStarTreeMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 测评-知识点关联表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-06 - */ -@Service -public class SubjectStarTreeMappingServiceImpl extends ServiceImpl implements SubjectStarTreeMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectStudentAnswerStarServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectStudentAnswerStarServiceImpl.java deleted file mode 100644 index 8eefa5b..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectStudentAnswerStarServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.SubjectStudentAnswerStarDO; -import com.meishu.mapper.SubjectStudentAnswerStarMapper; -import com.meishu.service.SubjectStudentAnswerStarService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生答卷星级表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Service -public class SubjectStudentAnswerStarServiceImpl extends ServiceImpl implements SubjectStudentAnswerStarService { - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectTestDictServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectTestDictServiceImpl.java deleted file mode 100644 index 20e8732..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectTestDictServiceImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.test.GetAllTestDTO; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.mapper.SubjectTestDictMapper; -import com.meishu.service.SubjectTestDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.test.GetAllTestVO; -import com.meishu.vo.test.GetTestReportVO; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - *

- * 测评表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-20 - */ -@Service -public class SubjectTestDictServiceImpl extends ServiceImpl implements SubjectTestDictService { - - - public IPage getAllTest(GetAllTestDTO getAllTestDTO){ - Page pager = new Page(getAllTestDTO.getPageNum(), getAllTestDTO.getPageSize()); - return this.baseMapper.getAllTest(pager,getAllTestDTO.getRuleId(),getAllTestDTO.getTestName()); - } - - public List getTest(GetAllTestDTO getAllTestDTO){ - return this.baseMapper.getTest(getAllTestDTO.getRuleId(),getAllTestDTO.getTestName()); - } - - public String insertTest(SubjectTestDictDO subjectTestDictDO){ - this.baseMapper.insert(subjectTestDictDO); - return ConstantUtils.ADD_SUCCESS; - } - - public String updateTest(SubjectTestDictDO subjectTestDictDO){ - this.baseMapper.updateById(subjectTestDictDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - public String deleteByTestId(SubjectTestDictDO subjectTestDictDO){ - this.baseMapper.deleteById(subjectTestDictDO.getId()); - return ConstantUtils.DELETE_SUCCESS; - } - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectTestGradeExampleMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectTestGradeExampleMappingServiceImpl.java deleted file mode 100644 index 52a1504..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectTestGradeExampleMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.SubjectTestGradeExampleMappingDO; -import com.meishu.mapper.SubjectTestGradeExampleMappingMapper; -import com.meishu.service.SubjectTestGradeExampleMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 样卷映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@Service -public class SubjectTestGradeExampleMappingServiceImpl extends ServiceImpl implements SubjectTestGradeExampleMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectTestGradeStarMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectTestGradeStarMappingServiceImpl.java deleted file mode 100644 index 741b7eb..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectTestGradeStarMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.SubjectTestGradeStarMappingDO; -import com.meishu.mapper.SubjectTestGradeStarMappingMapper; -import com.meishu.service.SubjectTestGradeStarMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 档次星级映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@Service -public class SubjectTestGradeStarMappingServiceImpl extends ServiceImpl implements SubjectTestGradeStarMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectTestPublishGradeServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectTestPublishGradeServiceImpl.java deleted file mode 100644 index e8bd2f3..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectTestPublishGradeServiceImpl.java +++ /dev/null @@ -1,188 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.dto.grade.AddGradeDTO; -import com.meishu.mapper.SubjectTestGradeExampleMappingMapper; -import com.meishu.mapper.SubjectTestGradeStarMappingMapper; -import com.meishu.model.SubjectRuleDO; -import com.meishu.model.SubjectTestGradeExampleMappingDO; -import com.meishu.model.SubjectTestGradeStarMappingDO; -import com.meishu.model.SubjectTestPublishGradeDO; -import com.meishu.mapper.SubjectTestPublishGradeMapper; -import com.meishu.service.SubjectTestPublishGradeService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.grade.DimensionStarVO; -import com.meishu.vo.grade.QueryOneGradeVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.ExecutionException; - -/** - *

- * 档次表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-06-21 - */ -@Service -public class SubjectTestPublishGradeServiceImpl extends ServiceImpl implements SubjectTestPublishGradeService { - - - @Autowired - private SubjectTestGradeExampleMappingMapper subjectTestGradeExampleMappingMapper; - - @Autowired - private SubjectTestGradeStarMappingMapper subjectTestGradeStarMappingMapper; - - - @Transactional(rollbackFor = Exception.class) - public String addGrade(AddGradeDTO addGradeDTO){ - - String gradeName = addGradeDTO.getGradeName(); - - SubjectTestPublishGradeDO subjectTestPublishGradeDO = new SubjectTestPublishGradeDO(); - subjectTestPublishGradeDO.setGradeName(gradeName); - subjectTestPublishGradeDO.setPublishId(addGradeDTO.getPublishId()); - subjectTestPublishGradeDO.setContent(addGradeDTO.getContent()); - this.baseMapper.insert(subjectTestPublishGradeDO); - - //样卷 - List subjectTestGradeExampleMappingDOS = addGradeDTO.getSubjectTestGradeExampleMappingDOS(); - for (String str : subjectTestGradeExampleMappingDOS){ - SubjectTestGradeExampleMappingDO subjectTestGradeExampleMappingDO = new SubjectTestGradeExampleMappingDO(); - subjectTestGradeExampleMappingDO.setExampleView(str); - subjectTestGradeExampleMappingDO.setGradeId(subjectTestPublishGradeDO.getId()); - subjectTestGradeExampleMappingMapper.insert(subjectTestGradeExampleMappingDO); - } - - //星级映射 - List subjectTestGradeStarMappingDOS = addGradeDTO.getSubjectTestGradeStarMappingDOS(); - for (Long lg : subjectTestGradeStarMappingDOS){ - SubjectTestGradeStarMappingDO subjectTestGradeStarMappingDO = new SubjectTestGradeStarMappingDO(); - subjectTestGradeStarMappingDO.setStarId(lg); - subjectTestGradeStarMappingDO.setGradeId(subjectTestPublishGradeDO.getId()); - subjectTestGradeStarMappingMapper.insert(subjectTestGradeStarMappingDO); - } - - return ConstantUtils.ADD_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public String deleteGrade(SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - - this.baseMapper.deleteById(subjectTestPublishGradeDO.getId()); - - subjectTestGradeStarMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(SubjectTestGradeStarMappingDO::getGradeId,subjectTestPublishGradeDO.getId())); - - subjectTestGradeExampleMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(SubjectTestGradeExampleMappingDO::getGradeId,subjectTestPublishGradeDO.getId())); - - return ConstantUtils.DELETE_SUCCESS; - } - - public List queryGrade(SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - - List queryOneGradeVOS = new ArrayList<>(); - - List subjectTestPublishGradeDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTestPublishGradeDO::getPublishId,subjectTestPublishGradeDO.getId())); - - for (SubjectTestPublishGradeDO subjectTestPublishGradeDO1 : subjectTestPublishGradeDOS){ - - QueryOneGradeVO queryOneGradeVO = new QueryOneGradeVO(); - queryOneGradeVO.setGradeName(subjectTestPublishGradeDO1.getGradeName()); - queryOneGradeVO.setId(subjectTestPublishGradeDO1.getId()); - queryOneGradeVO.setContent(subjectTestPublishGradeDO1.getContent()); - - //样卷 - List subjectTestGradeExampleMappingDOS = subjectTestGradeExampleMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTestGradeExampleMappingDO::getGradeId,subjectTestPublishGradeDO1.getId())); - queryOneGradeVO.setSubjectTestGradeExampleMappingDOS(subjectTestGradeExampleMappingDOS); - - //星级 - List dimensionStarVOS = subjectTestGradeStarMappingMapper.getGradeStar(subjectTestPublishGradeDO1.getId()); - queryOneGradeVO.setDimensionStarVOS(dimensionStarVOS); - - queryOneGradeVOS.add(queryOneGradeVO); - } - - return queryOneGradeVOS; - } - - public QueryOneGradeVO queryOneGrade(SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - - QueryOneGradeVO queryOneGradeVO = new QueryOneGradeVO(); - - //档次 - SubjectTestPublishGradeDO subjectTestPublishGradeDO1 = this.baseMapper.selectById(subjectTestPublishGradeDO.getId()); - queryOneGradeVO.setGradeName(subjectTestPublishGradeDO1.getGradeName()); - - //样卷 - List subjectTestGradeExampleMappingDOS = subjectTestGradeExampleMappingMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTestGradeExampleMappingDO::getGradeId,subjectTestPublishGradeDO.getId())); - queryOneGradeVO.setSubjectTestGradeExampleMappingDOS(subjectTestGradeExampleMappingDOS); - - //星级 - List dimensionStarVOS = subjectTestGradeStarMappingMapper.getGradeStar(subjectTestPublishGradeDO.getId()); - queryOneGradeVO.setDimensionStarVOS(dimensionStarVOS); - - return queryOneGradeVO; - } - - public String updateGrade(AddGradeDTO addGradeDTO){ - - SubjectTestPublishGradeDO subjectTestPublishGradeDO = this.baseMapper.selectById(addGradeDTO.getId()); - subjectTestPublishGradeDO.setGradeName(addGradeDTO.getGradeName()); - subjectTestPublishGradeDO.setPublishId(addGradeDTO.getPublishId()); - subjectTestPublishGradeDO.setContent(addGradeDTO.getContent()); - this.baseMapper.updateById(subjectTestPublishGradeDO); - - //样卷 - subjectTestGradeExampleMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(SubjectTestGradeExampleMappingDO::getGradeId,addGradeDTO.getId())); - //样卷 - List subjectTestGradeExampleMappingDOS = addGradeDTO.getSubjectTestGradeExampleMappingDOS(); - for (String str : subjectTestGradeExampleMappingDOS){ - SubjectTestGradeExampleMappingDO subjectTestGradeExampleMappingDO = new SubjectTestGradeExampleMappingDO(); - subjectTestGradeExampleMappingDO.setExampleView(str); - subjectTestGradeExampleMappingDO.setGradeId(subjectTestPublishGradeDO.getId()); - subjectTestGradeExampleMappingMapper.insert(subjectTestGradeExampleMappingDO); - } - - //星级映射 - subjectTestGradeStarMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(SubjectTestGradeStarMappingDO::getGradeId,addGradeDTO.getId())); - - //星级映射 - List subjectTestGradeStarMappingDOS = addGradeDTO.getSubjectTestGradeStarMappingDOS(); - for (Long lg : subjectTestGradeStarMappingDOS){ - SubjectTestGradeStarMappingDO subjectTestGradeStarMappingDO = new SubjectTestGradeStarMappingDO(); - subjectTestGradeStarMappingDO.setStarId(lg); - subjectTestGradeStarMappingDO.setGradeId(subjectTestPublishGradeDO.getId()); - subjectTestGradeStarMappingMapper.insert(subjectTestGradeStarMappingDO); - } - - - return ConstantUtils.SUCCESS_UPDATE; - } - - public SubjectRuleDO getRuleIdByPublishId(SubjectTestPublishGradeDO subjectTestPublishGradeDO){ - return subjectTestGradeStarMappingMapper.getRuleIdByPublishId(subjectTestPublishGradeDO.getPublishId()); - } - - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectTestPublishHistoryServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectTestPublishHistoryServiceImpl.java deleted file mode 100644 index 5afdf33..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectTestPublishHistoryServiceImpl.java +++ /dev/null @@ -1,153 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.test.*; -import com.meishu.mapper.SubjectStudentAnswerStarMapper; -import com.meishu.mapper.SubjectTestStudentAnswerMapper; -import com.meishu.model.SubjectStudentAnswerStarDO; -import com.meishu.model.SubjectTestDictDO; -import com.meishu.model.SubjectTestPublishHistoryDO; -import com.meishu.mapper.SubjectTestPublishHistoryMapper; -import com.meishu.model.SubjectTestStudentAnswerDO; -import com.meishu.service.SubjectTestPublishHistoryService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.util.MathUtil; -import com.meishu.vo.student.StudentVO; -import com.meishu.vo.test.CommentVO; -import com.meishu.vo.test.GetOnePublishVO; -import com.meishu.vo.test.GetPublishHistoryVO; -import com.meishu.vo.test.GetTestReportVO; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - *

- * 测评发布记录表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-08 - */ -@Service -public class SubjectTestPublishHistoryServiceImpl extends ServiceImpl implements SubjectTestPublishHistoryService { - - @Autowired - private SubjectTestStudentAnswerMapper subjectTestStudentAnswerMapper; - - @Autowired - private SubjectStudentAnswerStarMapper subjectStudentAnswerStarMapper; - - @Transactional(rollbackFor = Exception.class) - public String publishTest(PublishTestDTO publishTestDTO) { - - SubjectTestPublishHistoryDO subjectTestPublishHistoryDO = new SubjectTestPublishHistoryDO(); - BeanUtils.copyProperties(publishTestDTO, subjectTestPublishHistoryDO); - this.baseMapper.insert(subjectTestPublishHistoryDO); - - List longs = publishTestDTO.getStudentIds(); - for (Long lg : longs) { - SubjectTestStudentAnswerDO subjectTestStudentAnswerDO = new SubjectTestStudentAnswerDO(); - subjectTestStudentAnswerDO.setAnswer(""); - subjectTestStudentAnswerDO.setStudentId(lg); - subjectTestStudentAnswerDO.setPublishId(subjectTestPublishHistoryDO.getId()); - subjectTestStudentAnswerDO.setCommitStatus("0"); - subjectTestStudentAnswerDO.setCommentStatus("0"); - subjectTestStudentAnswerMapper.insert(subjectTestStudentAnswerDO); - } - return ConstantUtils.ADD_SUCCESS; - } - - public String updatePublish(PublishTestDTO publishTestDTO){ - - SubjectTestPublishHistoryDO subjectTestPublishHistoryDO = new SubjectTestPublishHistoryDO(); - BeanUtils.copyProperties(publishTestDTO,subjectTestPublishHistoryDO); - subjectTestPublishHistoryDO.setId(publishTestDTO.getPublishId()); - this.baseMapper.updateById(subjectTestPublishHistoryDO); - - // - subjectTestStudentAnswerMapper.delete(new QueryWrapper() - .lambda() - .eq(SubjectTestStudentAnswerDO::getPublishId,publishTestDTO.getPublishId())); - - List longs = publishTestDTO.getStudentIds(); - for (Long lg : longs) { - SubjectTestStudentAnswerDO subjectTestStudentAnswerDO = new SubjectTestStudentAnswerDO(); - subjectTestStudentAnswerDO.setAnswer(""); - subjectTestStudentAnswerDO.setStudentId(lg); - subjectTestStudentAnswerDO.setPublishId(subjectTestPublishHistoryDO.getId()); - subjectTestStudentAnswerDO.setCommitStatus("0"); - subjectTestStudentAnswerDO.setCommentStatus("0"); - subjectTestStudentAnswerMapper.insert(subjectTestStudentAnswerDO); - } - return ConstantUtils.SUCCESS_UPDATE; - } - - public IPage getPublishHistory(GetPublishHistoryDTO getPublishHistoryDTO) { - Page pager = new Page(getPublishHistoryDTO.getPageNum(), getPublishHistoryDTO.getPageSize()); - - IPage getPublishHistoryVOIPage = this.baseMapper.getPublishHistory(pager,getPublishHistoryDTO.getRuleId(),getPublishHistoryDTO.getPublishName()); - - List getPublishHistoryVOS = getPublishHistoryVOIPage.getRecords(); - - for (GetPublishHistoryVO getPublishHistoryVO : getPublishHistoryVOS){ - List studentVOS = subjectTestStudentAnswerMapper.getPublishStudents(getPublishHistoryVO.getId()); - getPublishHistoryVO.setStudentVOS(studentVOS); - } - return getPublishHistoryVOIPage; - } - - - public IPage getTestReport(GetTestReportDTO getTestReportDTO){ - Page pager = new Page(getTestReportDTO.getPageNum(), getTestReportDTO.getPageSize()); - IPage getTestReportVOIPage = this.baseMapper.getTestReport(pager,getTestReportDTO.getRuleId(),getTestReportDTO.getPublishName()); - List getTestReportVOS = getTestReportVOIPage.getRecords(); - for (GetTestReportVO getTestReportVO : getTestReportVOS){ - List studentVOS = subjectTestStudentAnswerMapper.getPublishStudents(getTestReportVO.getId()); - getTestReportVO.setStudentVOS(studentVOS); - } - return getTestReportVOIPage; - } - - public IPage getOnePublish(GetOnePublishDTO getOnePublishDTO){ - Page pager = new Page(getOnePublishDTO.getPageNum(), getOnePublishDTO.getPageSize()); - IPage getOnePublishVOIPage = this.baseMapper.getOnePublish(pager,getOnePublishDTO.getId(),getOnePublishDTO.getUserName(),getOnePublishDTO.getCommentStatus()); - List getOnePublishVOS = getOnePublishVOIPage.getRecords(); - for (GetOnePublishVO getOnePublishVO : getOnePublishVOS){ - List commentVOS = this.baseMapper.getCommentDetail(getOnePublishVO); - getOnePublishVO.setCommentVOS(commentVOS); - int count = 0 ; - int sum = 0; - for (CommentVO cv : commentVOS){ - sum += cv.getStar(); - } - double score = MathUtil.intDivFloorPercent(sum,count); - getOnePublishVO.setTotalStar(score); - } - return this.baseMapper.getOnePublish(pager,getOnePublishDTO.getId(),getOnePublishDTO.getUserName(),getOnePublishDTO.getCommentStatus()); - } - - public String comment(CommentDTO commentDTO){ - - List subjectStudentAnswerStarDOS = commentDTO.getSubjectStudentAnswerStarDOS(); - - for (SubjectStudentAnswerStarDO subjectStudentAnswerStarDO : subjectStudentAnswerStarDOS){ - subjectStudentAnswerStarMapper.insert(subjectStudentAnswerStarDO); - } - return ConstantUtils.ADD_SUCCESS; - } - - public String deletePublish(SubjectTestPublishHistoryDO subjectTestPublishHistoryDO){ - this.baseMapper.deleteById(subjectTestPublishHistoryDO.getId()); - return ConstantUtils.DELETE_SUCCESS; - } -} diff --git a/src/main/java/com/meishu/service/impl/SubjectTestStudentAnswerServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectTestStudentAnswerServiceImpl.java deleted file mode 100644 index 1a8ca19..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectTestStudentAnswerServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.SubjectTestStudentAnswerDO; -import com.meishu.mapper.SubjectTestStudentAnswerMapper; -import com.meishu.service.SubjectTestStudentAnswerService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生月考答卷 服务实现类 - *

- * - * @author Tuyp - * @since 2021-05-13 - */ -@Service -public class SubjectTestStudentAnswerServiceImpl extends ServiceImpl implements SubjectTestStudentAnswerService { - -} diff --git a/src/main/java/com/meishu/service/impl/SubjectTreeServiceImpl.java b/src/main/java/com/meishu/service/impl/SubjectTreeServiceImpl.java deleted file mode 100644 index 2d2261f..0000000 --- a/src/main/java/com/meishu/service/impl/SubjectTreeServiceImpl.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.meishu.dto.subject.GetSubjectTreeDTO; -import com.meishu.dto.subject.UpdateTreeOrderDTO; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.SubjectTreeService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.util.tree.SerialNumber; -import com.meishu.vo.subject.GetSubjectTreeVO; -import com.meishu.vo.subject.SubjectTreeOrder; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.ArrayList; -import java.util.List; - -/** - *

- * 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class SubjectTreeServiceImpl extends ServiceImpl implements SubjectTreeService { - - @Autowired - private KnowledgeSubjectDictMapper knowledgeSubjectDictMapper; - - @Autowired - private SubjectTreeMapper subjectTreeMapper; - - @Autowired - private VodSubjectTreeMappingMapper vodSubjectTreeMappingMapper; - - @Autowired - private ExerciseTreeMappingMapper exerciseTreeMappingMapper; - - @Autowired - private AdministerMapper administerMapper; - - @Autowired - private VodDictMapper vodDictMapper; - - @Autowired - private ExerciseDictMapper exerciseDictMapper; - - public String updateSubjectTree(SubjectTreeDO subjectTreeDO) { - this.baseMapper.updateSubjectTree(subjectTreeDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - @Transactional(rollbackFor = Exception.class) - public String addSubjectTree(SubjectTreeDO subjectTreeDO) { - - KnowledgeSubjectDictDO subjectDict = knowledgeSubjectDictMapper.selectById(subjectTreeDO.getSubjectId()); - - - subjectTreeDO.setSchool(ConstantUtils.SCHOOL); - subjectTreeDO.setSubjectType("高中"); - subjectTreeDO.setSubject(subjectDict.getSubjectName()); - subjectTreeDO.setSubjectEn(subjectDict.getSubjectEn()); - - List subjectTreeDOS = new ArrayList<>(); - //编号 - if (null != subjectTreeDO.getParentId()) { - subjectTreeDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, subjectTreeDO.getParentId()) - .eq(SubjectTreeDO::getSubjectEn, subjectDict.getSubjectEn()) - .orderByDesc(SubjectTreeDO::getTreeOrder)); - } else { - subjectTreeDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .isNull(SubjectTreeDO::getParentId) - .eq(SubjectTreeDO::getSubjectEn, subjectDict.getSubjectEn()) - .orderByDesc(SubjectTreeDO::getTreeOrder)); - } - - if (subjectTreeDOS.size() == 0) { - subjectTreeDO.setTreeOrder(0); - } else { - subjectTreeDO.setTreeOrder(subjectTreeDOS.get(0).getTreeOrder() + 1); - } - - this.baseMapper.insert(subjectTreeDO); - - return ConstantUtils.ADD_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public String deleteSubjectTree(SubjectTreeDO subjectTreeDO) { - - List subjectTreeDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, subjectTreeDO.getId())); - - for (SubjectTreeDO subjectTreeDO1 : subjectTreeDOS) { - deleteChildNode(subjectTreeDO1); - } - - this.baseMapper.deleteById(subjectTreeDO.getId()); - - return ConstantUtils.DELETE_SUCCESS; - } - - public String updateTreeOrder(UpdateTreeOrderDTO updateTreeOrderDTO) { - - List longs = updateTreeOrderDTO.getIds(); - for (int i = 0; i < longs.size(); i++) { - SubjectTreeDO subjectTreeDO = this.baseMapper.selectById(longs.get(i)); - subjectTreeDO.setTreeOrder(i); - subjectTreeDO.setParentId(updateTreeOrderDTO.getParentId()); - this.baseMapper.updateSubjectTree(subjectTreeDO); - -// //课程下的知识点的顺序也要跟着变 -// List courseDictDOS = courseTreeMapper.selectList(new QueryWrapper() -// .lambda() -// .eq(CourseTreeDO::getTreeId, longs.get(i))); -// -// for (CourseTreeDO courseTreeDO : courseDictDOS) { -// courseTreeDO.setTreeOrder(i); -// courseTreeDO.setParentId(updateTreeOrderDTO.getParentId()); -// courseTreeDO.setChapterId(null); -// courseTreeMapper.updateTreeOrderNo(courseTreeDO); -// } - } - return ConstantUtils.SUCCESS_UPDATE; - } - - - //科目递归删除 - public void deleteChildNode(SubjectTreeDO subjectTreeDO) { - - List subjectTreeDOS = this.baseMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, subjectTreeDO.getId())); - - for (SubjectTreeDO subjectTreeDO1 : subjectTreeDOS) { - deleteChildNode(subjectTreeDO1); - } - this.baseMapper.deleteById(subjectTreeDO.getId()); - - } - - public List getTreesCnt(GetSubjectTreeDTO getSubjectTreeDTO) { - - List getSubjectTreeVOS = new ArrayList<>(); - - //判断老师角色 - List roleDictDOS = administerMapper.getTeacherRoles(getSubjectTreeDTO.getUserId()); - - SerialNumber number = new SerialNumber(); - SubjectTreeOrder treeNode = new SubjectTreeOrder(".", number); - - boolean flag = false; //true 可以看全部的 false 没权限或者是授课老师 只能看三级 - - for (RoleDictDO roleDictDO : roleDictDOS) { - if (roleDictDO.getId() == 1 || roleDictDO.getId() == 2 || roleDictDO.getId() == 4) { - flag = true; - } - } - - GetSubjectTreeVO root = treeNode.getRoot(treeNode.getNodeList()); - - List nodeList = new ArrayList<>(); - - int chapterId = 1; - - //获取科目的父节点 - List subjectTreeDOS = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getSubjectId, getSubjectTreeDTO.getSubjectId()) - .isNull(SubjectTreeDO::getParentId) - .orderByAsc(SubjectTreeDO::getTreeOrder)); - - for (SubjectTreeDO std : subjectTreeDOS) { - GetSubjectTreeVO getSubjectTreeVO = SubjectTreeOrder.getNextNode(treeNode,root,nodeList); - List vodCnt = new ArrayList<>(); - List publicVodCnt = new ArrayList<>(); - List exerciseCnt = new ArrayList<>(); - List publicExerciseCnt = new ArrayList<>(); - BeanUtils.copyProperties(std, getSubjectTreeVO); - - int k = 0; //第k层 - - getSubjectTreeVO.setChildren(getChildNodes(chapterId,getSubjectTreeDTO.getUserId(),getSubjectTreeVO,publicVodCnt,publicExerciseCnt, vodCnt, exerciseCnt, k, flag, getSubjectTreeDTO.getShareStatus(),treeNode,nodeList)); - int i = 0; - for (Integer integer : vodCnt) { - i += integer; - } - getSubjectTreeVO.setVodCounts(i); - int j = 0; - for (Integer integer : exerciseCnt) { - j += integer; - } - getSubjectTreeVO.setExerciseCounts(j); - int m =0; - for (Integer integer : publicVodCnt) { - m += integer; - } - getSubjectTreeVO.setPublicVodCounts(m); - int n =0; - for (Integer integer : publicExerciseCnt) { - n += integer; - } - getSubjectTreeVO.setPublicExerciseVodCounts(n); - getSubjectTreeVO.setLayer(chapterId+""); - chapterId++; - getSubjectTreeVO.setText(getSubjectTreeVO.getText().replace("0.1",getSubjectTreeVO.getLayer())); - getSubjectTreeVO.setTreeNode(getSubjectTreeVO.getText()); - - getSubjectTreeVOS.add(getSubjectTreeVO); - } - return getSubjectTreeVOS; - - } - - public List getTreesCheckCnt(GetSubjectTreeDTO getSubjectTreeDTO) { - - List getSubjectTreeVOS = new ArrayList<>(); - - //判断老师角色 - List roleDictDOS = administerMapper.getTeacherRoles(getSubjectTreeDTO.getUserId()); - - boolean flag = false; //true 可以看全部的 false 没权限或者是授课老师 只能看三级 - - for (RoleDictDO roleDictDO : roleDictDOS) { - if (roleDictDO.getId() == 1 || roleDictDO.getId() == 2 || roleDictDO.getId() == 4) { - flag = true; - } - } - - SerialNumber number = new SerialNumber(); - SubjectTreeOrder treeNode = new SubjectTreeOrder(".", number); - - - GetSubjectTreeVO root = treeNode.getRoot(treeNode.getNodeList()); - - List nodeList = new ArrayList<>(); - - //获取科目的父节点 - List subjectTreeDOS = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getSubjectId, getSubjectTreeDTO.getSubjectId()) - .isNull(SubjectTreeDO::getParentId) - .orderByAsc(SubjectTreeDO::getTreeOrder)); - - int chapterId = 1 ; - - for (SubjectTreeDO std : subjectTreeDOS) { - GetSubjectTreeVO getSubjectTreeVO = SubjectTreeOrder.getNextNode(treeNode,root,nodeList); - List toCheckVodCnt = new ArrayList<>(); - List checkVodCnt = new ArrayList<>(); - List toCheckExerciseCnt = new ArrayList<>(); - List checkExerciseCnt = new ArrayList<>(); - BeanUtils.copyProperties(std, getSubjectTreeVO); - - int k = 0; - - - getSubjectTreeVO.setLayer(chapterId+""); - chapterId++; - getSubjectTreeVO.setText(getSubjectTreeVO.getText().replace("0.1",getSubjectTreeVO.getLayer())); - getSubjectTreeVO.setTreeNode(getSubjectTreeVO.getText()); - - getSubjectTreeVO.setChildren(getCheckChildNodes(chapterId,getSubjectTreeVO, toCheckVodCnt, checkVodCnt,toCheckExerciseCnt,checkExerciseCnt, k, flag, getSubjectTreeDTO.getShareStatus(),treeNode,nodeList)); - int i = 0; - for (Integer integer : toCheckExerciseCnt) { - i += integer; - } - getSubjectTreeVO.setToCheckExerciseCounts(i); - int j = 0; - for (Integer integer : toCheckVodCnt) { - j += integer; - } - getSubjectTreeVO.setToCheckVodCounts(j); - int m = 0; - for (Integer integer : checkExerciseCnt) { - m += integer; - } - getSubjectTreeVO.setCheckExerciseCounts(m); - int l = 0; - for (Integer integer : checkVodCnt) { - l += integer; - } - getSubjectTreeVO.setCheckVodCounts(l); - - getSubjectTreeVOS.add(getSubjectTreeVO); - } - return getSubjectTreeVOS; - - } - - - /** - * 递归遍历子节点 - * - * @param getSubjectTreeVO 父节点填充子节点 - * @return - */ - public List getChildNodes(Integer chapterId,Long userId,GetSubjectTreeVO getSubjectTreeVO, List publicVodCnt, List publicExerciseCnt,List vodCnt, List exerciseCnt, Integer k, boolean flag, String shareStatus,SubjectTreeOrder treeNode,List nodeList ) { - - List getSubjectTreeVOS = new ArrayList<>(); - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getSubjectTreeVO.getSubjectId()); - - //查找该父节点下的子节点 - List subjectTreeDOS = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, getSubjectTreeVO.getId()) - .orderByAsc(SubjectTreeDO::getTreeOrder)); - - getSubjectTreeVO.setChildNodeCounts(subjectTreeDOS.size()); - - getSubjectTreeVO.setLayer(chapterId+""); - getSubjectTreeVO.setText(getSubjectTreeVO.getText().replace("0.1",getSubjectTreeVO.getLayer())); - getSubjectTreeVO.setTreeNode(getSubjectTreeVO.getText()); - - //查找该节点下的视频数 个人库 - Integer vodCntTmp = vodSubjectTreeMappingMapper.getTreeVodCount(userId,getSubjectTreeVO.getId(),"0",subjectDictDO.getSubjectEn(),null); - getSubjectTreeVO.setVodCounts(vodCntTmp); - vodCnt.add(vodCntTmp); - - //查找该节点下的视频数 公共库 - Integer publicVodCntTmp = vodSubjectTreeMappingMapper.getTreeVodCount(null,getSubjectTreeVO.getId(),"1",subjectDictDO.getSubjectEn(),null); - getSubjectTreeVO.setPublicVodCounts(publicVodCntTmp); - publicVodCnt.add(publicVodCntTmp); - - //查找该节点下的题目数 个人库 - Integer exerciseTmp = exerciseTreeMappingMapper.getTreeExerciseCount(userId,getSubjectTreeVO.getId(),"0",subjectDictDO.getSubjectEn(),null); - getSubjectTreeVO.setExerciseCounts(exerciseTmp); - exerciseCnt.add(exerciseTmp); - - //查找该节点下的题目数 公共库 - Integer publicExerciseTmp = exerciseTreeMappingMapper.getTreeExerciseCount(null,getSubjectTreeVO.getId(),"1",subjectDictDO.getSubjectEn(),null); - getSubjectTreeVO.setPublicExerciseVodCounts(publicExerciseTmp); - publicExerciseCnt.add(publicExerciseTmp); - - getSubjectTreeVO.setCheckVodCounts(vodCntTmp); - getSubjectTreeVO.setCheckExerciseCounts(exerciseTmp); - - k++; - - if (k == 3 && !flag) { - return null; - } - - for (SubjectTreeDO subjectTreeDO1 : subjectTreeDOS) { - GetSubjectTreeVO getSubjectTreeVO1 = SubjectTreeOrder.getNextNode(treeNode,getSubjectTreeVO,nodeList); - BeanUtils.copyProperties(subjectTreeDO1, getSubjectTreeVO1); - getSubjectTreeVO1.setParentTreeName(getSubjectTreeVO.getTreeName()); - getSubjectTreeVOS.add(getSubjectTreeVO1); - getSubjectTreeVO1.setChildren(getChildNodes(chapterId,userId,getSubjectTreeVO1, publicVodCnt,publicExerciseCnt,vodCnt, exerciseCnt, k, flag, shareStatus,treeNode,nodeList)); - } - if (subjectTreeDOS.size() == 0) { - return null; - } - return getSubjectTreeVOS; - } - - /** - * 递归遍历子节点 - * - * @param getSubjectTreeVO 父节点填充子节点 - * @return - */ - public List getCheckChildNodes(Integer chapterId,GetSubjectTreeVO getSubjectTreeVO, List toCheckVodCnt, List checkVodCnt,List toCheckExerciseCnt, List checkExerciseCnt, Integer k, boolean flag, String shareStatus,SubjectTreeOrder treeNode,List nodeList ) { - - List getSubjectTreeVOS = new ArrayList<>(); - - //查找该父节点下的子节点 - List subjectTreeDOS = subjectTreeMapper.selectList(new QueryWrapper() - .lambda() - .eq(SubjectTreeDO::getParentId, getSubjectTreeVO.getId()) - .orderByAsc(SubjectTreeDO::getTreeOrder)); - - getSubjectTreeVO.setChildNodeCounts(subjectTreeDOS.size()); - - //查找该节点下的视频数 已审核的视频 - Integer checkVod = 0; - - //查找该节点下的题目数 已审核的题目 - Integer checkExercise = 0; - - //待审核的视频数 - Integer toCheckVod = 0; - - //待审核的题目数 - Integer toCheckExercise = 0; - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getSubjectTreeVO.getSubjectId()); - - //待审核 - toCheckVod = vodSubjectTreeMappingMapper.getTreeVodCount(null,getSubjectTreeVO.getId(),null,subjectDictDO.getSubjectEn(),"2"); - toCheckVodCnt.add(toCheckVod); - toCheckExercise = exerciseTreeMappingMapper.getTreeExerciseCount(null,getSubjectTreeVO.getId(),"0",subjectDictDO.getSubjectEn(),"2"); - getSubjectTreeVO.setToCheckExerciseCounts(toCheckExercise); - toCheckExerciseCnt.add(toCheckExercise); - //已审核 包括已通过 未通过 - checkVod = vodSubjectTreeMappingMapper.getTreeVodCount(null,getSubjectTreeVO.getId(),null,subjectDictDO.getSubjectEn(),"1"); - getSubjectTreeVO.setCheckVodCounts(checkVod); - checkVodCnt.add(checkVod); - checkExercise = exerciseTreeMappingMapper.getTreeExerciseCount(null,getSubjectTreeVO.getId(),"1",subjectDictDO.getSubjectEn(),"1"); - getSubjectTreeVO.setCheckExerciseCounts(checkExercise); - checkExerciseCnt.add(checkExercise); - getSubjectTreeVO.setToCheckVodCounts(toCheckVod); - - getSubjectTreeVO.setLayer(chapterId+""); - getSubjectTreeVO.setText(getSubjectTreeVO.getText().replace("0.1",getSubjectTreeVO.getLayer())); - getSubjectTreeVO.setTreeNode(getSubjectTreeVO.getText()); - - k++; - - if (k == 3 && !flag) { - return null; - } - - for (SubjectTreeDO subjectTreeDO1 : subjectTreeDOS) { - GetSubjectTreeVO getSubjectTreeVO1 = SubjectTreeOrder.getNextNode(treeNode,getSubjectTreeVO,nodeList); - BeanUtils.copyProperties(subjectTreeDO1, getSubjectTreeVO1); - getSubjectTreeVO1.setParentTreeName(getSubjectTreeVO.getTreeName()); - getSubjectTreeVOS.add(getSubjectTreeVO1); - getSubjectTreeVO1.setChildren(getCheckChildNodes(chapterId,getSubjectTreeVO1, toCheckVodCnt, checkVodCnt,toCheckExerciseCnt,checkExerciseCnt, k, flag, shareStatus,treeNode,nodeList)); - } - if (subjectTreeDOS.size() == 0) { - return null; - } - return getSubjectTreeVOS; - } - - -} diff --git a/src/main/java/com/meishu/service/impl/TaskCompletionStatusServiceImpl.java b/src/main/java/com/meishu/service/impl/TaskCompletionStatusServiceImpl.java deleted file mode 100644 index e86c3c5..0000000 --- a/src/main/java/com/meishu/service/impl/TaskCompletionStatusServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.TaskCompletionStatusDO; -import com.meishu.mapper.TaskCompletionStatusMapper; -import com.meishu.service.TaskCompletionStatusService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 作业任务完成状态 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Service -public class TaskCompletionStatusServiceImpl extends ServiceImpl implements TaskCompletionStatusService { - -} diff --git a/src/main/java/com/meishu/service/impl/TaskContentDoneInfoServiceImpl.java b/src/main/java/com/meishu/service/impl/TaskContentDoneInfoServiceImpl.java deleted file mode 100644 index 6cfbffc..0000000 --- a/src/main/java/com/meishu/service/impl/TaskContentDoneInfoServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.TaskContentDoneInfoDO; -import com.meishu.mapper.TaskContentDoneInfoMapper; -import com.meishu.service.TaskContentDoneInfoService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-30 - */ -@Service -public class TaskContentDoneInfoServiceImpl extends ServiceImpl implements TaskContentDoneInfoService { - -} diff --git a/src/main/java/com/meishu/service/impl/TaskContentServiceImpl.java b/src/main/java/com/meishu/service/impl/TaskContentServiceImpl.java deleted file mode 100644 index 8773e07..0000000 --- a/src/main/java/com/meishu/service/impl/TaskContentServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.TaskContentDO; -import com.meishu.mapper.TaskContentMapper; -import com.meishu.service.TaskContentService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 作业内容表(取题目,视频,书面作业) 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Service -public class TaskContentServiceImpl extends ServiceImpl implements TaskContentService { - -} diff --git a/src/main/java/com/meishu/service/impl/TaskDoneHistoryServiceImpl.java b/src/main/java/com/meishu/service/impl/TaskDoneHistoryServiceImpl.java deleted file mode 100644 index 2fc243e..0000000 --- a/src/main/java/com/meishu/service/impl/TaskDoneHistoryServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.TaskDoneHistoryDO; -import com.meishu.mapper.TaskDoneHistoryMapper; -import com.meishu.service.TaskDoneHistoryService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Service -public class TaskDoneHistoryServiceImpl extends ServiceImpl implements TaskDoneHistoryService { - -} diff --git a/src/main/java/com/meishu/service/impl/UserRoleCopy1ServiceImpl.java b/src/main/java/com/meishu/service/impl/UserRoleCopy1ServiceImpl.java deleted file mode 100644 index 0d0fae8..0000000 --- a/src/main/java/com/meishu/service/impl/UserRoleCopy1ServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.UserRoleCopy1DO; -import com.meishu.mapper.UserRoleCopy1Mapper; -import com.meishu.service.UserRoleCopy1Service; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 学生表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-23 - */ -@Service -public class UserRoleCopy1ServiceImpl extends ServiceImpl implements UserRoleCopy1Service { - -} diff --git a/src/main/java/com/meishu/service/impl/UserRoleServiceImpl.java b/src/main/java/com/meishu/service/impl/UserRoleServiceImpl.java deleted file mode 100644 index 0a4957c..0000000 --- a/src/main/java/com/meishu/service/impl/UserRoleServiceImpl.java +++ /dev/null @@ -1,154 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.sms.VerifyCodeDTO; -import com.meishu.dto.userrole.AccountLoginDTO; -import com.meishu.dto.userrole.AddStudentsDTO; -import com.meishu.dto.userrole.QueryStudentsDTO; -import com.meishu.mapper.UserRoleCopy1Mapper; -import com.meishu.model.*; -import com.meishu.mapper.UserRoleMapper; -import com.meishu.service.ClassesDictService; -import com.meishu.service.ClassesUserMappingService; -import com.meishu.service.SmsCodeService; -import com.meishu.service.UserRoleService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.util.excel.ExcelUtil; -import com.meishu.vo.userrole.QueryStudentsVO; -import com.meishu.vo.userrole.UserInfoVO; -import com.meishu.vo.userrole.UserRoleVO; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - *

- * 学生表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-16 - */ -@Service -public class UserRoleServiceImpl extends ServiceImpl implements UserRoleService { - - @Autowired - private SmsCodeService smsCodeService; - - @Autowired - private ClassesDictService classesDictService; - - @Autowired - private UserRoleCopy1Mapper userRoleCopy1Mapper; - - public IPage queryStudents(QueryStudentsDTO queryStudentsDTO){ - Page pager = new Page(queryStudentsDTO.getPageNum(), queryStudentsDTO.getPageSize()); - return this.baseMapper.queryStudents(pager,queryStudentsDTO.getUserName(),queryStudentsDTO.getGrade(),queryStudentsDTO.getSession(),queryStudentsDTO.getUserStatus()); - } - - public String addStudents(UserRoleDO userRoleDO){ - userRoleDO.setUserStatus("在读"); - userRoleDO.setRoleType("学生"); - this.baseMapper.insert(userRoleDO); - return ConstantUtils.ADD_SUCCESS; - } - - public String updateStudent(UserRoleDO userRoleDO){ - this.baseMapper.updateById(userRoleDO); - return ConstantUtils.SUCCESS_UPDATE; - } - - public List exportStudents(QueryStudentsDTO queryStudentsDTO){ - return this.baseMapper.exportStudents(queryStudentsDTO.getUserName(),queryStudentsDTO.getGrade(),queryStudentsDTO.getSession(),queryStudentsDTO.getUserStatus()); - } - - @Override - @Transactional(rollbackFor = Exception.class) - public UserRoleVO login(VerifyCodeDTO verifyCodeDTO) { - UserRoleVO userRoleVO = new UserRoleVO(); - UserRoleDO userRoleDO = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(UserRoleDO::getPhone, verifyCodeDTO.getPhone())); - if(userRoleDO == null) { - throw new HttpException(10010); - } - BeanUtils.copyProperties(userRoleDO, userRoleVO); - - SmsCodeDO smsCodeDO = smsCodeService.getOne(new QueryWrapper() - .lambda() - .eq(SmsCodeDO::getTelephone, verifyCodeDTO.getPhone()) - .eq(SmsCodeDO::getCode, verifyCodeDTO.getVerifyCode())); - if(smsCodeDO == null) { - throw new HttpException(70010); - } - - smsCodeService.removeById(smsCodeDO.getId()); - return userRoleVO; - } - - @Override - public UserInfoVO userInfo(Integer id) { - UserInfoVO userInfoVO = new UserInfoVO(); - UserRoleDO userRoleDO = this.baseMapper.selectById(id); - if(userRoleDO != null) { - BeanUtils.copyProperties(userRoleDO, userInfoVO); - ClassesDictDO classesDictDO = classesDictService.getClassesById((long)id); - if(classesDictDO != null) { - userInfoVO.setClasses(classesDictDO.getClassName()); - } - } - return userInfoVO; - } - - @Override - public UserRoleVO accountLogin(AccountLoginDTO accountLoginDTO) { - UserRoleVO userRoleVO = new UserRoleVO(); - UserRoleDO userRoleDO = this.baseMapper.selectOne(new QueryWrapper() - .lambda() - .eq(UserRoleDO::getPassword, accountLoginDTO.getPassword()) - .eq(UserRoleDO::getIdCard, accountLoginDTO.getIdCard())); - if(userRoleDO == null) { - throw new HttpException(10004); - } - - BeanUtils.copyProperties(userRoleDO, userRoleVO); - return userRoleVO; - } - - public void studycode(){ - - List userRoleDOS = this.baseMapper.selectList(null); - - for (UserRoleDO userRoleDO : userRoleDOS){ - - try { - - List userRoleCopy1DO = userRoleCopy1Mapper.selectList(new QueryWrapper() - .lambda() - .eq(UserRoleCopy1DO::getUserName,userRoleDO.getUserName()) - .eq(UserRoleCopy1DO::getGender,userRoleDO.getGender()) - .eq(UserRoleCopy1DO::getSession,userRoleDO.getSession())); - - if (userRoleCopy1DO.size()>0){ - userRoleDO.setStudyCode(userRoleCopy1DO.get(0).getStudyCode()); - this.baseMapper.updateById(userRoleDO); - } - }catch (Exception e){ - System.out.println("==========="+userRoleDO.getId()+"==="+userRoleDO.getUserName()); - } - - - } - - - } - -} diff --git a/src/main/java/com/meishu/service/impl/UserSubjectMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/UserSubjectMappingServiceImpl.java deleted file mode 100644 index 8e17a7b..0000000 --- a/src/main/java/com/meishu/service/impl/UserSubjectMappingServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.UserSubjectMappingDO; -import com.meishu.mapper.UserSubjectMappingMapper; -import com.meishu.service.UserSubjectMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 老师-科目映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-17 - */ -@Service -public class UserSubjectMappingServiceImpl extends ServiceImpl implements UserSubjectMappingService { - -} diff --git a/src/main/java/com/meishu/service/impl/UserSubjectPermissionDictServiceImpl.java b/src/main/java/com/meishu/service/impl/UserSubjectPermissionDictServiceImpl.java deleted file mode 100644 index bf998b3..0000000 --- a/src/main/java/com/meishu/service/impl/UserSubjectPermissionDictServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.UserSubjectPermissionDictDO; -import com.meishu.mapper.UserSubjectPermissionDictMapper; -import com.meishu.service.UserSubjectPermissionDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 平时成绩---老师班级权限 服务实现类 - *

- * - * @author Tuyp - * @since 2021-08-18 - */ -@Service -public class UserSubjectPermissionDictServiceImpl extends ServiceImpl implements UserSubjectPermissionDictService { - -} diff --git a/src/main/java/com/meishu/service/impl/UuidHistoryServiceImpl.java b/src/main/java/com/meishu/service/impl/UuidHistoryServiceImpl.java deleted file mode 100644 index 3386a34..0000000 --- a/src/main/java/com/meishu/service/impl/UuidHistoryServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.UuidHistoryDO; -import com.meishu.mapper.UuidHistoryMapper; -import com.meishu.service.UuidHistoryService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-29 - */ -@Service -public class UuidHistoryServiceImpl extends ServiceImpl implements UuidHistoryService { - -} diff --git a/src/main/java/com/meishu/service/impl/VodDictServiceImpl.java b/src/main/java/com/meishu/service/impl/VodDictServiceImpl.java deleted file mode 100644 index 204a415..0000000 --- a/src/main/java/com/meishu/service/impl/VodDictServiceImpl.java +++ /dev/null @@ -1,507 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.common.configure.VODConfig; -import com.meishu.common.exception.HttpException; -import com.meishu.dto.voddict.*; -import com.meishu.mapper.*; -import com.meishu.model.*; -import com.meishu.service.VodDictService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.util.Signature; -import com.meishu.vo.voddict.*; -import com.tencentcloudapi.common.Credential; -import com.tencentcloudapi.common.exception.TencentCloudSDKException; -import com.tencentcloudapi.common.profile.ClientProfile; -import com.tencentcloudapi.common.profile.HttpProfile; -import com.tencentcloudapi.vod.v20180717.VodClient; -import com.tencentcloudapi.vod.v20180717.models.*; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Random; - -/** - *

- * 视频字典表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class VodDictServiceImpl extends ServiceImpl implements VodDictService { - - @Autowired - private VODConfig vodConfig; - - @Autowired - private VodPlayHistoryMapper vodPlayHistoryMapper; - - @Autowired - private VodSubjectTreeMappingMapper vodSubjectTreeMappingMapper; - - @Autowired - private KnowledgeSubjectDictMapper knowledgeSubjectDictMapper; - - @Autowired - private VodDictMapper vodDictMapper; - - @Autowired - private AdministerMapper administerMapper; - - - public SignatureVO signature() throws Exception { -// - SignatureVO signatureVO = new SignatureVO(); - - Signature signature = new Signature(); - signature.setSecretId(vodConfig.getSecretId()); - signature.setSecretKey(vodConfig.getSecretKey()); - signature.setCurrentTime(System.currentTimeMillis()); - signature.setRandom(new Random().nextInt(Integer.MAX_VALUE)); - signature.setSignValidDuration(3600 * 24 * 2); - - String sign = ""; - try { - sign = signature.getUploadSignature(); - signatureVO.setSign(sign); - } catch (Exception ex) { - ex.printStackTrace(); -// throw new MyException(ResultEnum.UNKNOWN_ERROR); - } - return signatureVO; - } - - public IPage getTreeVods(GetTreeVodsDTO getTreeVodsDTO) { - - Page pager = new Page(getTreeVodsDTO.getPageNum(), getTreeVodsDTO.getPageSize()); - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getTreeVodsDTO.getSubjectId()); - - //查看该老师的科目信息 - List subjectDictDOS = administerMapper.getTeacherSubjects(getTreeVodsDTO.getUserId()); - - if ("1".equals(getTreeVodsDTO.getShareStatus())) { - getTreeVodsDTO.setUserId(null); //查看所有公共库的视频 - } - - List strings = new ArrayList<>(); - for (KnowledgeSubjectDictDO subjectDictDO1 : subjectDictDOS) { - strings.add(subjectDictDO1.getSubjectEn()); - } - - IPage getTreeVodsVOIPage = this.baseMapper.getTreeVods(pager, getTreeVodsDTO.getTreeId(), subjectDictDO.getSubjectEn(), getTreeVodsDTO.getVodName(), getTreeVodsDTO.getVodType(), getTreeVodsDTO.getShareStatus(), getTreeVodsDTO.getUserId(), strings, getTreeVodsDTO.getCheckStatus()); - - List getTreeVodsVOS = getTreeVodsVOIPage.getRecords(); - for (GetTreeVodsVO getTreeVodsVO : getTreeVodsVOS) { - //获取视频播放量 - Integer count = vodPlayHistoryMapper.queryPlayCounts( getTreeVodsVO.getId()); - getTreeVodsVO.setPlayCounts(count); - - //视频知识点 - List vodTreeMappingDOS = this.baseMapper.getTrees(getTreeVodsVO.getId()); - getTreeVodsVO.setTrees(vodTreeMappingDOS); - } - getTreeVodsVOIPage.setRecords(getTreeVodsVOS); - - return getTreeVodsVOIPage; - } - - public IPage getCheckTreeVods(GetTreeVodsDTO getTreeVodsDTO) { - - Page pager = new Page(getTreeVodsDTO.getPageNum(), getTreeVodsDTO.getPageSize()); - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getTreeVodsDTO.getSubjectId()); - - //查看该老师的科目信息 - List subjectDictDOS = administerMapper.getTeacherSubjects(getTreeVodsDTO.getUserId()); - - List strings = new ArrayList<>(); - for (KnowledgeSubjectDictDO subjectDictDO1 : subjectDictDOS) { - strings.add(subjectDictDO1.getSubjectEn()); - } - - IPage getTreeVodsVOIPage = this.baseMapper.getTreeVods(pager, getTreeVodsDTO.getTreeId(), subjectDictDO.getSubjectEn(), getTreeVodsDTO.getVodName(), getTreeVodsDTO.getVodType(), getTreeVodsDTO.getShareStatus(), null, strings, getTreeVodsDTO.getCheckStatus()); - - List getTreeVodsVOS = getTreeVodsVOIPage.getRecords(); - - for (GetTreeVodsVO getTreeVodsVO : getTreeVodsVOS) { - //获取视频播放量 - Integer count = vodPlayHistoryMapper.queryPlayCounts(getTreeVodsVO.getId()); - getTreeVodsVO.setPlayCounts(count); - - //视频知识点 - List vodTreeMappingDOS = this.baseMapper.getTrees(getTreeVodsVO.getId()); - getTreeVodsVO.setTrees(vodTreeMappingDOS); - } - getTreeVodsVOIPage.setRecords(getTreeVodsVOS); - - return getTreeVodsVOIPage; - } - - @Transactional(rollbackFor = Exception.class) - public String deleteVod(VodDictDO vodDictDO) { - - VodDictDO vodDictDO1 = this.baseMapper.selectById(vodDictDO.getId()); - - this.baseMapper.deleteById(vodDictDO.getId()); - - vodSubjectTreeMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(VodSubjectTreeMappingDO::getVodId, vodDictDO.getId())); - - try{ - - //上传后直接转码 - Credential cred = new Credential(vodConfig.getSecretId(), vodConfig.getSecretKey()); - - HttpProfile httpProfile = new HttpProfile(); - httpProfile.setEndpoint("vod.tencentcloudapi.com"); - - ClientProfile clientProfile = new ClientProfile(); - clientProfile.setHttpProfile(httpProfile); - - VodClient client = new VodClient(cred, "", clientProfile); - - // 实例化一个请求对象,每个接口都会对应一个request对象 - DeleteMediaRequest req = new DeleteMediaRequest(); - req.setFileId(vodDictDO1.getVodCode()); - // 返回的resp是一个DeleteMediaResponse的实例,与请求对象对应 - client.DeleteMedia(req); - } catch (TencentCloudSDKException e) { - System.out.println(e.toString()); - } - - return ConstantUtils.DELETE_SUCCESS; - } - - @Transactional(rollbackFor = Exception.class) - public VodDictDO uploadVods(UploadVodsDTO uploadVodsDTO) { - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(uploadVodsDTO.getSubjectId()); - - VodDictDO vodDictDO = new VodDictDO(); - BeanUtils.copyProperties(uploadVodsDTO, vodDictDO); - vodDictDO.setStatus("0"); - vodDictDO.setShareStatus("0"); //刚上传的视频属于个人库 - vodDictDO.setCheckStatus("0"); //刚上传的视频,没有审核状态 - vodDictDO.setSubjectId(subjectDictDO.getSubjectEn()); - vodDictDO.setCreateDate(LocalDateTime.now()); - vodDictDO.setUpdateDate(LocalDateTime.now()); - this.baseMapper.insert(vodDictDO); - - List longs = uploadVodsDTO.getTreeIds(); - for (Long lg : longs) { - VodSubjectTreeMappingDO vodTreeMappingDO = new VodSubjectTreeMappingDO(); - vodTreeMappingDO.setTreeId(lg); - vodTreeMappingDO.setVodId(vodDictDO.getId()); - vodTreeMappingDO.setStatus("1"); - vodSubjectTreeMappingMapper.insert(vodTreeMappingDO); - -// //包含知识点的课程,也会传上该视频 -// //找到包含 该知识点的courseTree -// List courseTreeDOS = courseTreeMapper.selectList(new QueryWrapper() -// .lambda() -// .eq(CourseTreeDO::getTreeId, lg)); -// -// for (CourseTreeDO courseTreeDO : courseTreeDOS) { -// //新增记录 -// VodCourseTreeMappingDO vodCourseTreeMappingDO = new VodCourseTreeMappingDO(); -// vodCourseTreeMappingDO.setVodId(vodDictDO.getId()); -// vodCourseTreeMappingDO.setTreeId(courseTreeDO.getId()); -// vodCourseTreeMappingDO.setStatus("0"); -// vodCourseTreeMappingMapper.insert(vodCourseTreeMappingDO); -// } - } - - //上传后直接转码 - Credential cred = new Credential(vodConfig.getSecretId(), vodConfig.getSecretKey()); - - HttpProfile httpProfile = new HttpProfile(); - httpProfile.setEndpoint("vod.tencentcloudapi.com"); - - ClientProfile clientProfile = new ClientProfile(); - clientProfile.setHttpProfile(httpProfile); - - VodClient client = new VodClient(cred, "", clientProfile); - - ProcessMediaRequest processMediaRequest = new ProcessMediaRequest(); - MediaProcessTaskInput mediaProcessTaskInput1 = new MediaProcessTaskInput(); - TranscodeTaskInput[] transcodeTaskInputs1 = new TranscodeTaskInput[1]; - TranscodeTaskInput transcodeTaskInput1 = new TranscodeTaskInput(); - transcodeTaskInput1.setDefinition(ConstantUtils.TEMPLATE_VOD); - transcodeTaskInputs1[0] = transcodeTaskInput1; - mediaProcessTaskInput1.setTranscodeTaskSet(transcodeTaskInputs1); - processMediaRequest.setMediaProcessTask(mediaProcessTaskInput1); - processMediaRequest.setFileId(uploadVodsDTO.getVodCode()); - - ProcessMediaResponse processMediaResponse = null; - try { - processMediaResponse = client.ProcessMedia(processMediaRequest); - System.out.println(processMediaResponse); - } catch (Exception ex) { - throw new HttpException(50001); - } - - return vodDictDO; - } - - public String updateVod(UploadVodsDTO uploadVodsDTO) { - - VodDictDO vodDictDO = new VodDictDO(); - BeanUtils.copyProperties(uploadVodsDTO, vodDictDO); - this.baseMapper.updateById(vodDictDO); - - vodSubjectTreeMappingMapper.delete(new QueryWrapper() - .lambda() - .in(VodSubjectTreeMappingDO::getVodId, uploadVodsDTO.getId())); - -// //从新传了新视频,需要转码 -// if (!uploadVodsDTO.getVodUrl().contains("100030")){ -// //上传后直接转码 -// Credential cred = new Credential(vodConfig.getSecretId(), vodConfig.getSecretKey()); -// -// HttpProfile httpProfile = new HttpProfile(); -// httpProfile.setEndpoint("vod.tencentcloudapi.com"); -// -// ClientProfile clientProfile = new ClientProfile(); -// clientProfile.setHttpProfile(httpProfile); -// -// VodClient client = new VodClient(cred, "", clientProfile); -// -// ProcessMediaRequest processMediaRequest = new ProcessMediaRequest(); -// MediaProcessTaskInput mediaProcessTaskInput1 = new MediaProcessTaskInput(); -// TranscodeTaskInput[] transcodeTaskInputs1 = new TranscodeTaskInput[1]; -// TranscodeTaskInput transcodeTaskInput1 = new TranscodeTaskInput(); -// transcodeTaskInput1.setDefinition(ConstantUtils.TEMPLATE_VOD); -// transcodeTaskInputs1[0] = transcodeTaskInput1; -// mediaProcessTaskInput1.setTranscodeTaskSet(transcodeTaskInputs1); -// processMediaRequest.setMediaProcessTask(mediaProcessTaskInput1); -// processMediaRequest.setFileId(uploadVodsDTO.getVodCode()); -// -// ProcessMediaResponse processMediaResponse = null; -// try { -// processMediaResponse = client.ProcessMedia(processMediaRequest); -// System.out.println(processMediaResponse); -// -// //删除原视频 TODO -// } catch (Exception ex) { -// throw new HttpException(50001); -// } -// } - - List longs = uploadVodsDTO.getTreeIds(); - for (Long lg : longs) { - VodSubjectTreeMappingDO vodTreeMappingDO = new VodSubjectTreeMappingDO(); - vodTreeMappingDO.setTreeId(lg); - vodTreeMappingDO.setVodId(vodDictDO.getId()); - vodSubjectTreeMappingMapper.insert(vodTreeMappingDO); - } - return ConstantUtils.SUCCESS_UPDATE; - } - - public VodDictDO getVodInfo(VodDictDO vodDictDO) { - return this.baseMapper.selectById(vodDictDO.getId()); - } - - public String insertPlayHistory(VodPlayHistoryDO vodPlayHistoryDO) { - vodPlayHistoryMapper.insert(vodPlayHistoryDO); - return ConstantUtils.ADD_SUCCESS; - } - - public GetToCheckCountsVO getToCheckVodCounts(GetToCheckVodCountsDTO getToCheckVodCountsDTO) { - - GetToCheckCountsVO getToCheckVodCountsVO = new GetToCheckCountsVO(); - - KnowledgeSubjectDictDO subjectDictDO = knowledgeSubjectDictMapper.selectById(getToCheckVodCountsDTO.getSubjectId()); - - - Integer counts = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(VodDictDO::getSubjectId, subjectDictDO.getSubjectEn()) - .eq(VodDictDO::getCheckStatus, "2")); - - getToCheckVodCountsVO.setToCheckCounts(counts); - //已审核 包括已通过 未通过 - Integer counts1 = this.baseMapper.selectCount(new QueryWrapper() - .lambda() - .eq(VodDictDO::getSubjectId, subjectDictDO.getSubjectEn()) - .in(VodDictDO::getCheckStatus, new String[]{"1", "3"})); - - - getToCheckVodCountsVO.setCheckCounts(counts1); - - return getToCheckVodCountsVO; - } - - @Transactional(rollbackFor = Exception.class) - public String compressVodByCode(VodDictDO vodDictDO) { - - VodDictDO vodDictDO1 = this.baseMapper.selectById(vodDictDO.getId()); - - //转码 - Credential cred = new Credential(vodConfig.getSecretId(), vodConfig.getSecretKey()); - - HttpProfile httpProfile = new HttpProfile(); - httpProfile.setEndpoint("vod.tencentcloudapi.com"); - - ClientProfile clientProfile = new ClientProfile(); - clientProfile.setHttpProfile(httpProfile); - - VodClient client = new VodClient(cred, "", clientProfile); - - ProcessMediaRequest processMediaRequest = new ProcessMediaRequest(); - MediaProcessTaskInput mediaProcessTaskInput1 = new MediaProcessTaskInput(); - TranscodeTaskInput[] transcodeTaskInputs1 = new TranscodeTaskInput[1]; - TranscodeTaskInput transcodeTaskInput1 = new TranscodeTaskInput(); - transcodeTaskInput1.setDefinition(ConstantUtils.TEMPLATE_VOD); - transcodeTaskInputs1[0] = transcodeTaskInput1; - mediaProcessTaskInput1.setTranscodeTaskSet(transcodeTaskInputs1); - processMediaRequest.setMediaProcessTask(mediaProcessTaskInput1); - processMediaRequest.setFileId(vodDictDO1.getVodCode()); - - ProcessMediaResponse processMediaResponse = null; - try { - processMediaResponse = client.ProcessMedia(processMediaRequest); - System.out.println(processMediaResponse); - } catch (Exception ex) { - throw new HttpException(50001); - } - - - return ConstantUtils.COMPRESS_SUCCESS; - } - - public String deleteOriginVod(DeleteOriginVodDTO deleteOriginVodDTO) { - //转码 - Credential cred = new Credential(vodConfig.getSecretId(), vodConfig.getSecretKey()); - - HttpProfile httpProfile = new HttpProfile(); - httpProfile.setEndpoint("vod.tencentcloudapi.com"); - - ClientProfile clientProfile = new ClientProfile(); - clientProfile.setHttpProfile(httpProfile); - - VodClient client = new VodClient(cred, "", clientProfile); - - //删除原视频 - try { - - //替换原视频的地址 - List mediaProcessResultSets = deleteOriginVodDTO.getProcedureStateChangeEvent() - .getMediaProcessResultSet(); - - VodDictDO vodDictDO = vodDictMapper.selectOne(new QueryWrapper() - .lambda() - .eq(VodDictDO::getVodCode, deleteOriginVodDTO.getProcedureStateChangeEvent().getFileId())); - - vodDictDO.setVodUrl(mediaProcessResultSets.get(0).getTranscodeTask().getOutput().getUrl()); - vodDictMapper.updateById(vodDictDO); - - DeleteMediaRequest req = new DeleteMediaRequest(); - req.setFileId(deleteOriginVodDTO.getProcedureStateChangeEvent().getFileId()); - - MediaDeleteItem[] mediaDeleteItems1 = new MediaDeleteItem[1]; - MediaDeleteItem mediaDeleteItem1 = new MediaDeleteItem(); - mediaDeleteItem1.setType("OriginFiles"); - mediaDeleteItems1[0] = mediaDeleteItem1; - - req.setDeleteParts(mediaDeleteItems1); - - client.DeleteMedia(req); - - } catch (Exception e) { - System.out.println(e.toString()); - } - - return ConstantUtils.DELETE_SUCCESS; - } - - public String checkVod(CheckVodDTO checkVodDTO) { - - //审核通过 - if ("1".equals(checkVodDTO.getCheckStatus())) { - VodDictDO vodDictDO1 = vodDictMapper.selectById(checkVodDTO.getId()); - - vodDictDO1.setVodName(checkVodDTO.getVodName()); - vodDictDO1.setVodType(checkVodDTO.getVodType()); - vodDictDO1.setShareStatus("1"); //已共享 - vodDictDO1.setCheckStatus("1");// 已通过审核 - vodDictMapper.updateById(vodDictDO1); - - List ids = checkVodDTO.getTreeIds(); - - //删除之前原视频的关联知识点 - vodSubjectTreeMappingMapper.delete(new QueryWrapper() - .lambda() - .eq(VodSubjectTreeMappingDO::getVodId, vodDictDO1.getId())); - - for (Long lg : ids) { - //知识点关联 - VodSubjectTreeMappingDO vodSubjectTreeMappingDO = new VodSubjectTreeMappingDO(); - vodSubjectTreeMappingDO.setVodId(vodDictDO1.getId()); - vodSubjectTreeMappingDO.setTreeId(lg); - vodSubjectTreeMappingDO.setStatus("0"); //不是关联视频 - vodSubjectTreeMappingMapper.insert(vodSubjectTreeMappingDO); - } - } else { - //不通过 - VodDictDO vodDictDO = new VodDictDO(); - BeanUtils.copyProperties(checkVodDTO, vodDictDO); - this.baseMapper.updateById(vodDictDO); - } - return ConstantUtils.CHECK_STATUS; - } - - public IPage publicUpload(PublicCheckingDTO publicCheckingDTO) { - - Page pager = new Page(publicCheckingDTO.getPageNum(), publicCheckingDTO.getPageSize()); - return this.baseMapper.selectPage(pager, new QueryWrapper() - .lambda() - .eq(VodDictDO::getAdministerId, publicCheckingDTO.getUserId()) - .eq(VodDictDO::getCheckStatus, publicCheckingDTO.getCheckStatus()) - .orderByDesc(VodDictDO::getUpdateDate)); - } - - public String withdraw(VodDictDO vodDictDO) { - vodDictDO.setCheckStatus("0"); - vodDictDO.setShareStatus("0"); - this.baseMapper.updateById(vodDictDO); - return ConstantUtils.SET_SUCCESS; - } - - public GetVodDetailVO getVodDetail(VodDictDO vodDictDO) { - - GetVodDetailVO getVodDetailVO = new GetVodDetailVO(); - - VodDictDO vodDictDO1 = this.baseMapper.selectById(vodDictDO.getId()); - BeanUtils.copyProperties(vodDictDO1, getVodDetailVO); - - List subjectTreeDOS = this.baseMapper.getTrees(vodDictDO.getId()); - - getVodDetailVO.setSubjectTreeDOS(subjectTreeDOS); - return getVodDetailVO; - } - - public String setRelatedVod(VodSubjectTreeMappingDO vodSubjectTreeMappingDO){ - - VodSubjectTreeMappingDO vodSubjectTreeMappingDO1 = new VodSubjectTreeMappingDO(); - vodSubjectTreeMappingDO1.setStatus(vodSubjectTreeMappingDO.getStatus()); - - vodSubjectTreeMappingMapper.update(vodSubjectTreeMappingDO1,new QueryWrapper() - .lambda() - .eq(VodSubjectTreeMappingDO::getVodId,vodSubjectTreeMappingDO.getVodId())); - - return ConstantUtils.SUCCESS_UPDATE; - } - -} diff --git a/src/main/java/com/meishu/service/impl/VodPlayHistoryServiceImpl.java b/src/main/java/com/meishu/service/impl/VodPlayHistoryServiceImpl.java deleted file mode 100644 index 9b0c9a0..0000000 --- a/src/main/java/com/meishu/service/impl/VodPlayHistoryServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.VodPlayHistoryDO; -import com.meishu.mapper.VodPlayHistoryMapper; -import com.meishu.service.VodPlayHistoryService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 视频播放历史记录表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class VodPlayHistoryServiceImpl extends ServiceImpl implements VodPlayHistoryService { - -} diff --git a/src/main/java/com/meishu/service/impl/VodSubjectTreeMappingServiceImpl.java b/src/main/java/com/meishu/service/impl/VodSubjectTreeMappingServiceImpl.java deleted file mode 100644 index 12d179d..0000000 --- a/src/main/java/com/meishu/service/impl/VodSubjectTreeMappingServiceImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.meishu.service.impl; - -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.meishu.dto.subject.BatchStatusOprDTO; -import com.meishu.dto.subject.GetAllVodsStatusDTO; -import com.meishu.mapper.VodDictMapper; -import com.meishu.model.VodSubjectTreeMappingDO; -import com.meishu.mapper.VodSubjectTreeMappingMapper; -import com.meishu.service.VodSubjectTreeMappingService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.meishu.util.ConstantUtils; -import com.meishu.vo.subject.GetAllNoAuthenVodsVO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - *

- * 视频知识点映射表 服务实现类 - *

- * - * @author Tuyp - * @since 2021-04-27 - */ -@Service -public class VodSubjectTreeMappingServiceImpl extends ServiceImpl implements VodSubjectTreeMappingService { - - @Autowired - private VodDictMapper vodDictMapper; - - public IPage getAllNoAuthenVods(GetAllVodsStatusDTO getAllNoAuthenVodsDTO){ - Page pager = new Page(getAllNoAuthenVodsDTO.getPageNum(), getAllNoAuthenVodsDTO.getPageSize()); - IPage getAllNoAuthenVodsVOIPage = this.baseMapper.getAllNoAuthenVods(pager,getAllNoAuthenVodsDTO.getTreeId(),getAllNoAuthenVodsDTO.getStatus(),getAllNoAuthenVodsDTO.getVodType()); - List getAllNoAuthenVodsVOS = getAllNoAuthenVodsVOIPage.getRecords(); - for (GetAllNoAuthenVodsVO getAllNoAuthenVodsVO : getAllNoAuthenVodsVOS){ - getAllNoAuthenVodsVO.setSubjectTreeDOS(vodDictMapper.getVodTrees(getAllNoAuthenVodsVO.getId())); - } - return getAllNoAuthenVodsVOIPage; - } - - public String batchStatusOpr(BatchStatusOprDTO batchStatusOprDTO){ - - List ids = batchStatusOprDTO.getIds(); - for (Long lg : ids){ - vodDictMapper.updateStatus(lg,batchStatusOprDTO.getStatus()); - } - return ConstantUtils.SET_SUCCESS; - } -} diff --git a/src/main/java/com/meishu/service/impl/WrittenHomeworkServiceImpl.java b/src/main/java/com/meishu/service/impl/WrittenHomeworkServiceImpl.java deleted file mode 100644 index fd1b7b6..0000000 --- a/src/main/java/com/meishu/service/impl/WrittenHomeworkServiceImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.service.impl; - -import com.meishu.model.WrittenHomeworkDO; -import com.meishu.mapper.WrittenHomeworkMapper; -import com.meishu.service.WrittenHomeworkService; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import org.springframework.stereotype.Service; - -/** - *

- * 通知/附件作业表 服务实现类 - *

- * - * @author DengMin - * @since 2021-09-16 - */ -@Service -public class WrittenHomeworkServiceImpl extends ServiceImpl implements WrittenHomeworkService { - -} diff --git a/src/main/java/com/meishu/util/BaseModel.java b/src/main/java/com/meishu/util/BaseModel.java deleted file mode 100644 index 8017603..0000000 --- a/src/main/java/com/meishu/util/BaseModel.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.meishu.util; - -import com.baomidou.mybatisplus.annotation.FieldFill; -import com.baomidou.mybatisplus.annotation.FieldStrategy; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableLogic; -import com.fasterxml.jackson.annotation.JsonIgnore; -import lombok.Data; - -import java.time.LocalDateTime; - -@Data -public abstract class BaseModel { - - /** - * 创建时间 - */ - @JsonIgnore - @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER, value = "create_date", fill = FieldFill.INSERT) - private LocalDateTime createDate; - - /** - * 更新时间 - */ - @JsonIgnore - @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER, value = "update_date", fill = FieldFill.UPDATE) - private LocalDateTime updateDate; - - /** - * 删除时间 - */ - @JsonIgnore - @TableLogic - private LocalDateTime deleteDate; -} diff --git a/src/main/java/com/meishu/util/CodeGenerator.java b/src/main/java/com/meishu/util/CodeGenerator.java deleted file mode 100644 index 64203ae..0000000 --- a/src/main/java/com/meishu/util/CodeGenerator.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.meishu.util; - -import com.baomidou.mybatisplus.annotation.DbType; -import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException; -import com.baomidou.mybatisplus.core.toolkit.StringPool; -import com.baomidou.mybatisplus.core.toolkit.StringUtils; -import com.baomidou.mybatisplus.generator.AutoGenerator; -import com.baomidou.mybatisplus.generator.InjectionConfig; -import com.baomidou.mybatisplus.generator.config.*; -import com.baomidou.mybatisplus.generator.config.po.TableInfo; -import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; -import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine; - -import java.util.ArrayList; -import java.util.List; -import java.util.ResourceBundle; -import java.util.Scanner; - -/** - * Mybatis-Plus CodeGenerator - * - * @author DengMin - * @date 2020/07/02 - **/ -public class CodeGenerator { - - public static String scanner(String tip) { - StringBuilder help = new StringBuilder(); - help.append("1.生成全部表 2.输入需要生成表名"); - System.out.println(help.toString()); - Scanner scanner = new Scanner(System.in); - Integer ipt = Integer.valueOf(scanner.next()); - if(ipt == 1) { - return ""; - } else if(ipt == 2) { - StringBuilder help1 = new StringBuilder(); - help1.append("请输入" + tip + ":"); - System.out.println(help1.toString()); - Scanner scanner1 = new Scanner(System.in); - if (scanner1.hasNext()) { - String name = scanner1.next(); - if (StringUtils.isNotEmpty(name)) { - return name; - } - } - throw new MybatisPlusException("请输入正确的" + tip + "!"); - } - return scanner(tip); - } - - public static void main(String[] args) { - final ResourceBundle rb = ResourceBundle.getBundle("mybatis-plus"); - // 代码生成器 - AutoGenerator mpg = new AutoGenerator(); - - // 全局配置 - GlobalConfig gc = new GlobalConfig(); - gc.setOutputDir(System.getProperty("user.dir") + rb.getString("outputDir")); - gc.setOpen(false); - gc.setBaseResultMap(true); - gc.setBaseColumnList(true); - gc.setAuthor(rb.getString("author")); - gc.setMapperName("%sMapper"); - gc.setEntityName("%sDO"); - gc.setServiceName("%sService"); - gc.setServiceImplName("%sServiceImpl"); - gc.setControllerName("%sController"); - mpg.setGlobalConfig(gc); - - // 数据源配置 - DataSourceConfig dsc = new DataSourceConfig(); - dsc.setDbType(DbType.MYSQL); - dsc.setUrl(rb.getString("url")); - dsc.setDriverName(rb.getString("driverName")); - dsc.setUsername(rb.getString("userName")); - dsc.setPassword(rb.getString("password")); - mpg.setDataSource(dsc); - - // 包配置 - PackageConfig pc = new PackageConfig(); - pc.setParent(rb.getString("setParent")); - pc.setController("controller"); - pc.setService("service"); - pc.setServiceImpl("service.impl"); - pc.setEntity("model"); - pc.setMapper("mapper"); - mpg.setPackageInfo(pc); - - // 自定义配置 - InjectionConfig cfg = new InjectionConfig() { - @Override - public void initMap() { - // to do nothing - } - }; - List focList = new ArrayList<>(); - focList.add(new FileOutConfig("/templates/mapper.xml.ftl") { - @Override - public String outputFile(TableInfo tableInfo) { - // 自定义输入文件名称 - return System.getProperty("user.dir")+ rb.getString("mapperPath") + tableInfo.getMapperName() + StringPool.DOT_XML; - } - }); - cfg.setFileOutConfigList(focList); - mpg.setCfg(cfg); - mpg.setTemplate(new TemplateConfig().setXml(null)); - - // 策略配置 - StrategyConfig strategy = new StrategyConfig(); - strategy.setNaming(NamingStrategy.underline_to_camel); - strategy.setColumnNaming(NamingStrategy.underline_to_camel); - strategy.setSuperEntityClass(BaseModel.class); - strategy.setEntityLombokModel(true); - strategy.setRestControllerStyle(true); - String [] tables = scanner("表名,多个英文逗号分割").split(","); - if(StringUtils.isNotBlank(tables[0])) { - strategy.setInclude(tables); - } - strategy.setControllerMappingHyphenStyle(true); - mpg.setStrategy(strategy); - mpg.setTemplateEngine(new FreemarkerTemplateEngine()); - mpg.execute(); - } -} \ No newline at end of file diff --git a/src/main/java/com/meishu/util/CodeTrans.java b/src/main/java/com/meishu/util/CodeTrans.java deleted file mode 100644 index e3835ba..0000000 --- a/src/main/java/com/meishu/util/CodeTrans.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.util; - -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.Scanner; - -public class CodeTrans { - - public static void main(String[] args) { - - System.out.println("请输入手机号:"); - Scanner scanner = new Scanner(System.in); - String telephone = scanner.nextLine(); - //String telephone = "15201936167"; - SimpleDateFormat sj1 = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); - String current = sj1.format(new Date()); - //System.out.println(current); - String[] arrTemp = current.split(" "); - - String[] timeArr = arrTemp[1].split(":"); - Integer first = Integer.valueOf(timeArr[1].substring(0,1)); - Integer second = Integer.valueOf(timeArr[0].substring(0,1)); - Integer third = Integer.valueOf(timeArr[0].substring(1)); - Integer fourth = Integer.valueOf(timeArr[1].substring(1)); - //System.out.println(first +"===" + second +"===" +third+"===="+fourth); - System.err.println("验证码是:"+telephone.charAt(first)+"->"+telephone.charAt(second)+"->"+telephone.charAt(third)+"->"+telephone.charAt(fourth)); - System.exit(0); - - } - -} diff --git a/src/main/java/com/meishu/util/ConstantUtils.java b/src/main/java/com/meishu/util/ConstantUtils.java deleted file mode 100644 index 47e6ca9..0000000 --- a/src/main/java/com/meishu/util/ConstantUtils.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.meishu.util; - - -/** - * 枚举类 - */ -public class ConstantUtils { - - public static final String DELETE_SUCCESS = "删除成功"; - - public static final String UPLOAD_FAIL = "上传失败"; - - public static final String ADD_SUCCESS = "新增成功"; - - public static final String COMMIT_SUCCESS = "提交成功"; - - public static final String SUCCESS_SEND_OUT = "发送成功"; - - public static final String FAIL_SEND_OUT = "发送失败"; - - public static final String SAVE_SUCCESS = "保存成功"; - - public static final String SHARE_SUCCESS = "共享成功"; - - public static final String SUBMIT_SUCCESS = "提交成功"; - - public static final String SUCCESS_UPDATE = "更新成功"; - - public static final String FAIL_UPDATE = "更新失败"; - - public static final String SET_SUCCESS = "设置成功"; - - public static final String SUCCESS_VERIFY = "验证成功"; - - public static final String FAIL_VERIFY = "验证失败"; - - public static final String COMPANY_NAME = "TeachAI"; - - public static final String ALREADY_DONE = "已完成"; - - public static final String ALREADY_RECOMMEND = "已推荐"; - - public static final String VERIFY_NAME = "有课互联"; - - public static final String NOTICE_NAME = "有课进度通知"; - - public static final String PUBLISH_SUCCESS = "发布成功"; - - public static final String LOGIN_OUT ="登出成功"; - - public static final String COMPRESS_SUCCESS = "压缩成功"; - - public static final String SCHOOL = "上海市市西中学"; - - public static final String CHECK_STATUS = "审核通过"; - - /** - * 短信模板---验证模板 - */ - public static final String TEMPLATE_CODE = "SMS_190945394"; - - /** - * 短信 地域ID - */ - public static final String REGION_ID = "cn-hangzhou"; - - /** - * 短信 RAM账号AccessKey ID - */ - public static final String ACCESS_KEY_ID = "LTAIOrpFKrDqsQ2c"; - - /** - * 短信 RAM账号AccessKey Secret - */ - public static final String SECRET = "1Qp8huLETbWiBBJvHXJ7MOIhtKuA1G"; - - /** - * 腾讯云点播视频转码模板 - */ - public static final Long TEMPLATE_VOD = 100030L; - - /** - * 手机端token - */ - public static final String MOBILE_TERMINATE = "mobile"; - - public static final String ADMINISTER_TERMINATE = "administer"; - -} diff --git a/src/main/java/com/meishu/util/DateFormatUtil.java b/src/main/java/com/meishu/util/DateFormatUtil.java deleted file mode 100644 index b63f146..0000000 --- a/src/main/java/com/meishu/util/DateFormatUtil.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.meishu.util; - -import java.text.SimpleDateFormat; -import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; -import java.util.Date; -import java.util.Locale; - -/** - * 处理时间工具 - * - * @author DengMin - * @date 2019/08/27 13:56 - **/ -public class DateFormatUtil { - - public final static String YEAR = "yyyy"; - public final static String FMT_sdf14_L = "yyyy-MM-dd HH:mm:ss"; - public final static String FMT_sdf_yMd = "yyyy-MM-dd"; - public final static String FMT_sdf_yM = "yyyy-M"; - public final static String FMT_sdf_yMM = "yyyy-MM"; - public final static String FMT_sdf_Hm = "H:mm"; - public final static String FMT_sdf_HHmm = "HH:mm"; - public final static String cron = "s m H d M ? yyyy"; - - /** - * Date转String,自定义格式 - * @param date - * @param pattern - * @return - */ - public static String format(Date date, String pattern) { - try { - SimpleDateFormat sdf = new SimpleDateFormat(pattern); - return sdf.format(date); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } - - /** - * String转Date,自定义格式 - * @param date - * @param pattern - * @return - */ - public static Date parse(String date, String pattern) { - try { - SimpleDateFormat sdf = new SimpleDateFormat(pattern); - return sdf.parse(date); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } - - /** - * 比较两个时间 - * .after 大于 - * .before 小于 - * @param d1 - * @param d2 - * @return - */ - public static boolean compare(Date d1, Date d2 ) { - if(d1.after(d2)) { - return false; - } - return true; - } - - /** - * Data转Cron - * @param date - * @return - */ - public static String getCron(Date date) { - SimpleDateFormat sdf = new SimpleDateFormat("s m H d M ? yyyy"); - return sdf.format(date); - } -} diff --git a/src/main/java/com/meishu/util/EncryptUtil.java b/src/main/java/com/meishu/util/EncryptUtil.java deleted file mode 100644 index 2416450..0000000 --- a/src/main/java/com/meishu/util/EncryptUtil.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.meishu.util; - -import com.amdelamar.jhash.Hash; -import com.amdelamar.jhash.algorithms.Type; -import com.amdelamar.jhash.exception.InvalidHashException; - -public class EncryptUtil { - - /** - * 设置密文密码 - * - * @param password 原始密码 - * @return 加密密码 - */ - public static String encrypt(String password) { - char[] chars = password.toCharArray(); - return Hash.password(chars).algorithm(Type.PBKDF2_SHA256).create(); - } - - /** - * 验证加密密码 - * - * @param encryptedPassword 密文密码 - * @param plainPassword 明文密码 - * @return 验证是否成功 - */ - public static boolean verify(String encryptedPassword, String plainPassword) { - char[] chars = plainPassword.toCharArray(); - try { - return Hash.password(chars).algorithm(Type.PBKDF2_SHA256).verify(encryptedPassword); - } catch (InvalidHashException e) { - return false; - } - } -} diff --git a/src/main/java/com/meishu/util/HttpUtil.java b/src/main/java/com/meishu/util/HttpUtil.java deleted file mode 100644 index e91b7c3..0000000 --- a/src/main/java/com/meishu/util/HttpUtil.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.meishu.util; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import org.springframework.http.*; -import org.springframework.web.client.RestTemplate; - -import java.util.HashMap; -import java.util.Map; - -/** - * http请求 - */ -public class HttpUtil { - - /** - * GET 请求 - * @param params - * @param url - * @return - */ - public static JSONObject get(Map params, String url) { - RestTemplate restTemplate = new RestTemplate(); - ResponseEntity responseEntity = restTemplate.getForEntity(url, String.class, params); - String body = responseEntity.getBody(); - JSONObject object = JSON.parseObject(body); - return object; - } - - /** - * POST 请求 - * @param params - * @param url - * @return - */ - public static JSONObject post(Map params, String url) { - RestTemplate restTemplate = new RestTemplate(); - ResponseEntity responseEntity = restTemplate.postForEntity(url, params, String.class); - String body = responseEntity.getBody(); - JSONObject object = JSON.parseObject(body); - return object; - } - - /** - * POST 请求 带Token - * - * @param param - * @param token - * @param url - * @return - */ - public static JSONObject sendPost(Map param, String token, String url, Object obj) { - RestTemplate restTemplate = new RestTemplate(); - HttpHeaders headers = new HttpHeaders(); - headers.setContentType(MediaType.APPLICATION_JSON); - headers.add("Accept", MediaType.ALL_VALUE); - headers.add("Authorization", "Bearer " + token); - HttpEntity formEntity = new HttpEntity(param.toString(), headers); - ResponseEntity responseEntity = restTemplate.exchange(url, HttpMethod.POST, formEntity, String.class, obj); - String body = responseEntity.getBody(); - JSONObject object = JSON.parseObject(body); - return object; - } -} diff --git a/src/main/java/com/meishu/util/JwtUtil.java b/src/main/java/com/meishu/util/JwtUtil.java deleted file mode 100644 index e4a4cfe..0000000 --- a/src/main/java/com/meishu/util/JwtUtil.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.meishu.util; - -import com.auth0.jwt.JWT; -import com.auth0.jwt.JWTVerifier; -import com.auth0.jwt.algorithms.Algorithm; -import com.auth0.jwt.interfaces.Claim; - -import java.util.Date; -import java.util.Map; - -/** - *

- * Token工具 - *

- * - * @author DengMin - * @since 2021/4/14 - */ -public class JwtUtil { - - private static Long EXPIRE_TIME = 24 * 60 * 60 * 1000L; - - private static String SECRET = "PBKDF2SHA256:64000:18:24:N:GFHZ6Y0PTEUDYCJI3K6SOOXWYEKPOZED:WBWFJMX5DF252E0HR3BF3P/D"; - - /** - * 生成Token - * @param id - * @return - */ - public static String generateToken(Long id, String type) { - Date expireDate = new Date(System.currentTimeMillis() + EXPIRE_TIME); - return JWT.create() - .withClaim("id", id) - .withClaim("type", type) - .withAudience() - .withExpiresAt(expireDate) - .withIssuedAt(new Date()) - .sign(Algorithm.HMAC256(SECRET)); - } - - /** - * 检验token是否正确 - * @param token - * @return - */ - public static boolean verifyToken(String token) { - try { - Algorithm algorithm = Algorithm.HMAC256(SECRET); - JWTVerifier verifier = JWT.require(algorithm).build(); - verifier.verify(token); - return true; - } catch (Exception e) { - return false; - } - } - - /** - * 获取用户自定义Claim集合 - * @param token - * @return - */ - public static Map getClaims(String token) { - Algorithm algorithm = Algorithm.HMAC256(SECRET); - JWTVerifier verifier = JWT.require(algorithm).build(); - Map claims = verifier.verify(token).getClaims(); - return claims; - } - - /** - * 获取过期时间 - * @param token - * @return - */ - public static Date getExpiresAt(String token) { - Algorithm algorithm = Algorithm.HMAC256(SECRET); - return JWT - .require(algorithm) - .build() - .verify(token) - .getExpiresAt(); - } - - /** - * 验证token是否失效 - * @param token - * @return true: 过期, false: 没过期 - */ - public static boolean isExpired(String token) { - try { - final Date expiration = getExpiresAt(token); - return expiration.before(new Date()); - } catch (Exception e) { - return true; - } - } -} diff --git a/src/main/java/com/meishu/util/LatexUtils.java b/src/main/java/com/meishu/util/LatexUtils.java deleted file mode 100644 index dac38fc..0000000 --- a/src/main/java/com/meishu/util/LatexUtils.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.meishu.util; - -import org.scilab.forge.jlatexmath.TeXConstants; -import org.scilab.forge.jlatexmath.TeXFormula; -import org.scilab.forge.jlatexmath.TeXIcon; - -import javax.imageio.ImageIO; -import javax.swing.*; -import java.awt.*; -import java.awt.image.BufferedImage; -import java.io.*; - -/** - * @author: tuyp - * @create: 2020-08-08 21:19 - */ -public class LatexUtils { - - /** - * @Description: 将base64编码字符串转换为图片 - * @Author: - * @CreateTime: - * @param imgStr - * base64编码字符串 - * @param path - * 图片路径-具体到文件 - * @return - */ - public static boolean generateImage(String imgStr, String path) { - if (imgStr == null) { - return false; - } -// BASE64Decoder decoder = new BASE64Decoder(); - try { -// byte[] b = decoder.decodeBuffer(imgStr); -// for (int i = 0; i < b.length; i++) { -// if (b[i] < 0) { -// b[i] += 256; -// } -// } -// OutputStream out = new FileOutputStream(path); -// out.write(b); -// out.flush(); -// out.close(); - return true; - } catch (Exception e) { - // TODO: handle exception - return false; - } - } - - /** - * @Description: 根据图片地址转换为base64编码字符串 - * @Author: - * @CreateTime: - * @return - */ -// public static String getImageStr(String imgFile) { -// InputStream inputStream = null; -// byte[] data = null; -// try { -// inputStream = new FileInputStream(imgFile); -// data = new byte[inputStream.available()]; -// inputStream.read(data); -// inputStream.close(); -// } catch (IOException e) { -// e.printStackTrace(); -// } -// // 加密 -// BASE64Encoder encoder = new BASE64Encoder(); -// return encoder.encode(data); -// } - - // latex 转 imgbase64 - public static String latex2Png(String latex) { - try { - TeXFormula formula = new TeXFormula(latex); - // render the formla to an icon of the same size as the formula. - TeXIcon icon = formula.createTeXIcon(TeXConstants.STYLE_DISPLAY, 20); - // insert a border - icon.setInsets(new Insets(1, 1, 1, 1)); - // now create an actual image of the rendered equation - BufferedImage image = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_BYTE_GRAY); - Graphics2D g2 = image.createGraphics(); - g2.setColor(Color.white); - g2.fillRect(0, 0, icon.getIconWidth(), icon.getIconHeight()); - JLabel jl = new JLabel(); - jl.setForeground(new Color(0, 0, 0)); - icon.paintIcon(jl, g2, 0, 0); - // at this point the image is created, you could also save it with ImageIO - // saveImage(image, "png", "F:\\b.png"); -// ImageIO.write(image, "png", new File("F:\\c.png")); - ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); - try { - ImageIO.write(image, "png", outputStream); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return null; - } - byte[] buffer = outputStream.toByteArray(); -// BASE64Encoder encoder = new BASE64Encoder(); - return ("data:image/png;base64,"); - } catch (Exception e) { - // e.printStackTrace(); - // ExceptionUtil.log(log, e); - System.err.println("公式解析有误:\n" + latex); - // e.printStackTrace(); - return null; - } - } - - public static void main(String[] args) { - String str = latex2Png("\\(\\sqrt[3]{2+x}\\)"); - System.out.println(str); - - - - -// String omml =Latex_Word.latexToWord(str); -// System.out.println(omml); - } - -} diff --git a/src/main/java/com/meishu/util/Localstorage.java b/src/main/java/com/meishu/util/Localstorage.java deleted file mode 100644 index 926b833..0000000 --- a/src/main/java/com/meishu/util/Localstorage.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.util; - -import org.springframework.web.bind.annotation.RestController; - -@RestController -public class Localstorage { - - private static final ThreadLocal local = ThreadLocal.withInitial(() -> null); - - public static void setUser(Object admin) { - Localstorage.local.set(admin); - } - - public static Object getUser() { - return Localstorage.local.get(); - } - - public static void remove() { - Localstorage.local.remove(); - } -} diff --git a/src/main/java/com/meishu/util/MathUtil.java b/src/main/java/com/meishu/util/MathUtil.java deleted file mode 100644 index 086c4f0..0000000 --- a/src/main/java/com/meishu/util/MathUtil.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.meishu.util; - -import java.math.BigDecimal; -import java.math.RoundingMode; -import java.util.Random; - -public class MathUtil { - - public static String getRandomCode(int randomLength) { - StringBuilder str = new StringBuilder(); - Random random = new Random(); - for (int i = 0; i < randomLength; i++) { - str.append(random.nextInt(10)); - } - return str.toString(); - } - - public static String getRandomString(int length) { - StringBuilder val = new StringBuilder(); - Random random = new Random(); - for (int i = 0; i < length; ++i) { - String charOrNum = random.nextInt(3) % 3 == 0 ? "num" : "char"; - if ("char".equalsIgnoreCase(charOrNum)) { - int temp = random.nextInt(2) % 2 == 0 ? 65 : 97; - val.append((char) (random.nextInt(26) + temp)); - } else { - val.append(random.nextInt(10)); - } - } - return val.toString(); - } - - //习题/视频 ==> 秒钟向上取整 - public static String ceilSecond(int length) { - return String.valueOf((int) Math.ceil((double) length / 60)); - } - - //视频秒数处理 - public static String vodLength(int i) { - if (i > 60) { - if (i % 60 >= 10) { - return i / 60 + ":" + i % 60; - } else { - return i / 60 + ":0" + i % 60; - } - } else { - if (i % 60 >= 10) { - return "00:" + i; - } else { - return "00:0" + i; - } - } - } - - //文件大小处理 - public static String fileUnit(int i) { - if (i / 1024 > 1024) { - return String.format("%.2f", (double) i / 1024 / 1024) + "M"; - } else { - return String.format("%.2f", (double) i / 1024) + "K"; - } - } - - //单个题目秒数处理 - public static String exerciseLength(int i) { - if (i >= 60 * 60) { - return i / 60 / 60 + "时" + (i - 60 * 60) / 60 + "分" + i % 60 + "秒"; - } else if (i >= 60) { - return i / 60 + "分" + i % 60 + "秒"; - } else { - return i % 60 + "秒"; - } - } - - // 除法取整 - public static String getAvgIndex(BigDecimal counts, BigDecimal total) { - if (BigDecimal.ZERO.equals(total)) { - return "0"; - } else { - return counts.divide(total, RoundingMode.CEILING).stripTrailingZeros().toPlainString(); - } - } - - //百分比 取整 返回字符串 - public static String getPercentAvgIndex(BigDecimal counts, BigDecimal total) { - if (BigDecimal.ZERO.equals(total) || BigDecimal.ZERO.equals(counts)) { - return "0%"; - } else { - return counts.multiply(new BigDecimal(100)).divide(total, RoundingMode.CEILING).stripTrailingZeros().toPlainString() + "%"; - } - } - - //百分比 不带%输出 - public static String getPercentAvgIndexWithPercent(BigDecimal counts, BigDecimal total) { - if (BigDecimal.ZERO.equals(total) || BigDecimal.ZERO.equals(counts)) { - return "0"; - } else { - return counts.multiply(new BigDecimal(100)).divide(total, RoundingMode.CEILING).stripTrailingZeros().toPlainString(); - } - } - - - //习题序号生成规则 sid 从数据取出某科目某知识点的最大的序号 - public static String getExeCode(String sid) { - Integer integer = Integer.valueOf(sid.substring(9)); - return sid.substring(0, 9) + (++integer); - } - - // 整型a 整型b a/b 向上取整 - public static Integer intDivCeil(long a, int b) { - return (int) Math.ceil((double) a / b); - } - - // 整型a 整型b a/b 向下取整 - public static Integer intDivFloorPercent(long a, int b) { - return (int) Math.floor((double) a * 100 / b); - } - - public static Integer getRandomNum(Integer i){ - Random random = new Random(); - return random.nextInt(i); - } - -// public static void main(String[] args) { -// for (int i= 1;i<100;i++){ -// System.out.println(getRandomNum(2)); -// } -// } -} diff --git a/src/main/java/com/meishu/util/RandomUtil.java b/src/main/java/com/meishu/util/RandomUtil.java deleted file mode 100644 index 63e1af6..0000000 --- a/src/main/java/com/meishu/util/RandomUtil.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.meishu.util; - -import java.util.Random; - -public class RandomUtil { - - public static int getCode() { - return (int)((Math.random() * 9 + 1) * 100000); - } - - public static String getRandomCode(int randomLength) { - StringBuilder str = new StringBuilder(); - Random random = new Random(); - for (int i = 0; i < randomLength; i++) { - str.append(random.nextInt(10)); - } - return str.toString(); - } -} diff --git a/src/main/java/com/meishu/util/SMSUtils.java b/src/main/java/com/meishu/util/SMSUtils.java deleted file mode 100644 index be412dc..0000000 --- a/src/main/java/com/meishu/util/SMSUtils.java +++ /dev/null @@ -1,137 +0,0 @@ -package com.meishu.util; - -import com.aliyuncs.CommonRequest; -import com.aliyuncs.CommonResponse; -import com.aliyuncs.DefaultAcsClient; -import com.aliyuncs.IAcsClient; -import com.aliyuncs.dysmsapi.model.v20170525.SendSmsRequest; -import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse; -import com.aliyuncs.http.MethodType; -import com.aliyuncs.profile.DefaultProfile; -import com.aliyuncs.profile.IClientProfile; -import com.meishu.common.configure.AliyunSmsProperties; -import com.meishu.common.exception.HttpException; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -/** - * 短信发送工具类 - */ - -@Component -public class SMSUtils { - - @Autowired - private AliyunSmsProperties aliyunSmsProperties; - - public SendSmsResponse send(String phone, String code) { - try { - System.setProperty("sun.net.client.defaultConnectTimeout", "10000"); - System.setProperty("sun.net.client.defaultReadTimeout", "10000"); - - //初始化acsClient,暂不支持region化 - IClientProfile profile = DefaultProfile.getProfile("cn-hangzhou", aliyunSmsProperties.getAccessKeyId(), aliyunSmsProperties.getAccessKeySecret()); - DefaultProfile.addEndpoint("cn-hangzhou", "cn-hangzhou", aliyunSmsProperties.getProduct(), aliyunSmsProperties.getDomain()); - IAcsClient acsClient = new DefaultAcsClient(profile); - - //组装请求对象-具体描述见控制台-文档部分内容 - SendSmsRequest request = new SendSmsRequest(); - //必填:待发送手机号 - request.setPhoneNumbers(phone); - //必填:短信签名-可在短信控制台中找到 - request.setSignName("有课互联"); - //必填:短信模板-可在短信控制台中找到 - request.setTemplateCode("SMS_190945394"); - //可选:模板中的变量替换JSON串,如模板内容为"亲爱的${name},您的验证码为${code}"时,此处的值为 - request.setTemplateParam("{\"code\":\""+ code +"\"}"); - - //hint 此处可能会抛出异常,注意catch - SendSmsResponse sendSmsResponse = acsClient.getAcsResponse(request); - if(sendSmsResponse != null && sendSmsResponse.getCode().equals("OK")) { - return sendSmsResponse; - } - - throw new Exception(sendSmsResponse.getMessage()); - } catch (Exception e) { - throw new HttpException(70011); - } - } - - - /** - * 发送验证码短信 - * @param templateId 短信模板id - * @param telephone 手机号 - * @return - */ - public static String sendVerifySMS(String templateId,String telephone,String param){ - DefaultProfile profile = DefaultProfile.getProfile(ConstantUtils.REGION_ID, ConstantUtils.ACCESS_KEY_ID, ConstantUtils.SECRET); - IAcsClient client = new DefaultAcsClient(profile); - - CommonRequest request = new CommonRequest(); - request.setSysMethod(MethodType.POST); - request.setSysDomain("dysmsapi.aliyuncs.com"); - request.setSysVersion("2017-05-25"); - request.setSysAction("SendSms"); - request.putQueryParameter("RegionId",ConstantUtils.REGION_ID); - request.putQueryParameter("PhoneNumbers",telephone); - request.putQueryParameter("SignName",ConstantUtils.VERIFY_NAME); - request.putQueryParameter("TemplateCode",templateId); -// if (StringUtils.isEmpty(param)){ -// request.putQueryParameter("TemplateParam","{ \"code\":\""+verifyCode +"\"}"); -// } - request.putQueryParameter("TemplateParam",param); - CommonResponse response = null; - try { - response = client.getCommonResponse(request); - return ConstantUtils.SUCCESS_SEND_OUT; - } catch(Exception e) { - e.printStackTrace(); - return ConstantUtils.FAIL_SEND_OUT; - } - } - - /** - * 发送通知短信 - * @param templateId 短信模板id - * @param telephone 手机号 - * @return - */ - public static String sendNoticeSMS(String templateId,String telephone,String param){ - DefaultProfile profile = DefaultProfile.getProfile(ConstantUtils.REGION_ID, ConstantUtils.ACCESS_KEY_ID, ConstantUtils.SECRET); - IAcsClient client = new DefaultAcsClient(profile); - - CommonRequest request = new CommonRequest(); - request.setSysMethod(MethodType.POST); - request.setSysDomain("dysmsapi.aliyuncs.com"); - request.setSysVersion("2017-05-25"); - request.setSysAction("SendSms"); - request.putQueryParameter("RegionId",ConstantUtils.REGION_ID); - request.putQueryParameter("PhoneNumbers",telephone); - request.putQueryParameter("SignName",ConstantUtils.NOTICE_NAME); - request.putQueryParameter("TemplateCode",templateId); -// if (StringUtils.isEmpty(param)){ -// request.putQueryParameter("TemplateParam","{ \"code\":\""+verifyCode +"\"}"); -// } - request.putQueryParameter("TemplateParam",param); - CommonResponse response = null; - try - - { - response = client.getCommonResponse(request); - return ConstantUtils.SUCCESS_SEND_OUT; - } catch( - Exception e) - - { - e.printStackTrace(); - return ConstantUtils.FAIL_SEND_OUT; - } - } - - public static void main(String[] args) { - String param = "{ \"company\":\""+"基金会"+ "\",\"time\":\""+"2020-01-02" +"\",\"address\":\""+"上海市" +"\"}"; - sendNoticeSMS("SMS_215336604","15201936167",param); - } - -} diff --git a/src/main/java/com/meishu/util/SecretUtils.java b/src/main/java/com/meishu/util/SecretUtils.java deleted file mode 100644 index f6a3e1e..0000000 --- a/src/main/java/com/meishu/util/SecretUtils.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.meishu.util; - -import org.apache.commons.codec.binary.Hex; - -import java.math.BigInteger; -import java.nio.charset.StandardCharsets; -import java.security.MessageDigest; -import java.util.Random; -import java.util.UUID; - -public class SecretUtils { - - /** - * 对用户登录密码进行MD5加密 - * - * @param str - * @return - */ - - public static String getMD5String(String str) { - try { - // 生成一个MD5加密计算摘要 - MessageDigest md = MessageDigest.getInstance("MD5"); - // 计算md5函数 - md.update(str.getBytes()); - // digest()最后确定返回md5 hash值,返回值为8位字符串。因为md5 hash值是16位的hex值,实际上就是8位的字符 - // BigInteger函数则将8位的字符串转换成16位hex值,用字符串来表示;得到字符串形式的hash值 - //一个byte是八位二进制,也就是2位十六进制字符(2的8次方等于16的2次方) - return new BigInteger(1, md.digest()).toString(16); - } catch (Exception e) { - e.printStackTrace(); - return null; - } - } - - /** - * 对字符串进行SHA加密 - * - * @param - */ - public static String getSHAString(String str) { - try { - MessageDigest sha = MessageDigest.getInstance("SHA-1"); - - byte[] byteArray = str.getBytes(StandardCharsets.UTF_8); - byte[] md5Bytes = sha.digest(byteArray); - StringBuffer hexValue = new StringBuffer(); - for (int i = 0; i < md5Bytes.length; i++) { - int val = ((int) md5Bytes[i]) & 0xff; - if (val < 16) { - hexValue.append("0"); - } - hexValue.append(Integer.toHexString(val)); - } - - return hexValue.toString(); - } catch (Exception e) { - return null; - } - - } - - - private static byte[] md5(String s) - { - MessageDigest algorithm; - try - { - algorithm = MessageDigest.getInstance("MD5"); - algorithm.reset(); - algorithm.update(s.getBytes("UTF-8")); - byte[] messageDigest = algorithm.digest(); - return messageDigest; - } - catch (Exception e) - { - - } - return null; - } - - private static final String toHex(byte hash[]) - { - if (hash == null) - { - return null; - } - StringBuffer buf = new StringBuffer(hash.length * 2); - int i; - - for (i = 0; i < hash.length; i++) - { - if ((hash[i] & 0xff) < 0x10) - { - buf.append("0"); - } - buf.append(Long.toString(hash[i] & 0xff, 16)); - } - return buf.toString(); - } - - public static String hash(String s) - { - try - { - return new String(toHex(md5(s)).getBytes("UTF-8"), "UTF-8"); - } - catch (Exception e) - { - return s; - } - } - - public static void main(String[] args) { - String uuid = UUID.randomUUID().toString(); - System.out.println(uuid); - System.out.println(hash(uuid+"ixihs")); - } -} \ No newline at end of file diff --git a/src/main/java/com/meishu/util/Signature.java b/src/main/java/com/meishu/util/Signature.java deleted file mode 100644 index 94e99d2..0000000 --- a/src/main/java/com/meishu/util/Signature.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.meishu.util; - -import sun.misc.BASE64Encoder; - -import javax.crypto.Mac; -import javax.crypto.spec.SecretKeySpec; -import java.nio.charset.StandardCharsets; - -/** - * @author: tuyp - * @create: 2020-07-29 12:42 - */ -public class Signature { - private String secretId; - private String secretKey; - private long currentTime; - private int random; - private int signValidDuration; - - private static final String HMAC_ALGORITHM = "HmacSHA1"; - private static final String CONTENT_CHARSET = "UTF-8"; - - public static byte[] byteMerger(byte[] byte1, byte[] byte2) { - byte[] byte3 = new byte[byte1.length + byte2.length]; - System.arraycopy(byte1, 0, byte3, 0, byte1.length); - System.arraycopy(byte2, 0, byte3, byte1.length, byte2.length); - return byte3; - } - - public String getUploadSignature() throws Exception { - String strSign = ""; - String contextStr = ""; - - long endTime = (currentTime + signValidDuration); - contextStr += "secretId=" + java.net.URLEncoder.encode(secretId, "utf8"); - contextStr += "¤tTimeStamp=" + currentTime; - contextStr += "&expireTime=" + endTime; - contextStr += "&random=" + random; - - try { - Mac mac = Mac.getInstance(HMAC_ALGORITHM); - SecretKeySpec secretKey = new SecretKeySpec(this.secretKey.getBytes(CONTENT_CHARSET), mac.getAlgorithm()); - mac.init(secretKey); - - byte[] hash = mac.doFinal(contextStr.getBytes(CONTENT_CHARSET)); - byte[] sigBuf = byteMerger(hash, contextStr.getBytes(StandardCharsets.UTF_8)); - strSign = base64Encode(sigBuf); - strSign = strSign.replace(" ", "").replace("\n", "").replace("\r", ""); - } catch (Exception e) { - throw e; - } - return strSign; - } - - private String base64Encode(byte[] buffer) { - BASE64Encoder encoder = new BASE64Encoder(); - return encoder.encode(buffer); - } - - public void setSecretId(String secretId) { - this.secretId = secretId; - } - - public void setSecretKey(String secretKey) { - this.secretKey = secretKey; - } - - public void setCurrentTime(long currentTime) { - this.currentTime = currentTime; - } - - public void setRandom(int random) { - this.random = random; - } - - public void setSignValidDuration(int signValidDuration) { - this.signValidDuration = signValidDuration; - } -} diff --git a/src/main/java/com/meishu/util/TestMain.java b/src/main/java/com/meishu/util/TestMain.java deleted file mode 100644 index 588dabe..0000000 --- a/src/main/java/com/meishu/util/TestMain.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.meishu.util; - -import java.security.MessageDigest; -import java.util.Random; - -public class TestMain { - - public static void main(String[] args) { - String password = "123456"; - String saltCode = getRandomCharAndNumr(5); - String encryptString = encrypt("91ebn" + password); - System.out.println(encryptString); - } - - public static String encrypt(String string) { - - String encryptedString = string; - char[] hexDigits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - try { - byte[] btInput = string.getBytes(); - MessageDigest mdInst = MessageDigest.getInstance("MD5"); - mdInst.update(btInput); - byte[] md = mdInst.digest(); - int j = md.length; - char[] str = new char[j * 2]; - int k = 0; - for (int i = 0; i < j; i++) { - byte byte0 = md[i]; - str[k++] = hexDigits[byte0 >>> 4 & 0xf]; - str[k++] = hexDigits[byte0 & 0xf]; - } - encryptedString = new String(str); - return encryptedString; - } catch (Exception e) { - e.printStackTrace(); - return encryptedString; - } - } - - /** - * 获取随机字母数字组合 - * - * @param length - * 字符串长度 - * @return - */ - public static String getRandomCharAndNumr(Integer length) { - String str = ""; - Random random = new Random(); - for (int i = 0; i < length; i++) { - boolean b = random.nextBoolean(); - if (b) { // 字符串 - // int choice = random.nextBoolean() ? 65 : 97; 取得65大写字母还是97小写字母 - str += (char) (97 + random.nextInt(26));// 取得大写字母 - } else { // 数字 - str += String.valueOf(random.nextInt(10)); - } - } - return str; - } -} diff --git a/src/main/java/com/meishu/util/WechatUtil.java b/src/main/java/com/meishu/util/WechatUtil.java deleted file mode 100644 index 93e7f5d..0000000 --- a/src/main/java/com/meishu/util/WechatUtil.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.meishu.util; - -import com.alibaba.fastjson.JSONObject; -import com.meishu.common.constant.WxConstant; -import com.meishu.vo.wechat.AccessTokenVO; -import com.meishu.vo.wechat.MemberVO; -import com.meishu.vo.wechat.QrConnectVO; -import com.meishu.vo.wechat.WXUserInfoVO; - -import java.util.HashMap; -import java.util.Map; - -public class WechatUtil { - - /** - * Access Token - * @return - */ - public static AccessTokenVO getAccessToken() { - Map param = new HashMap<>(); - param.put("appid", WxConstant.APPID); - param.put("secret", WxConstant.SECRENT); - JSONObject object = HttpUtil.get(param, WxConstant.GET_SUITE_TOKEN); - return JSONObject.toJavaObject(object, AccessTokenVO.class); - } - - /** - * 获取访问用户身份 - * @param accessToken - * @param code - * @return - */ - public static WXUserInfoVO getUserInfo(String accessToken, String code) { - Map param = new HashMap<>(); - param.put("access_token", accessToken); - param.put("code", code); - JSONObject object = HttpUtil.get(param, WxConstant.GETUSERINFO); - return JSONObject.toJavaObject(object, WXUserInfoVO.class); - } - - /** - * 读取成员 - * @param accessToken - * @param userId - * @return - */ - public static MemberVO getMember(String accessToken, String userId) { - Map param = new HashMap<>(); - param.put("access_token", accessToken); - param.put("userid", userId); - JSONObject object = HttpUtil.get(param, WxConstant.GET); - return JSONObject.toJavaObject(object, MemberVO.class); - } - - /** - * 扫码登陆参数 - * @return - */ - public static QrConnectVO getQRConnectParams() { - QrConnectVO qrConnectVO = new QrConnectVO(); - qrConnectVO.setId("双创系统"); - qrConnectVO.setAppId(WxConstant.APPID); -// qrConnectVO.setAgentId(WxConstant.AGENTID); - qrConnectVO.setRedirectUri(WxConstant.QR_REDIRECT_URL); - qrConnectVO.setState("MASS"); - return qrConnectVO; - } -} diff --git a/src/main/java/com/meishu/util/excel/ExcelColumn.java b/src/main/java/com/meishu/util/excel/ExcelColumn.java deleted file mode 100644 index 82d7e1c..0000000 --- a/src/main/java/com/meishu/util/excel/ExcelColumn.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.util.excel; - -import java.lang.annotation.*; - -@Target(ElementType.FIELD) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface ExcelColumn { - - String value() default ""; - - int col() default 1; -} diff --git a/src/main/java/com/meishu/util/excel/ExcelColumnUtil.java b/src/main/java/com/meishu/util/excel/ExcelColumnUtil.java deleted file mode 100644 index 256820b..0000000 --- a/src/main/java/com/meishu/util/excel/ExcelColumnUtil.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.util.excel; - -import java.lang.annotation.*; - -/** - *

- * excel 字段 - *

- * - * @author DengMin - * @date Created in 2020/08/28 - */ -@Target({ElementType.FIELD}) -@Retention(RetentionPolicy.RUNTIME) -@Documented -public @interface ExcelColumnUtil { - - String value() default ""; - - int col() default 0; -} diff --git a/src/main/java/com/meishu/util/excel/ExcelUtil.java b/src/main/java/com/meishu/util/excel/ExcelUtil.java deleted file mode 100644 index 4807cb8..0000000 --- a/src/main/java/com/meishu/util/excel/ExcelUtil.java +++ /dev/null @@ -1,347 +0,0 @@ -package com.meishu.util.excel; - -import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.BooleanUtils; -import org.apache.commons.lang3.CharUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.math.NumberUtils; -import org.apache.poi.hssf.usermodel.HSSFDateUtil; -import org.apache.poi.hssf.usermodel.HSSFWorkbook; -import org.apache.poi.ss.usermodel.*; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; -import org.springframework.http.MediaType; -import org.springframework.web.context.request.RequestContextHolder; -import org.springframework.web.context.request.ServletRequestAttributes; -import org.springframework.web.multipart.MultipartFile; - -import javax.servlet.http.HttpServletResponse; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.lang.reflect.Constructor; -import java.lang.reflect.Field; -import java.math.BigDecimal; -import java.net.URLEncoder; -import java.util.*; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.stream.Collectors; -import java.util.stream.Stream; - -/** - * Excel工具 - * - * @author DengMin - * @date 2019/08/27 13:57 - **/ -@Slf4j -public class ExcelUtil { - - private final static String EXCEL2003 = "xls"; - - private final static String EXCEL2007 = "xlsx"; - - /** - * 导入excel文件 - * @param path - * @param cls - * @param file - * @param - * @return - */ - public static List readExcel(String path, Class cls, MultipartFile file) { - String fileName = file.getOriginalFilename(); - if(!fileName.matches("^.+\\.(?i)(xls)$") && !fileName.matches("^.+\\.(?i)(xlsx)$")) { - log.info("上传文件格式不正确"); -// throw new HTTPException(10022); - } - - List dataList = new ArrayList<>(); - Workbook workbook = null; - try { - InputStream is = file.getInputStream(); - if (fileName.endsWith(EXCEL2007)) { - // FileInputStream is = new FileInputStream(new File(path)); - workbook = new XSSFWorkbook(is); - } - - if(fileName.endsWith(EXCEL2003)) { - // FileInputStream is = new FileInputStream(new File(path)); - workbook = new HSSFWorkbook(is); - } - - if (workbook != null) { - Map> classMap = new HashMap<>(); - List fields = Stream.of(cls.getDeclaredFields()).collect(Collectors.toList()); - fields.forEach(field -> { - ExcelColumnUtil annotation = field.getAnnotation(ExcelColumnUtil.class); - if (annotation != null) { - String value = annotation.value(); - if(StringUtils.isBlank(value)) { - return; - } - - if(!classMap.containsKey(value)) { - classMap.put(value, new ArrayList<>()); - } - - field.setAccessible(true); - classMap.get(value).add(field); - } - }); - //索引-->columns - Map> reflectionMap = new HashMap<>(); - //默认读取第一个sheet - Sheet sheet = workbook.getSheetAt(0); - - boolean firstRow = true; - for (int i = 0; i <= sheet.getLastRowNum(); i++) { - Row row = sheet.getRow(i); - //提取标题 - if (firstRow) { - for (int j = 0; j <= row.getLastCellNum(); j++) { - Cell cell = row.getCell(j); - String cellValue = getCellValue(cell); - if (classMap.containsKey(cellValue)) { - reflectionMap.put(j, classMap.get(cellValue)); - } - } - - firstRow = false; - } else { - //忽略空白行 - if (row == null) { - continue; - } - - try { - T t = cls.newInstance(); - //判断是否为空白行 - boolean allBlank = true; - for (int j = 0; j <= row.getLastCellNum(); j++) { - if (reflectionMap.containsKey(j)) { - Cell cell = row.getCell(j); - String cellValue = getCellValue(cell); - if (StringUtils.isNotBlank(cellValue)) { - allBlank = false; - } - List fieldList = reflectionMap.get(j); - fieldList.forEach(x -> { - try { - handleField(t, cellValue, x); - } catch (Exception e) { - e.printStackTrace(); - log.error(String.format("reflect field:%s value:%s exception!", x.getName(), cellValue), e); - } - }); - } - } - - if(!allBlank) { - dataList.add(t); - } - } catch (Exception e) { - e.printStackTrace(); - log.error(String.format("parse row:%s exception!", i), e); - } - } - } - } - } catch (Exception e) { - e.printStackTrace(); - log.error(String.format("parse excel exception!"), e); - } finally { - if (workbook != null) { - try { - workbook.close(); - } catch (Exception e) { - e.printStackTrace(); - log.error(String.format("parse excel exception!"), e); - } - } - } - return dataList; - } - - /** - * 导出excel文件 - * @param list - * @param cls - * @param - */ - public static void writeExcel(List list, Class cls) { - ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); - HttpServletResponse response = servletRequestAttributes.getResponse(); - Field[] fields = cls.getDeclaredFields(); - List fieldList = Arrays.stream(fields).filter(field -> { - ExcelColumn annotation = field.getAnnotation(ExcelColumn.class); - if(annotation != null) { - field.setAccessible(true); - return true; - } - return false; - }).sorted(Comparator.comparing(field -> { - int col = 0; - ExcelColumn annotation = field.getAnnotation(ExcelColumn.class); - if(annotation != null) { - col = annotation.col(); - } - return col; - })).collect(Collectors.toList()); - - Workbook wb = new XSSFWorkbook(); - Sheet sheet = wb.createSheet(); - AtomicInteger ai = new AtomicInteger(); - { - Row row = sheet.createRow(ai.getAndIncrement()); - AtomicInteger at = new AtomicInteger(); - fieldList.forEach(field -> { - ExcelColumn annotation = field.getAnnotation(ExcelColumn.class); - String columnName = ""; - if (annotation != null) { - columnName = annotation.value(); - } - Cell cell = row.createCell(at.getAndIncrement()); - CellStyle cellStyle = wb.createCellStyle(); - cellStyle.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex()); - Font font = wb.createFont(); - font.setBoldweight(Font.BOLDWEIGHT_BOLD); - cellStyle.setFont(font); - cell.setCellStyle(cellStyle); - cell.setCellValue(columnName); - }); - - if (list != null) { - list.forEach(data -> { - Row r = sheet.createRow(ai.getAndIncrement()); - AtomicInteger a = new AtomicInteger(); - fieldList.forEach(field -> { - try { - Class type = field.getType(); - Object value = field.get(data); - Cell cell = r.createCell(a.getAndIncrement()); - if (value != null) { - cell.setCellValue(value.toString()); - } - } catch (IllegalAccessException e) { - e.printStackTrace(); - } - }); - }); - for (int i = 0; i < list.size(); i++) { - sheet.autoSizeColumn(i); - } - } - String fileName = String.valueOf(new Date().getTime()); - buildExcelDocument(fileName + "." + EXCEL2007, wb, response); - } - } - - - private static void setStyle(CellStyle cellStyle) { - // 水平居中 - cellStyle.setAlignment(CellStyle.ALIGN_CENTER); - // 垂直居中 - cellStyle.setVerticalAlignment(CellStyle.ALIGN_CENTER); - // 边框 - cellStyle.setBorderTop(CellStyle.BORDER_THIN); - // 边框 - cellStyle.setBorderLeft(CellStyle.BORDER_THIN); - // 边框 - cellStyle.setBorderRight(CellStyle.BORDER_THIN); - // 边框 - cellStyle.setBorderBottom(CellStyle.BORDER_THIN); - } - - private static void handleField(T t, String value, Field field) throws Exception { - Class type = field.getType(); - if (type == null || type == void.class || StringUtils.isBlank(value)) { - return; - } - if (type == Object.class) { - field.set(t, value); - //数字类型 - } else if (type.getSuperclass() == null || type.getSuperclass() == Number.class) { - if (type == int.class || type == Integer.class) { - field.set(t, NumberUtils.toInt(value)); - } else if (type == long.class || type == Long.class) { - field.set(t, NumberUtils.toLong(value)); - } else if (type == byte.class || type == Byte.class) { - field.set(t, NumberUtils.toByte(value)); - } else if (type == short.class || type == Short.class) { - field.set(t, NumberUtils.toShort(value)); - } else if (type == double.class || type == Double.class) { - field.set(t, NumberUtils.toDouble(value)); - } else if (type == float.class || type == Float.class) { - field.set(t, NumberUtils.toFloat(value)); - } else if (type == char.class || type == Character.class) { - field.set(t, CharUtils.toChar(value)); - } else if (type == boolean.class) { - field.set(t, BooleanUtils.toBoolean(value)); - } else if (type == BigDecimal.class) { - field.set(t, new BigDecimal(value)); - } - } else if (type == Boolean.class) { - field.set(t, BooleanUtils.toBoolean(value)); - } else if (type == Date.class) { - // - field.set(t, value); - } else if (type == String.class) { - field.set(t, value); - } else { - Constructor constructor = type.getConstructor(String.class); - field.set(t, constructor.newInstance(value)); - } - } - - private static String getCellValue(Cell cell) { - if (cell == null) { - return ""; - } - - if (cell.getCellType() == Cell.CELL_TYPE_NUMERIC) { - if (DateUtil.isCellDateFormatted(cell)) { - return HSSFDateUtil.getJavaDate(cell.getNumericCellValue()).toString(); - } else { - return new BigDecimal(cell.getNumericCellValue()).toString(); - } - } else if (cell.getCellType() == Cell.CELL_TYPE_STRING) { - return StringUtils.trimToEmpty(cell.getStringCellValue()); - } else if (cell.getCellType() == Cell.CELL_TYPE_FORMULA) { - return StringUtils.trimToEmpty(cell.getCellFormula()); - } else if (cell.getCellType() == Cell.CELL_TYPE_BLANK) { - return ""; - } else if (cell.getCellType() == Cell.CELL_TYPE_BOOLEAN) { - return String.valueOf(cell.getBooleanCellValue()); - } else if (cell.getCellType() == Cell.CELL_TYPE_ERROR) { - return "ERROR"; - } else { - return cell.toString().trim(); - } - } - - private static void buildExcelDocument(String fileName, Workbook wb, HttpServletResponse response){ - try { - response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); - response.setHeader("Content-Disposition", "attachment;filename="+ URLEncoder.encode(fileName, "utf-8")); - response.flushBuffer(); - wb.write(response.getOutputStream()); - } catch (IOException e) { - log.error(String.format("downLoad excel exception"), e); - } - } - - private static void buildExcelFile(String path, Workbook wb){ - File file = new File(path); - if (file.exists()) { - file.delete(); - } - - try { - wb.write(new FileOutputStream(file)); - } catch (Exception e) { - log.error(String.format("downLoad excel exception"), e); - } - } -} diff --git a/src/main/java/com/meishu/util/tree/Node.java b/src/main/java/com/meishu/util/tree/Node.java deleted file mode 100644 index fc443b5..0000000 --- a/src/main/java/com/meishu/util/tree/Node.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.meishu.util.tree; - -import lombok.Data; - -@Data -public class Node implements Comparable { - - //主键 - private String id; - - //同级节点第几个元素 - private String number; - - //1.1 - private String text; - - //父节点 - private String parentId; - - private int level; - - public Node(String id, String number, String parentId, int level) { - this.id = id; - this.number = number; - this.parentId = parentId; - this.level = level; - } - - @Override - public int compareTo(Node o) { - if (this.level != o.level) { - return o.level - this.level; - } else { - if(this.number==null){ - return -1; - } - return this.number.compareTo(o.number); - } - } - - -} diff --git a/src/main/java/com/meishu/util/tree/NumberTree.java b/src/main/java/com/meishu/util/tree/NumberTree.java deleted file mode 100644 index 1f0d662..0000000 --- a/src/main/java/com/meishu/util/tree/NumberTree.java +++ /dev/null @@ -1,212 +0,0 @@ -package com.meishu.util.tree; - -import lombok.Data; - -import java.util.ArrayList; -import java.util.List; - -@Data -public class NumberTree { - - private String id; - - private List nodeList; - - private String separator; - - private int idSeq; - - private SerialNumber number; - - public NumberTree(String separator, SerialNumber number) { - init(); - this.separator = separator; - this.number = number; - - } - - public void init() { - idSeq = 1; - this.separator = "."; - if (this.nodeList == null) { - nodeList = new ArrayList(); - } - } - - - /** - *

功能描述:根据父节点获取所有子节点。

- */ - public List getChildNodes(Node pNode) { - String pId = pNode.getId(); - return getChildNodes(pId); - } - - /** - *

功能描述:根据父节点获取所有子节点。

- */ - public List getChildNodes(String pId) { - List childNodes = new ArrayList(); - for (Node n : nodeList) { - if (pId.equals(n.getParentId())) { - childNodes.add(n); - } - } - - return childNodes; - } - - /** - *

功能描述:获取本级值最大的节点。

- */ - public Node getMaxNodeForThisLevel(Node pNode) { - List childList = getChildNodes(pNode); - Node root = getRoot(nodeList); - if (childList.size() <= 0) { - return null; - } - Node maxNode = root; - for (Node node : childList) { - if (maxNode.getNumber().compareTo(node.getNumber()) < 0) { - maxNode = node; - } - } - return maxNode; - } - - /** - *

功能描述:生成下一个子节点。

- */ - public Node generateNextChildNode(Node node) { - Node newNode = null; - Node maxNode = getMaxNodeForThisLevel(node); - String nextNumber = number.firstNumber(); - int level = node.getLevel(); - if (maxNode != null && !"0".equals(maxNode.getId())) {//本级存在子节点,且非根节点 - nextNumber = number.produceNext(maxNode.getNumber()); - level = maxNode.getLevel(); - } - newNode = new Node(String.valueOf(++idSeq), nextNumber, node.getId(), level); - - generateNodeText(newNode, nextNumber); - - return newNode; - } - - - /** - * - *

功能描述:获取父节点。

- */ - public Node getParentNode(Node node) { - for (Node n : nodeList) { - if (node.getParentId() == n.getId()) { - return n; - } - } - return node; - } - - /** - *

功能描述:生成节点路径。

- */ - public void generateNodeText(Node node, String text) { - - if (node == null || "0".equals(node.getId())) { - return; - } - - Node pNode = getParentNode(node); - - if (!"0".equals(pNode.getId())) { - text = pNode.getText() + separator + text; - } - - node.setText(text); - } - - /** - *

功能描述:遍历所有树节点。

- */ - public void traverseNodeList(Node node) { - if(node==null){ - node = getRoot(nodeList); - } - List childNodes = getChildNodes(node); - System.out.println(node.getText()); - if (childNodes.size() > 0) { - for (Node n : childNodes) { - traverseNodeList(n); - } - } - } - public static void main(String[] args) { - SerialNumber number = new SerialNumber(); - NumberTree treeNode = new NumberTree(".", number); - - addSomeNodes(treeNode); - treeNode.traverseNodeList(null); - } - - /** - *

功能描述:获取根节点。

- */ - public Node getRoot(List nodeList) { - Node root = null; - if (nodeList.size() <= 0 || (root = getNodeById(nodeList, "0")) == null) { - root = createRoot(); - nodeList.add(root); - } - return root; - } - - private Node getNodeById(List nodeList, String id) { - Node node = null; - if(id!=null){ - for (Node n : nodeList) { - if (id.equals(n.getId())) { - node = n; - break; - } - } - } - return node; - } - - private Node createRoot() { - Node root = new Node("0", number.rootNumber(), "-1", 0); - root.setText("0"); - return root; - } - - /** - *

功能描述:测试添加节点。

- */ - private static Node addSomeNodes(NumberTree tree) { - Node root = tree.getRoot(tree.nodeList); - Node node1 = getNextNode(tree, root);//1 - Node node2 = getNextNode(tree, root);//2 - Node node3 = getNextNode(tree, root);//3 - Node node11 = getNextNode(tree, node1);//1.1 - Node node12 = getNextNode(tree, node1);//1.2 - Node node21 = getNextNode(tree, node2);//2.1 - Node node211 = getNextNode(tree, node21);//2.1.1 - Node node212 = getNextNode(tree, node21);//2.1.2 - Node node22 = getNextNode(tree, node2);//2.2 - Node node221 = getNextNode(tree, node22);//2.2.1 - Node node31 = getNextNode(tree, node3); - Node node32 = getNextNode(tree, node3); - Node node311 = getNextNode(tree, node31); - Node node3111 = getNextNode(tree, node311); - return root; - } - - public static Node getNextNode(NumberTree tree, Node pNode) { - Node node = tree.generateNextChildNode(pNode); - if (node != null) { - tree.nodeList.add(node); - } - return node; - } - -} diff --git a/src/main/java/com/meishu/util/tree/SerialNumber.java b/src/main/java/com/meishu/util/tree/SerialNumber.java deleted file mode 100644 index 767a0bb..0000000 --- a/src/main/java/com/meishu/util/tree/SerialNumber.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.util.tree; - -public class SerialNumber{ - - public String produceNext(String crrnt) { - - String next = "0"; - if (crrnt != null) { - try { - int crrntNum = Integer.parseInt(crrnt); - next = String.valueOf(crrntNum + 1); - } catch (Exception e) { - System.err.println("非数字类型的字符串!"); - } - } - return next; - } - - public String rootNumber() { - return "0"; - } - - public String firstNumber() { - return "1"; - } - - -} diff --git a/src/main/java/com/meishu/vo/PerStudentComplicationVO.java b/src/main/java/com/meishu/vo/PerStudentComplicationVO.java deleted file mode 100644 index 45527fd..0000000 --- a/src/main/java/com/meishu/vo/PerStudentComplicationVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.vo; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-22 18:20 - */ -@Data -public class PerStudentComplicationVO { - - private String studyCode; - - private String userName; - - private Integer studyLengthSecond; - - private Integer historyStudyLengthSecond; - -} diff --git a/src/main/java/com/meishu/vo/accesstoken/GetAllStudentsVO.java b/src/main/java/com/meishu/vo/accesstoken/GetAllStudentsVO.java deleted file mode 100644 index d2c80da..0000000 --- a/src/main/java/com/meishu/vo/accesstoken/GetAllStudentsVO.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.meishu.vo.accesstoken; - -import lombok.Data; - -@Data -public class GetAllStudentsVO { - - private Integer id; - - private String userName; - - private String gender; - - private String imgUrl; - - private String userStatus; - - //private String roleType; - - private String session; - - private String phone; - - private String idCard; - - private String studyCode; - - private String className; - - private String password; - -} diff --git a/src/main/java/com/meishu/vo/accesstoken/GetAllTeachersVO.java b/src/main/java/com/meishu/vo/accesstoken/GetAllTeachersVO.java deleted file mode 100644 index 7e2114f..0000000 --- a/src/main/java/com/meishu/vo/accesstoken/GetAllTeachersVO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.vo.accesstoken; - -import com.meishu.model.SubjectDictDO; -import com.meishu.vo.administer.GetTeacherSubjectVO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllTeachersVO { - - private Integer id; - - private String telephone; - - private String userName; - - private String intro; - - private List subjectDictDOS; - -} diff --git a/src/main/java/com/meishu/vo/administer/AdministerPermissionVO.java b/src/main/java/com/meishu/vo/administer/AdministerPermissionVO.java deleted file mode 100644 index 4fce222..0000000 --- a/src/main/java/com/meishu/vo/administer/AdministerPermissionVO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.vo.administer; - -import lombok.Data; - -import java.util.List; - -@Data -public class AdministerPermissionVO { - - private Long id; - - private String userName; - - private String role; - - private String img; - - private Boolean isRole; - - private List permissions; -} diff --git a/src/main/java/com/meishu/vo/administer/GetClassesDetailResponseVO.java b/src/main/java/com/meishu/vo/administer/GetClassesDetailResponseVO.java deleted file mode 100644 index d466fd7..0000000 --- a/src/main/java/com/meishu/vo/administer/GetClassesDetailResponseVO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.meishu.vo.administer; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-20 22:32 - */ -@Data -public class GetClassesDetailResponseVO { - - private Integer subjectId; - - private String className; - - private String school; - - private String grade; - - private String classes; - - private String subjectType; - - private String session; - - private String status; - - private String subject; - - private String subjectEn; - - private String classId; - - private Integer userId; - - private String semester; - -} diff --git a/src/main/java/com/meishu/vo/administer/GetTeacherClassVO.java b/src/main/java/com/meishu/vo/administer/GetTeacherClassVO.java deleted file mode 100644 index 9752165..0000000 --- a/src/main/java/com/meishu/vo/administer/GetTeacherClassVO.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.meishu.vo.administer; - -import lombok.Data; - -@Data -public class GetTeacherClassVO { -} diff --git a/src/main/java/com/meishu/vo/administer/GetTeacherSubjectVO.java b/src/main/java/com/meishu/vo/administer/GetTeacherSubjectVO.java deleted file mode 100644 index b23eaad..0000000 --- a/src/main/java/com/meishu/vo/administer/GetTeacherSubjectVO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.vo.administer; - -import lombok.Data; - -@Data -public class GetTeacherSubjectVO { - - private String ClassName; - - private String subject; - -} diff --git a/src/main/java/com/meishu/vo/administer/GetTeachersVO.java b/src/main/java/com/meishu/vo/administer/GetTeachersVO.java deleted file mode 100644 index d0607d0..0000000 --- a/src/main/java/com/meishu/vo/administer/GetTeachersVO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.meishu.vo.administer; - -import com.meishu.model.*; -import lombok.Data; - -import java.util.List; - -@Data -public class GetTeachersVO { - - private Long id; - - private Long depId; - - private Long depParentId; - - private String userName; - - private String status; - - private String intro; - - private String img; - - private String telephone; - - private String departmentName; - - private List campusDictDOS; - - private List departmentDictDOS; - - private List knowledgeSubjectDicts; - - private List roleDictDOS; - - private List subjectDictDOS; -} diff --git a/src/main/java/com/meishu/vo/administer/LoginVO.java b/src/main/java/com/meishu/vo/administer/LoginVO.java deleted file mode 100644 index caaef45..0000000 --- a/src/main/java/com/meishu/vo/administer/LoginVO.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.meishu.vo.administer; - -import lombok.Data; - -@Data -public class LoginVO { - - private String token; - -} diff --git a/src/main/java/com/meishu/vo/administer/PermissionsVO.java b/src/main/java/com/meishu/vo/administer/PermissionsVO.java deleted file mode 100644 index 4b81abb..0000000 --- a/src/main/java/com/meishu/vo/administer/PermissionsVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.administer; - -import lombok.Data; - -import java.util.List; - -@Data -public class PermissionsVO { - - private Long id; - - private Long parentId; - - private String name; - - private List children; -} diff --git a/src/main/java/com/meishu/vo/campus/CampusListVO.java b/src/main/java/com/meishu/vo/campus/CampusListVO.java deleted file mode 100644 index 2161576..0000000 --- a/src/main/java/com/meishu/vo/campus/CampusListVO.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.meishu.vo.campus; - -import com.meishu.model.AdministerDepartmentMappingDO; -import com.meishu.model.CampusDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class CampusListVO { - - private String administerName; - - private Long id; - - /** - * 校区 - */ - private String campus; - - /** - * 负责人所在部门 - */ - private List administerDepartments; - - /** - * 父节点id - */ - private Long parentId; - - /** - * 上级校区名称 - */ - private String parentCampusName; - - /** - * 负责人 - */ - private Long administerId; - - /** - * 学生人数 - */ - private Integer studentCounts; - - /** - * 老师人数 - */ - private Integer teacherCounts; - - - - /** - * 子类 - */ - private List children; -} diff --git a/src/main/java/com/meishu/vo/campus/CampusStudentVO.java b/src/main/java/com/meishu/vo/campus/CampusStudentVO.java deleted file mode 100644 index f93fa17..0000000 --- a/src/main/java/com/meishu/vo/campus/CampusStudentVO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.vo.campus; - -import com.meishu.model.StudentDO; -import lombok.Data; - -@Data -public class CampusStudentVO extends StudentDO { - - private String campus; - -} diff --git a/src/main/java/com/meishu/vo/classes/GetClassStudentsVO.java b/src/main/java/com/meishu/vo/classes/GetClassStudentsVO.java deleted file mode 100644 index a868a99..0000000 --- a/src/main/java/com/meishu/vo/classes/GetClassStudentsVO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.vo.classes; - -import com.meishu.model.UserRoleDO; -import lombok.Data; - -@Data -public class GetClassStudentsVO extends UserRoleDO { - - - private String grade; - -} diff --git a/src/main/java/com/meishu/vo/classes/GetClassesVO.java b/src/main/java/com/meishu/vo/classes/GetClassesVO.java deleted file mode 100644 index 440ec20..0000000 --- a/src/main/java/com/meishu/vo/classes/GetClassesVO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.meishu.vo.classes; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetClassesVO { - - private String id; - - private String classId; - - private String className; - - private String grade; - - private Integer cnt; - - private String session; - - private String status; - - private String classes; - - private String upgradeDate; - - private List subjectDictDOS; - -} diff --git a/src/main/java/com/meishu/vo/classes/SubjectDictVO.java b/src/main/java/com/meishu/vo/classes/SubjectDictVO.java deleted file mode 100644 index 6408bf4..0000000 --- a/src/main/java/com/meishu/vo/classes/SubjectDictVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.classes; - -import com.meishu.model.AdministerDO; -import com.meishu.model.SubjectDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class SubjectDictVO extends SubjectDictDO { - - private List administerDOS; - -} diff --git a/src/main/java/com/meishu/vo/course/CourseAdministerVO.java b/src/main/java/com/meishu/vo/course/CourseAdministerVO.java deleted file mode 100644 index e3d7676..0000000 --- a/src/main/java/com/meishu/vo/course/CourseAdministerVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.course; - -import lombok.Data; - -@Data -public class CourseAdministerVO { - - private String img; - - private String intro; - - private String userName; - -// private String subjectName; - -} diff --git a/src/main/java/com/meishu/vo/course/CourseProgressVO.java b/src/main/java/com/meishu/vo/course/CourseProgressVO.java deleted file mode 100644 index 6e9b6b0..0000000 --- a/src/main/java/com/meishu/vo/course/CourseProgressVO.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.vo.course; - -import lombok.Data; - -@Data -public class CourseProgressVO { - - private String username; - - private String campus; - - private Integer totalCounts; - - private Integer studyCounts; - - private String studyPercent; - - private Long courseId; - - private Long studentId; - - private Long treeId; - - private Integer totalPlayLength; - - /** - * 最近学到的知识点 - */ - private String recentTreeName; - - /** - * 最近学习时间 - */ - private String recentTreeTime; - - /** - * 学习进度的知识点 - */ - private String treeNameProgress; - -} diff --git a/src/main/java/com/meishu/vo/course/CourseVodVO.java b/src/main/java/com/meishu/vo/course/CourseVodVO.java deleted file mode 100644 index fd87c51..0000000 --- a/src/main/java/com/meishu/vo/course/CourseVodVO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.vo.course; - -import lombok.Data; - -@Data -public class CourseVodVO { - - private Long id; - - private Long vodId; - - private String vodName; - - private String vodUrl; - - private Integer vodLength; - - private String coverPage; - - private String vodType; - -} diff --git a/src/main/java/com/meishu/vo/course/GetAllCourseVO.java b/src/main/java/com/meishu/vo/course/GetAllCourseVO.java deleted file mode 100644 index 84a70d2..0000000 --- a/src/main/java/com/meishu/vo/course/GetAllCourseVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.vo.course; - -import com.meishu.model.CourseDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllCourseVO { - - private List innerCourse; - - private List outerCourse; - -} diff --git a/src/main/java/com/meishu/vo/course/GetCourseStudentsVO.java b/src/main/java/com/meishu/vo/course/GetCourseStudentsVO.java deleted file mode 100644 index edf2d3a..0000000 --- a/src/main/java/com/meishu/vo/course/GetCourseStudentsVO.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.meishu.vo.course; - -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Data; -import org.springframework.format.annotation.DateTimeFormat; - -import java.util.Date; - -@Data -public class GetCourseStudentsVO { - - private Long id; - - private Long studentId; - - private Long courseId; - - private String username; - - private String campus; - - private String status; - - @JsonFormat(pattern = "yyyy-MM-dd") - private Date startDate; - - @JsonFormat(pattern = "yyyy-MM-dd") - private Date endDate; - - private Integer diff; - - private String courseName; - -} diff --git a/src/main/java/com/meishu/vo/course/GetCourseTreeVodsVO.java b/src/main/java/com/meishu/vo/course/GetCourseTreeVodsVO.java deleted file mode 100644 index fbf3276..0000000 --- a/src/main/java/com/meishu/vo/course/GetCourseTreeVodsVO.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.meishu.vo.course; - -import lombok.Data; - -@Data -public class GetCourseTreeVodsVO { - - private Long id; - - private Long treeId; - - private Long parentId; - - private Long courseTreeId; - - private Long vodId; - - private String parentTreeName; - - private String vodName; - - private String treeName; - - private String vodType; - - private String status; - - private String userName; - - private String updateTime; - - private Integer total; - -} diff --git a/src/main/java/com/meishu/vo/course/GetExerciseDetailVO.java b/src/main/java/com/meishu/vo/course/GetExerciseDetailVO.java deleted file mode 100644 index 71ead50..0000000 --- a/src/main/java/com/meishu/vo/course/GetExerciseDetailVO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.meishu.vo.course; - -import com.meishu.model.CourseTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetExerciseDetailVO { - - private Long id; - - private String exerciseType; - - private String title; - - private String rightAnswer; - - private Integer difficulty; - - private String items; - - private Integer adviceLength; - - private String answer; - - private String result; - - private Integer length; - - private String rightPercent; - - private String avgLength; - - private String createTime; - - private List courseTreeDOS; -} diff --git a/src/main/java/com/meishu/vo/course/GetStudentHistoryVO.java b/src/main/java/com/meishu/vo/course/GetStudentHistoryVO.java deleted file mode 100644 index 2b5332c..0000000 --- a/src/main/java/com/meishu/vo/course/GetStudentHistoryVO.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.vo.course; - -import lombok.Data; - -@Data -public class GetStudentHistoryVO { - - private String username; - - private String courseName; - - private String createTime; - - private String administer; - - private String startDate; - - private String endDate; - - private String campus; - - -} diff --git a/src/main/java/com/meishu/vo/course/GetVodIndexVO.java b/src/main/java/com/meishu/vo/course/GetVodIndexVO.java deleted file mode 100644 index a675c2e..0000000 --- a/src/main/java/com/meishu/vo/course/GetVodIndexVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.vo.course; - -import com.meishu.vo.voddict.GetCourseTreesVodsVO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetVodIndexVO { - - private List mappingIds; - - private Long mappingId; - -} diff --git a/src/main/java/com/meishu/vo/course/QueryCourseInfoVO.java b/src/main/java/com/meishu/vo/course/QueryCourseInfoVO.java deleted file mode 100644 index 9d6c511..0000000 --- a/src/main/java/com/meishu/vo/course/QueryCourseInfoVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.vo.course; - -import com.meishu.model.AdministerDO; -import com.meishu.model.CourseDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class QueryCourseInfoVO { - - private CourseDictDO courseDictDO; - - private List courseAdministerVOS; -} diff --git a/src/main/java/com/meishu/vo/course/QueryCoursesVO.java b/src/main/java/com/meishu/vo/course/QueryCoursesVO.java deleted file mode 100644 index 0b7e733..0000000 --- a/src/main/java/com/meishu/vo/course/QueryCoursesVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.course; - -import com.meishu.model.AdministerDO; -import com.meishu.model.CourseDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class QueryCoursesVO extends CourseDictDO { - - private String subjectName; - - private List administerDOS; - -} diff --git a/src/main/java/com/meishu/vo/course/StudentDetailVO.java b/src/main/java/com/meishu/vo/course/StudentDetailVO.java deleted file mode 100644 index 10dd5de..0000000 --- a/src/main/java/com/meishu/vo/course/StudentDetailVO.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.meishu.vo.course; - -import com.meishu.model.CourseChapterDO; -import lombok.Data; - -import java.util.List; - -@Data -public class StudentDetailVO { - - private String wechatImg; - - private String status; - - private String username; - - private String campus; - - private String courseName; - - private Integer totalCounts; - - private Integer studyCounts; - - private String studyPercent; - - private String recentTreeTime; - - private String recentTreeName; - - private Integer totalPlayLength; - - private List courseChapterDOS; - -} diff --git a/src/main/java/com/meishu/vo/dimension/GetAllDimensionStarVO.java b/src/main/java/com/meishu/vo/dimension/GetAllDimensionStarVO.java deleted file mode 100644 index 9a58a91..0000000 --- a/src/main/java/com/meishu/vo/dimension/GetAllDimensionStarVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.dimension; - -import com.meishu.model.SubjectDimensionStarDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllDimensionStarVO { - - private Long dimensionId; - - private String dimension; - - private List subjectDimensionStarDictDOS; - -} diff --git a/src/main/java/com/meishu/vo/dimension/GetAllDimensionStarsVO.java b/src/main/java/com/meishu/vo/dimension/GetAllDimensionStarsVO.java deleted file mode 100644 index 0ec7adc..0000000 --- a/src/main/java/com/meishu/vo/dimension/GetAllDimensionStarsVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.dimension; - -import com.meishu.model.SubjectDimensionStarDictDO; -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllDimensionStarsVO extends SubjectDimensionStarDictDO { - - private List subjectTreeDOS; - -} diff --git a/src/main/java/com/meishu/vo/dimension/StarVO.java b/src/main/java/com/meishu/vo/dimension/StarVO.java deleted file mode 100644 index 4e404ae..0000000 --- a/src/main/java/com/meishu/vo/dimension/StarVO.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.meishu.vo.dimension; - -public class StarVO { -} diff --git a/src/main/java/com/meishu/vo/exercise/GetExerciseDetailResponseVO.java b/src/main/java/com/meishu/vo/exercise/GetExerciseDetailResponseVO.java deleted file mode 100644 index 37f0f2e..0000000 --- a/src/main/java/com/meishu/vo/exercise/GetExerciseDetailResponseVO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.vo.exercise; - -import com.meishu.model.ExerciseDictDO; -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-19 16:27 - */ -@Data -public class GetExerciseDetailResponseVO extends ExerciseDictDO { - - private String collectionStatus; - - private String length; - - private String label; - - private Integer lengthSecond; - -} diff --git a/src/main/java/com/meishu/vo/exercise/GetExerciseDetailVO.java b/src/main/java/com/meishu/vo/exercise/GetExerciseDetailVO.java deleted file mode 100644 index 83e86cd..0000000 --- a/src/main/java/com/meishu/vo/exercise/GetExerciseDetailVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.exercise; - -import com.meishu.model.ExerciseDictDO; -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetExerciseDetailVO extends ExerciseDictDO { - - private List subjectTreeDOS; - -} diff --git a/src/main/java/com/meishu/vo/exercise/GetTreeExercisesVO.java b/src/main/java/com/meishu/vo/exercise/GetTreeExercisesVO.java deleted file mode 100644 index 5ef8c9b..0000000 --- a/src/main/java/com/meishu/vo/exercise/GetTreeExercisesVO.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.meishu.vo.exercise; - -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetTreeExercisesVO { - - private Long id; - - private String title; - - private String items; - - private String rightAnswer; - - private String detail; - - private String difficulty; - - private Integer total; - - private Integer rights; - - private Integer adviceLength; - - private String userName; - - private String exerciseType; - - private String updateTime; - - private String percent; - - private String shareStatus; - - private String checkStatus; - - private String status; - - private List subjectTreeDOS; - -} diff --git a/src/main/java/com/meishu/vo/exercise/QueryCourseTreeExerciseVO.java b/src/main/java/com/meishu/vo/exercise/QueryCourseTreeExerciseVO.java deleted file mode 100644 index 10746b0..0000000 --- a/src/main/java/com/meishu/vo/exercise/QueryCourseTreeExerciseVO.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.meishu.vo.exercise; - -import lombok.Data; - -@Data -public class QueryCourseTreeExerciseVO { - - private Long id; - - private String treeName; - - private String parentTreeName; - - private String exerciseType; - - private String title; - - private String items; - - private String detail; - - private String rightAnswer; - - private String difficulty; - - private String userName; - - private String updateTime; - - private String rightCnt; - - private String totalCnt; - - private String rightPercent; - - private String status; - - -} diff --git a/src/main/java/com/meishu/vo/grade/DimensionStarVO.java b/src/main/java/com/meishu/vo/grade/DimensionStarVO.java deleted file mode 100644 index 750d640..0000000 --- a/src/main/java/com/meishu/vo/grade/DimensionStarVO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.vo.grade; - -import lombok.Data; - -@Data -public class DimensionStarVO { - - private Long dimensionId; - - private String dimension; - - private Long starId; - - private Integer star; - - private String description; - -} diff --git a/src/main/java/com/meishu/vo/grade/QueryOneGradeVO.java b/src/main/java/com/meishu/vo/grade/QueryOneGradeVO.java deleted file mode 100644 index 013aea5..0000000 --- a/src/main/java/com/meishu/vo/grade/QueryOneGradeVO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.vo.grade; - -import com.meishu.model.SubjectTestGradeExampleMappingDO; -import lombok.Data; - -import java.util.List; - -@Data -public class QueryOneGradeVO { - - private Long id; - - private String gradeName; - - private String content; - - private List subjectTestGradeExampleMappingDOS; - - private List dimensionStarVOS; - -} diff --git a/src/main/java/com/meishu/vo/laboratorySession/CalendarStatusVO.java b/src/main/java/com/meishu/vo/laboratorySession/CalendarStatusVO.java deleted file mode 100644 index f141de1..0000000 --- a/src/main/java/com/meishu/vo/laboratorySession/CalendarStatusVO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.vo.laboratorySession; - -import lombok.Data; - -@Data -public class CalendarStatusVO { - - private String startDate; - - private Integer status; -} diff --git a/src/main/java/com/meishu/vo/laboratorySession/GetLaboratorySessionVO.java b/src/main/java/com/meishu/vo/laboratorySession/GetLaboratorySessionVO.java deleted file mode 100644 index 8425e41..0000000 --- a/src/main/java/com/meishu/vo/laboratorySession/GetLaboratorySessionVO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.vo.laboratorySession; - -import lombok.Data; - -@Data -public class GetLaboratorySessionVO { - - private Long id; - - private String laboratoryName; - - private String timeSlot; - - private String registerStartDate; - - private String registerEndDate; - - private Integer surplus; - - private Integer status; -} diff --git a/src/main/java/com/meishu/vo/laboratorySession/LaboratoryDictPageVO.java b/src/main/java/com/meishu/vo/laboratorySession/LaboratoryDictPageVO.java deleted file mode 100644 index abe0126..0000000 --- a/src/main/java/com/meishu/vo/laboratorySession/LaboratoryDictPageVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.laboratorySession; - -import com.meishu.model.SessionsDictDO; -import lombok.Data; -import java.util.List; - -@Data -public class LaboratoryDictPageVO { - - private Long id; - - private String laboratoryName; - - private Integer maxNum; - - private List sessions; -} diff --git a/src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionMappingVO.java b/src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionMappingVO.java deleted file mode 100644 index 4e76165..0000000 --- a/src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionMappingVO.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.vo.laboratorySession; - -import com.meishu.model.SessionsDictDO; -import lombok.Data; -import java.util.List; - -@Data -public class LaboratorySessionMappingVO { - - private Long laboratoryDictId; - - private String laboratoryName; - - private String registerStartDate; - - private String registerEndDate; - - private Integer maxNum; - - private String grade; - - private List timeSlot; -} diff --git a/src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionVO.java b/src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionVO.java deleted file mode 100644 index 5a97a66..0000000 --- a/src/main/java/com/meishu/vo/laboratorySession/LaboratorySessionVO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.vo.laboratorySession; - -import lombok.Data; -import java.util.List; - -@Data -public class LaboratorySessionVO { - - private List timeSlot; - - private List laboratoryList; -} diff --git a/src/main/java/com/meishu/vo/laboratorySession/StatisticsVO.java b/src/main/java/com/meishu/vo/laboratorySession/StatisticsVO.java deleted file mode 100644 index f1323f2..0000000 --- a/src/main/java/com/meishu/vo/laboratorySession/StatisticsVO.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.meishu.vo.laboratorySession; - -import lombok.Data; - -@Data -public class StatisticsVO { - - private Integer createNum; - - private Integer sessionNum; - - private Integer laboratoryNum; -} diff --git a/src/main/java/com/meishu/vo/laboratoryUser/LaboratoryUserPageVO.java b/src/main/java/com/meishu/vo/laboratoryUser/LaboratoryUserPageVO.java deleted file mode 100644 index 94c6e75..0000000 --- a/src/main/java/com/meishu/vo/laboratoryUser/LaboratoryUserPageVO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.meishu.vo.laboratoryUser; - -import com.meishu.util.excel.ExcelColumn; -import lombok.Data; - -@Data -public class LaboratoryUserPageVO { - - /** - * 用户表报名记录ID - */ - private Long id; - - /** - * 安排表ID - */ - private Long laboratorySessionId; - - /** - * 场次ID - */ - private Long sessionsDictId; - - @ExcelColumn(col = 1, value = "实验室名称") - private String laboratoryName; - - @ExcelColumn(col = 2, value = "场次") - private String timeSlot; - - @ExcelColumn(col = 3, value = "姓名") - private String userName; - - @ExcelColumn(col = 4, value = "学号") - private String studyCode; - - @ExcelColumn(col = 5, value = "班级") - private String classes; -} diff --git a/src/main/java/com/meishu/vo/question/GetClassQuestionsVO.java b/src/main/java/com/meishu/vo/question/GetClassQuestionsVO.java deleted file mode 100644 index 7aaac89..0000000 --- a/src/main/java/com/meishu/vo/question/GetClassQuestionsVO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.vo.question; - -import com.meishu.model.SubjectDictDO; -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -@Data -public class GetClassQuestionsVO extends SubjectDictDO { - - private Integer count; - -} diff --git a/src/main/java/com/meishu/vo/question/QueryOneQuestionVO.java b/src/main/java/com/meishu/vo/question/QueryOneQuestionVO.java deleted file mode 100644 index 5c333e8..0000000 --- a/src/main/java/com/meishu/vo/question/QueryOneQuestionVO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.vo.question; - -import com.meishu.model.AnsweringQuestionDO; -import lombok.Data; - -@Data -public class QueryOneQuestionVO extends AnsweringQuestionDO { - - private String userName; - -} diff --git a/src/main/java/com/meishu/vo/question/QueryQuestionsVO.java b/src/main/java/com/meishu/vo/question/QueryQuestionsVO.java deleted file mode 100644 index 387350a..0000000 --- a/src/main/java/com/meishu/vo/question/QueryQuestionsVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.vo.question; - -import lombok.Data; - -@Data -public class QueryQuestionsVO { - - private Integer id; - - private String userName; - - private String createDate; - - private String title; - - private String answer; - - private String updateDate; - -} diff --git a/src/main/java/com/meishu/vo/role/GetAllRolesVO.java b/src/main/java/com/meishu/vo/role/GetAllRolesVO.java deleted file mode 100644 index 79b3c0f..0000000 --- a/src/main/java/com/meishu/vo/role/GetAllRolesVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.role; - -import com.meishu.model.PermissionsDictDO; -import com.meishu.model.RoleDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllRolesVO extends RoleDictDO { - - private List permissionsDictDOS; - -} diff --git a/src/main/java/com/meishu/vo/role/GetRoleTeachersVO.java b/src/main/java/com/meishu/vo/role/GetRoleTeachersVO.java deleted file mode 100644 index a81c905..0000000 --- a/src/main/java/com/meishu/vo/role/GetRoleTeachersVO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.vo.role; - -import com.meishu.model.DepartmentDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetRoleTeachersVO { - - private Long id; - - private Long administerId; - - private String userName; - - private String telephone; - - private String departmentName; - - private List departmentDictDOS; -} diff --git a/src/main/java/com/meishu/vo/rule/GetAllRulesVO.java b/src/main/java/com/meishu/vo/rule/GetAllRulesVO.java deleted file mode 100644 index 1ddfbe0..0000000 --- a/src/main/java/com/meishu/vo/rule/GetAllRulesVO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.vo.rule; - -import lombok.Data; - -@Data -public class GetAllRulesVO { - - private Long id; - - private String subjectName; - - private Long subjectId; - - private String ruleName; - - private String status; - -} diff --git a/src/main/java/com/meishu/vo/rule/GetOneExaminationDetailVO.java b/src/main/java/com/meishu/vo/rule/GetOneExaminationDetailVO.java deleted file mode 100644 index 60d1396..0000000 --- a/src/main/java/com/meishu/vo/rule/GetOneExaminationDetailVO.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.vo.rule; - -import com.meishu.vo.grade.QueryOneGradeVO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetOneExaminationDetailVO { - - private Long id; - - private String subjectName; - - private String ruleName; - - private String publishName; - - private String examination; - - private String outline; - - private String deadline; - - private String answer; - - private String testTime; - - private String userName; - - private List studentStarVOS; - - private Double total; - - private String commitTime; - - private String testType; - - private List queryOneGradeVOS; - -} diff --git a/src/main/java/com/meishu/vo/rule/GetRuleReportVO.java b/src/main/java/com/meishu/vo/rule/GetRuleReportVO.java deleted file mode 100644 index 67701d0..0000000 --- a/src/main/java/com/meishu/vo/rule/GetRuleReportVO.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.meishu.vo.rule; - -import lombok.Data; - -@Data -public class GetRuleReportVO { -} diff --git a/src/main/java/com/meishu/vo/rule/GetStudentRulesVO.java b/src/main/java/com/meishu/vo/rule/GetStudentRulesVO.java deleted file mode 100644 index 90568fb..0000000 --- a/src/main/java/com/meishu/vo/rule/GetStudentRulesVO.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.vo.rule; - -import lombok.Data; - -@Data -public class GetStudentRulesVO { - - private Long id; - - private String subjectName; - - private String ruleName; - - private String examination; - - private String outline; - - private String testTime; - - private String createTime; - - private String coverPage; - - private String testType; - - private String publishName; - -} diff --git a/src/main/java/com/meishu/vo/rule/StudentStarVO.java b/src/main/java/com/meishu/vo/rule/StudentStarVO.java deleted file mode 100644 index f29e57b..0000000 --- a/src/main/java/com/meishu/vo/rule/StudentStarVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.rule; - -import com.baomidou.mybatisplus.core.toolkit.StringUtils; -import lombok.Data; - -@Data -public class StudentStarVO { - - private String dimension; - - private Integer star; - - private String description; - - private String userName; - -} diff --git a/src/main/java/com/meishu/vo/semester/GetAllPastSemesterVO.java b/src/main/java/com/meishu/vo/semester/GetAllPastSemesterVO.java deleted file mode 100644 index f73cbfc..0000000 --- a/src/main/java/com/meishu/vo/semester/GetAllPastSemesterVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.semester; - -import com.meishu.model.ClassesDictHistoryDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllPastSemesterVO { - - - private String gradeType; - - private List classesDictDOS; - -} diff --git a/src/main/java/com/meishu/vo/semester/GetAllStudyingSemesterVO.java b/src/main/java/com/meishu/vo/semester/GetAllStudyingSemesterVO.java deleted file mode 100644 index e46e04e..0000000 --- a/src/main/java/com/meishu/vo/semester/GetAllStudyingSemesterVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.vo.semester; - -import com.meishu.model.ClassesDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllStudyingSemesterVO { - - private String gradeType; - - private List classesDictDOS; - -} diff --git a/src/main/java/com/meishu/vo/semester/GetSemesterScoreVO.java b/src/main/java/com/meishu/vo/semester/GetSemesterScoreVO.java deleted file mode 100644 index 69660b5..0000000 --- a/src/main/java/com/meishu/vo/semester/GetSemesterScoreVO.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.vo.semester; - -import com.meishu.util.excel.ExcelColumn; -import lombok.Data; - -@Data -public class GetSemesterScoreVO { - - private Integer id; - - private Integer userId; - - @ExcelColumn(col = 1,value = "姓名") - private String userName; - - @ExcelColumn(col = 2,value = "学号") - private String studyCode; - - @ExcelColumn(col = 3,value = "科目") - private String subject; - - @ExcelColumn(col = 4,value = "当前分数") - private String score; - -} diff --git a/src/main/java/com/meishu/vo/semester/GetStudentDetailVO.java b/src/main/java/com/meishu/vo/semester/GetStudentDetailVO.java deleted file mode 100644 index e46205d..0000000 --- a/src/main/java/com/meishu/vo/semester/GetStudentDetailVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.vo.semester; - -import lombok.Data; - -@Data -public class GetStudentDetailVO { - - private String teacherName; - - private String itemDesc; - - private Double score; - - private Integer itemType; - - private Integer scoreType; - - private String createDate; - -} diff --git a/src/main/java/com/meishu/vo/semester/GetStudentRecordVO.java b/src/main/java/com/meishu/vo/semester/GetStudentRecordVO.java deleted file mode 100644 index bc91864..0000000 --- a/src/main/java/com/meishu/vo/semester/GetStudentRecordVO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.meishu.vo.semester; - -import com.meishu.util.excel.ExcelColumn; -import lombok.Data; - -@Data -public class GetStudentRecordVO { - - @ExcelColumn(col = 1,value = "班级") - private String className; - - @ExcelColumn(col = 2,value = "学生名") - private String userName; - - @ExcelColumn(col = 3,value = "扣分项") - private String itemDesc; - - @ExcelColumn(col = 4,value = "分数") - private String score; - - @ExcelColumn(col = 5,value = "老师名") - private String teacherName; - - @ExcelColumn(col = 6,value = "科目") - private String subject; - - @ExcelColumn(col = 7,value = "时间") - private String createDate; - -} diff --git a/src/main/java/com/meishu/vo/sign/ClassSignInVO.java b/src/main/java/com/meishu/vo/sign/ClassSignInVO.java deleted file mode 100644 index bcd85b4..0000000 --- a/src/main/java/com/meishu/vo/sign/ClassSignInVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.vo.sign; - -import lombok.Data; - -@Data -public class ClassSignInVO { - - private Integer id; - - private String userName; - - private String studyCode; - - private String gender; - - private String phone; - - private String signInDate; - -} diff --git a/src/main/java/com/meishu/vo/student/ChapterTestVO.java b/src/main/java/com/meishu/vo/student/ChapterTestVO.java deleted file mode 100644 index 167f402..0000000 --- a/src/main/java/com/meishu/vo/student/ChapterTestVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.model.ExerciseDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class ChapterTestVO { - - private List exerciseDictDOS; - - private Integer exerciseSize; - -} diff --git a/src/main/java/com/meishu/vo/student/ClassVO.java b/src/main/java/com/meishu/vo/student/ClassVO.java deleted file mode 100644 index 10c73df..0000000 --- a/src/main/java/com/meishu/vo/student/ClassVO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.model.CourseDictDO; -import com.meishu.vo.course.CourseAdministerVO; -import lombok.Data; - -import java.util.List; - -@Data -public class ClassVO extends CourseDictDO { - - private List courseAdministerVOS; - - private String subjectName; - - private String publishTime; - -} diff --git a/src/main/java/com/meishu/vo/student/GetChildTreesVO.java b/src/main/java/com/meishu/vo/student/GetChildTreesVO.java deleted file mode 100644 index 0b4da2a..0000000 --- a/src/main/java/com/meishu/vo/student/GetChildTreesVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetChildTreesVO { - - private StudentVodVO studentVodVO; - - private List studentTreeVodDoneVOS; - -} diff --git a/src/main/java/com/meishu/vo/student/GetStudyProgressVO.java b/src/main/java/com/meishu/vo/student/GetStudyProgressVO.java deleted file mode 100644 index bfc96ae..0000000 --- a/src/main/java/com/meishu/vo/student/GetStudyProgressVO.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetStudyProgressVO { - - private List treeVods; - - private Integer totalCounts; - - private Integer watchCounts; - - private Integer percent; - - private Integer toStudyTreeNodes; - - /** - * 是否做过习题 - */ - private String exerciseStatus; - - /** - * 是否能做习题 - */ - private String doExerciseStatus; - - -} diff --git a/src/main/java/com/meishu/vo/student/LoginVO.java b/src/main/java/com/meishu/vo/student/LoginVO.java deleted file mode 100644 index c2480ec..0000000 --- a/src/main/java/com/meishu/vo/student/LoginVO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.model.StudentDO; -import lombok.Data; - -import java.util.List; - -@Data -public class LoginVO extends StudentDO { - - private String campus; - - private String username; - - private List subjectReportVOS; - - private String isStudent; -} diff --git a/src/main/java/com/meishu/vo/student/ParentReportVO.java b/src/main/java/com/meishu/vo/student/ParentReportVO.java deleted file mode 100644 index 9466319..0000000 --- a/src/main/java/com/meishu/vo/student/ParentReportVO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.model.CourseTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class ParentReportVO { - - private Integer rightCount; - - private Integer exerciseCounts; - - private Integer rightPercent; - - private Integer totalVodCounts; - - private Integer watchCounts; - - private Integer watchPercent; - - private String treeName; - - private String subjectName; - - private List rightTree; - - private List wrongTree; -} diff --git a/src/main/java/com/meishu/vo/student/QueryChapterTestVO.java b/src/main/java/com/meishu/vo/student/QueryChapterTestVO.java deleted file mode 100644 index 07bd9b1..0000000 --- a/src/main/java/com/meishu/vo/student/QueryChapterTestVO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -@Data -public class QueryChapterTestVO { - - private Long id; - - private String title; - - private String rightAnswer; - - private String items; - - private Integer difficulty; - - private String exerciseType; - - private String detail; - - private Integer adviceLength; - - private Integer length; - - private String result; - - private String answer; - -} diff --git a/src/main/java/com/meishu/vo/student/QueryClassVO.java b/src/main/java/com/meishu/vo/student/QueryClassVO.java deleted file mode 100644 index d410619..0000000 --- a/src/main/java/com/meishu/vo/student/QueryClassVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -import java.util.List; - -@Data -public class QueryClassVO { - - private List innerSubjects; - - private List outerSubjects; - -} diff --git a/src/main/java/com/meishu/vo/student/QueryStudentVO.java b/src/main/java/com/meishu/vo/student/QueryStudentVO.java deleted file mode 100644 index 51bb202..0000000 --- a/src/main/java/com/meishu/vo/student/QueryStudentVO.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.model.StudentDO; -import lombok.Data; - -@Data -public class QueryStudentVO extends StudentDO { - - private String campus; - -} diff --git a/src/main/java/com/meishu/vo/student/SearchVodsVO.java b/src/main/java/com/meishu/vo/student/SearchVodsVO.java deleted file mode 100644 index aba8f4a..0000000 --- a/src/main/java/com/meishu/vo/student/SearchVodsVO.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class SearchVodsVO { - - private List subjectTreeDOS; - - private Integer vodLength; - - private Long id; - - private String vodType; - - private String coverPage; - - private String vodName; - - private String vodUrl; - - private String status; - -} diff --git a/src/main/java/com/meishu/vo/student/StudentCampusVO.java b/src/main/java/com/meishu/vo/student/StudentCampusVO.java deleted file mode 100644 index b81c0e6..0000000 --- a/src/main/java/com/meishu/vo/student/StudentCampusVO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -@Data -public class StudentCampusVO { - - private Long studentId; - - private String username; - - private String campus; - - private String status; - - private String startDate; - - private String endDate; - - private Integer diff; - - private Long id; - -} diff --git a/src/main/java/com/meishu/vo/student/StudentCourseVO.java b/src/main/java/com/meishu/vo/student/StudentCourseVO.java deleted file mode 100644 index 604d8b7..0000000 --- a/src/main/java/com/meishu/vo/student/StudentCourseVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.vo.voddict.GetCourseTreesVodsVO; -import lombok.Data; - -import java.util.List; - -@Data -public class StudentCourseVO { - - private String treeName; - - private List vodDictDOS; - - private List studentCourseVO; - -} diff --git a/src/main/java/com/meishu/vo/student/StudentTreeVodDoneVO.java b/src/main/java/com/meishu/vo/student/StudentTreeVodDoneVO.java deleted file mode 100644 index 354d965..0000000 --- a/src/main/java/com/meishu/vo/student/StudentTreeVodDoneVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -@Data -public class StudentTreeVodDoneVO { - - private Long id; // courseId - - private Long treeId; //知识点id - - private String treeName; - - private Boolean completeStatus; - -} diff --git a/src/main/java/com/meishu/vo/student/StudentVO.java b/src/main/java/com/meishu/vo/student/StudentVO.java deleted file mode 100644 index 80e334a..0000000 --- a/src/main/java/com/meishu/vo/student/StudentVO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -@Data -public class StudentVO { - - private Long id; - - private String username; - - private String telephone; - - private String campus; - - private String campusId; - -} diff --git a/src/main/java/com/meishu/vo/student/StudentVodVO.java b/src/main/java/com/meishu/vo/student/StudentVodVO.java deleted file mode 100644 index 8862183..0000000 --- a/src/main/java/com/meishu/vo/student/StudentVodVO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.vo.course.CourseVodVO; -import lombok.Data; - -import java.util.List; - -@Data -public class StudentVodVO { - - private List courseVodVOS; - - private Integer completePercent; - - private Boolean completeStatus; - - -} diff --git a/src/main/java/com/meishu/vo/student/StudyReportVO.java b/src/main/java/com/meishu/vo/student/StudyReportVO.java deleted file mode 100644 index dee1d5f..0000000 --- a/src/main/java/com/meishu/vo/student/StudyReportVO.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.vo.student; - -import com.meishu.model.CourseTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class StudyReportVO { - - private Integer totalCounts; - - private Integer watchCounts; - - private String treeName; - - private Integer rightCount; - - private Integer exerciseCounts; - - private Integer rightPercent; - - private String subjectName; - - private Integer watchPercent; - - private List rightTree; - - private List wrongTree; - -} diff --git a/src/main/java/com/meishu/vo/student/SubjectReportVO.java b/src/main/java/com/meishu/vo/student/SubjectReportVO.java deleted file mode 100644 index 0d96dd6..0000000 --- a/src/main/java/com/meishu/vo/student/SubjectReportVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.student; - -import lombok.Data; - -@Data -public class SubjectReportVO { - - private Long courseId; - - private String subjectName; - - private String courseName; - - private String createTime; - - -} diff --git a/src/main/java/com/meishu/vo/subject/GetAllNoAuthenVodsVO.java b/src/main/java/com/meishu/vo/subject/GetAllNoAuthenVodsVO.java deleted file mode 100644 index 678ca97..0000000 --- a/src/main/java/com/meishu/vo/subject/GetAllNoAuthenVodsVO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.vo.subject; - -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetAllNoAuthenVodsVO { - - private Long id; - - private String vodName; - - private String vodType; - - private List subjectTreeDOS; - - private String userName; - - private String updateTime; - - -} diff --git a/src/main/java/com/meishu/vo/subject/GetNextNodeVO.java b/src/main/java/com/meishu/vo/subject/GetNextNodeVO.java deleted file mode 100644 index 3dd08eb..0000000 --- a/src/main/java/com/meishu/vo/subject/GetNextNodeVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.subject; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetNextNodeVO { - - private GetSubjectTreeVO getSubjectTreeVO; - - private List getSubjectTreeVOS; - -} diff --git a/src/main/java/com/meishu/vo/subject/GetSubjectTreeVO.java b/src/main/java/com/meishu/vo/subject/GetSubjectTreeVO.java deleted file mode 100644 index bcc452a..0000000 --- a/src/main/java/com/meishu/vo/subject/GetSubjectTreeVO.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.meishu.vo.subject; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetSubjectTreeVO implements Comparable { - - - private Long id; - - private Long subjectId; - - /** - * 章节 - */ - private Integer chapterId; - - /** - * 知识点名称 - */ - private String treeName; - - /** - * 写程序使用,数据库不存值 - */ - private List children; - - /** - * 父节点 - */ - private Long parentId; - - /** - * 子节点个数 - */ - private Integer childNodeCounts; - - private String parentTreeName; - - private String treeNode; - - /** - * 视频个数 个人库数量 - */ - private Integer vodCounts; - - /** - * 视频个数 公共库数量 - */ - private Integer publicVodCounts; - - /** - * 题目个数 - */ - private Integer exerciseCounts; - - /** - *视频个数 公共库数量 - */ - private Integer publicExerciseVodCounts; - - /** - * 视频审核个数 - */ - private Integer checkVodCounts; - - /** - * 题目审核个数 - */ - private Integer checkExerciseCounts; - - /** - * 视频待审核个数 - */ - private Integer toCheckVodCounts; - - /** - * 题目待审核个数 - */ - private Integer toCheckExerciseCounts; - - /** - * 子节点集合 - */ - private List childTreeIds; - - private String number; - - private String text; - - private String layer; - - private int level; - - public GetSubjectTreeVO(Long id, String number, Long parentId, int level) { - this.id = id; - this.number = number; - this.parentId = parentId; - this.level = level; - } - - @Override - public int compareTo(GetSubjectTreeVO o) { - if (this.level != o.level) { - return o.level - this.level; - } else { - if(this.number==null){ - return -1; - } - return this.number.compareTo(o.number); - } - } - - public GetSubjectTreeVO(){ - - } -} diff --git a/src/main/java/com/meishu/vo/subject/SubjectTreeOrder.java b/src/main/java/com/meishu/vo/subject/SubjectTreeOrder.java deleted file mode 100644 index 402eb14..0000000 --- a/src/main/java/com/meishu/vo/subject/SubjectTreeOrder.java +++ /dev/null @@ -1,212 +0,0 @@ -package com.meishu.vo.subject; - -import com.meishu.util.tree.SerialNumber; -import lombok.Data; - -import java.util.ArrayList; -import java.util.List; - -@Data -public class SubjectTreeOrder { - - private String id; - - public List nodeList; - - private String separator; - - private Long idSeq; - - private SerialNumber number; - - public SubjectTreeOrder(String separator, SerialNumber number) { - init(); - this.separator = separator; - this.number = number; - - } - - public void init() { - idSeq = 0L; - this.separator = "."; - if (this.nodeList == null) { - nodeList = new ArrayList<>(); - } - } - - - /** - *

功能描述:根据父节点获取所有子节点。

- */ - public List getChildNodes(GetSubjectTreeVO pNode,List nodeList) { - Long pId = pNode.getId(); - return getChildNodes(pId,nodeList); - } - - /** - *

功能描述:根据父节点获取所有子节点。

- */ - public List getChildNodes(Long pId,List nodeList) { - List childNodes = new ArrayList<>(); - for (GetSubjectTreeVO n : nodeList) { - if (pId.equals(n.getParentId())) { - childNodes.add(n); - } - } - - return childNodes; - } - - /** - *

功能描述:获取本级值最大的节点。

- */ - public GetSubjectTreeVO getMaxNodeForThisLevel(GetSubjectTreeVO pNode,List nodeList) { - List childList = getChildNodes(pNode,nodeList); - GetSubjectTreeVO root = getRoot(nodeList); - if (childList.size() <= 0) { - return null; - } - GetSubjectTreeVO maxNode = root; - for (GetSubjectTreeVO node : childList) { - if (maxNode.getNumber().compareTo(node.getNumber()) <= 0) { - maxNode = node; - } - } - return maxNode; - } - - /** - *

功能描述:生成下一个子节点。

- */ - public GetSubjectTreeVO generateNextChildNode(GetSubjectTreeVO node,List nodeList) { - GetSubjectTreeVO newNode = null; - GetSubjectTreeVO maxNode = getMaxNodeForThisLevel(node,nodeList); - String nextNumber = number.firstNumber(); - int level = node.getLevel(); - if (maxNode != null && !"0".equals(maxNode.getId())) {//本级存在子节点,且非根节点 - nextNumber = number.produceNext(maxNode.getNumber()); - level = maxNode.getLevel(); - } - newNode = new GetSubjectTreeVO(++idSeq, nextNumber, node.getId(), level); - - generateNodeText(newNode, nextNumber,nodeList); - - return newNode; - } - - - /** - * - *

功能描述:获取父节点。

- */ - public GetSubjectTreeVO getParentNode(GetSubjectTreeVO node,List nodeList) { - for (GetSubjectTreeVO n : nodeList) { - if (node.getParentId().equals(n.getId())) { - return n; - } - } - return node; - } - - /** - *

功能描述:生成节点路径。

- */ - public void generateNodeText(GetSubjectTreeVO node, String text,List nodeList) { - - if (node == null || "0".equals(node.getId())) { - return; - } - - GetSubjectTreeVO pNode = getParentNode(node,nodeList); - - if (!"0".equals(pNode.getId())) { - text = pNode.getText() + separator + text; - } - node.setText(text); - } - -// /** -// *

功能描述:遍历所有树节点。

-// */ -// public void traverseNodeList(GetSubjectTreeVO node) { -// if(node==null){ -// node = getRoot(nodeList); -// } -// List childNodes = getChildNodes(node); -// System.out.println(node.getText()); -// if (childNodes.size() > 0) { -// for (GetSubjectTreeVO n : childNodes) { -// traverseNodeList(n); -// } -// } -// } - public static void main(String[] args) { - SerialNumber number = new SerialNumber(); - SubjectTreeOrder treeNode = new SubjectTreeOrder(".", number); - -// addSomeNodes(treeNode); -// treeNode.traverseNodeList(null); - } - - /** - *

功能描述:获取根节点。

- */ - public GetSubjectTreeVO getRoot(List nodeList) { - GetSubjectTreeVO root = null; - if (nodeList.size() <= 0 || (root = getNodeById(nodeList, "0")) == null) { - root = createRoot(); - nodeList.add(root); - } - return root; - } - - private GetSubjectTreeVO getNodeById(List nodeList, String id) { - GetSubjectTreeVO node = null; - if(id!=null){ - for (GetSubjectTreeVO n : nodeList) { - if (id.equals(n.getId())) { - node = n; - break; - } - } - } - return node; - } - - private GetSubjectTreeVO createRoot() { - GetSubjectTreeVO root = new GetSubjectTreeVO(0L, number.rootNumber(), -1L, 0); - root.setText("0"); - return root; - } - - /** - *

功能描述:测试添加节点。

- */ -// private static GetSubjectTreeVO addSomeNodes(SubjectTreeOrder tree) { -// GetSubjectTreeVO root = tree.getRoot(tree.nodeList); -// GetSubjectTreeVO node1 = getNextNode(tree, root);//1 -// GetSubjectTreeVO node2 = getNextNode(tree, root);//2 -// GetSubjectTreeVO node3 = getNextNode(tree, root);//3 -// GetSubjectTreeVO node11 = getNextNode(tree, node1);//1.1 -// GetSubjectTreeVO node12 = getNextNode(tree, node1);//1.2 -// GetSubjectTreeVO node21 = getNextNode(tree, node2);//2.1 -// GetSubjectTreeVO node211 = getNextNode(tree, node21);//2.1.1 -// GetSubjectTreeVO node212 = getNextNode(tree, node21);//2.1.2 -// GetSubjectTreeVO node22 = getNextNode(tree, node2);//2.2 -// GetSubjectTreeVO node221 = getNextNode(tree, node22);//2.2.1 -// GetSubjectTreeVO node31 = getNextNode(tree, node3); -// GetSubjectTreeVO node32 = getNextNode(tree, node3); -// GetSubjectTreeVO node311 = getNextNode(tree, node31); -// GetSubjectTreeVO node3111 = getNextNode(tree, node311); -// return root; -// } - - public static GetSubjectTreeVO getNextNode(SubjectTreeOrder tree, GetSubjectTreeVO pNode,List nodeList) { - GetSubjectTreeVO node = tree.generateNextChildNode(pNode,nodeList); - if (node != null) { - nodeList.add(node); - } - return node; - } - -} diff --git a/src/main/java/com/meishu/vo/task/ClassDoneInfoVO.java b/src/main/java/com/meishu/vo/task/ClassDoneInfoVO.java deleted file mode 100644 index 3e78061..0000000 --- a/src/main/java/com/meishu/vo/task/ClassDoneInfoVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -@Data -public class ClassDoneInfoVO { - - private Integer exerciseId; - - private Integer length; - - private Integer result; - - private Integer countNum; - -} diff --git a/src/main/java/com/meishu/vo/task/ExeRightRatioVO.java b/src/main/java/com/meishu/vo/task/ExeRightRatioVO.java deleted file mode 100644 index f41cd93..0000000 --- a/src/main/java/com/meishu/vo/task/ExeRightRatioVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -@Data -public class ExeRightRatioVO { - - private String exercise; - - private String type; - - private String value; - - private String length; -} diff --git a/src/main/java/com/meishu/vo/task/ExerciseDoneInfoVO.java b/src/main/java/com/meishu/vo/task/ExerciseDoneInfoVO.java deleted file mode 100644 index 3681a7f..0000000 --- a/src/main/java/com/meishu/vo/task/ExerciseDoneInfoVO.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-20 09:40 - */ -@Data -public class ExerciseDoneInfoVO { - - private Integer rights; - - private Integer total; - - private String label; - -} diff --git a/src/main/java/com/meishu/vo/task/ExerciseUserInfoVO.java b/src/main/java/com/meishu/vo/task/ExerciseUserInfoVO.java deleted file mode 100644 index b17f355..0000000 --- a/src/main/java/com/meishu/vo/task/ExerciseUserInfoVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.task; - - -import com.meishu.model.ExerciseDictDO; -import lombok.Data; - -@Data -public class ExerciseUserInfoVO extends ExerciseDictDO { - - private Integer collectionStatus; - - private Integer recommendStatus; - -} diff --git a/src/main/java/com/meishu/vo/task/GetClassExeDoneInfoRequestVO.java b/src/main/java/com/meishu/vo/task/GetClassExeDoneInfoRequestVO.java deleted file mode 100644 index 6e3d8d4..0000000 --- a/src/main/java/com/meishu/vo/task/GetClassExeDoneInfoRequestVO.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -import java.util.List; - -/** - * 获取班级某个关联习题做题情况 入参 - * @author: tuyp - * @create: 2020-07-24 10:41 - */ -@Data -public class GetClassExeDoneInfoRequestVO { - - private Integer subjectId; - - private Integer taskId; - - private String treeId; - - private Integer userId; - - private String subject; - - private List userIds; - -} diff --git a/src/main/java/com/meishu/vo/task/GetClassExeDoneInfoResponseVO.java b/src/main/java/com/meishu/vo/task/GetClassExeDoneInfoResponseVO.java deleted file mode 100644 index d795418..0000000 --- a/src/main/java/com/meishu/vo/task/GetClassExeDoneInfoResponseVO.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * 获取班级某个关联习题做题情况 出参 - * @author: tuyp - * @create: 2020-07-24 10:57 - */ -@Data -public class GetClassExeDoneInfoResponseVO { - - private Integer exerciseId; - - private String exerciseType; - - private String label; - - private String treeId; - - private String title; - - private String answer; - - private String rightAnswer; - - private String exeType; - - private Integer result; - - private Integer length; - - private String classResult; - - private Integer classLength; - -} diff --git a/src/main/java/com/meishu/vo/task/GetExeByIdResponseVO.java b/src/main/java/com/meishu/vo/task/GetExeByIdResponseVO.java deleted file mode 100644 index 8f66b04..0000000 --- a/src/main/java/com/meishu/vo/task/GetExeByIdResponseVO.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-06-17 17:33 - */ -@Data -public class GetExeByIdResponseVO { - - private Integer id; - - private Integer adviceLength; - - private String treeId; - - private String exerciseType; - - private String title; - - private String rightAnswer; - - private String detail; - - private Integer status; - - private Integer userId; - - private Integer difficulty; - - private String items; - - private Integer collectionStatus; - -} diff --git a/src/main/java/com/meishu/vo/task/GetExercisesInfoByIdsResponseVO.java b/src/main/java/com/meishu/vo/task/GetExercisesInfoByIdsResponseVO.java deleted file mode 100644 index 1315a9a..0000000 --- a/src/main/java/com/meishu/vo/task/GetExercisesInfoByIdsResponseVO.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-21 16:09 - */ -@Data -public class GetExercisesInfoByIdsResponseVO { - - private Integer exeCounts; - - private String length; - - private Integer lengthSecond; - - private Integer treeId; - - private String label; -} diff --git a/src/main/java/com/meishu/vo/task/GetExpandingsPO.java b/src/main/java/com/meishu/vo/task/GetExpandingsPO.java deleted file mode 100644 index 921ce4b..0000000 --- a/src/main/java/com/meishu/vo/task/GetExpandingsPO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -@Data -public class GetExpandingsPO { - - private Integer id; - - private Integer userId; - -} diff --git a/src/main/java/com/meishu/vo/task/GetPreTaskContentVO.java b/src/main/java/com/meishu/vo/task/GetPreTaskContentVO.java deleted file mode 100644 index c8b48c4..0000000 --- a/src/main/java/com/meishu/vo/task/GetPreTaskContentVO.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-17 11:10 - */ -@Data -public class GetPreTaskContentVO { - - private List preVodInfoVOS; - - private List preRelateExeVOS; - - private List preExpandExerciseVOS; - - private PreHomeWorkInfoVO preHomeWorkInfoVO; - -// private List knowledgeTrees; - - private String teacherName; - - private Integer taskType; - - private Integer taskId; - - private String treeName; - -} diff --git a/src/main/java/com/meishu/vo/task/GetTaskByIdVO.java b/src/main/java/com/meishu/vo/task/GetTaskByIdVO.java deleted file mode 100644 index 3c7af49..0000000 --- a/src/main/java/com/meishu/vo/task/GetTaskByIdVO.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.meishu.vo.task; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.meishu.model.ClassSubjectTaskDO; -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -import java.util.Date; -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-17 10:06 - */ -@Data -public class GetTaskByIdVO { - - @TableId(type = IdType.AUTO) - private Integer id; - - private Integer subjectId; - - private String treeId; - - private String treeName; - - private Integer teacherId; - - /** - * 作业类型 0:预习作业 1课后作业 - */ - private Integer taskType; - - private String subjectEn; - - private Integer classId; - - private String grade; - - private String classes; - - private String session; - - private String subjectType; - - private String className; - - private String semester; - - private Date createDate; - - private Date updateDate; - - private Date deleteDate; - - private List knowledges; - - private Integer taskId; - - private List subjectTreeDOS; - - private String taskDate; - -} diff --git a/src/main/java/com/meishu/vo/task/GetVodDetailResponseVO.java b/src/main/java/com/meishu/vo/task/GetVodDetailResponseVO.java deleted file mode 100644 index 3cad4da..0000000 --- a/src/main/java/com/meishu/vo/task/GetVodDetailResponseVO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-19 13:51 - */ -@Data -public class GetVodDetailResponseVO { - - private Long id; - - private String vodName; - - private String vodUrl; - - private String vodType; - - private String userName; - - private Integer treeId; - -// private String length; - - private Integer lengthSecond; - - private String collectionStatus; - -} diff --git a/src/main/java/com/meishu/vo/task/PerStuExeDoneResponseVO.java b/src/main/java/com/meishu/vo/task/PerStuExeDoneResponseVO.java deleted file mode 100644 index 5d864fe..0000000 --- a/src/main/java/com/meishu/vo/task/PerStuExeDoneResponseVO.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.meishu.vo.task; - -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Data; - -import java.util.Date; - -/** - * @author: tuyp - * @create: 2020-07-23 15:43 - */ -@Data -public class PerStuExeDoneResponseVO { - - private String userId; - - private String studyCode; - - private String userName; - - private Integer rightCounts; - - private Integer totalCounts; - - private Integer length; - - @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") - private String submitDate; - - private String status; - -} diff --git a/src/main/java/com/meishu/vo/task/PerStudentExesResponseVO.java b/src/main/java/com/meishu/vo/task/PerStudentExesResponseVO.java deleted file mode 100644 index 99c0510..0000000 --- a/src/main/java/com/meishu/vo/task/PerStudentExesResponseVO.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -import java.math.BigDecimal; -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-22 18:41 - */ -@Data -public class PerStudentExesResponseVO { - - private Integer submitCount; - - private Integer totalCount; - - private BigDecimal rightPercent; - - private BigDecimal avgUseTimes; - - private List perStuExeDoneResponseVOS; - -} diff --git a/src/main/java/com/meishu/vo/task/PreExpandExerciseVO.java b/src/main/java/com/meishu/vo/task/PreExpandExerciseVO.java deleted file mode 100644 index 814441a..0000000 --- a/src/main/java/com/meishu/vo/task/PreExpandExerciseVO.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-18 19:49 - */ -@Data -public class PreExpandExerciseVO { - - private Integer treeId; - - private String expandExerciseNames; - - private Integer exerciseCounts; - - private Integer studentCounts; - - private String length; - - private Integer lengthSecond; - -} diff --git a/src/main/java/com/meishu/vo/task/PreHomeWorkInfoVO.java b/src/main/java/com/meishu/vo/task/PreHomeWorkInfoVO.java deleted file mode 100644 index 0103cab..0000000 --- a/src/main/java/com/meishu/vo/task/PreHomeWorkInfoVO.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.meishu.vo.task; - -import com.meishu.model.WrittenHomeworkDO; -import lombok.Data; - -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-17 14:21 - */ -@Data -public class PreHomeWorkInfoVO { - - private String length; - - private List writtenHomeworks; - - private Integer homeworksCounts; - - private String notice; - - private String fileName; - - private Integer lengthSecond; - -} diff --git a/src/main/java/com/meishu/vo/task/PreRelateExeVO.java b/src/main/java/com/meishu/vo/task/PreRelateExeVO.java deleted file mode 100644 index 5959352..0000000 --- a/src/main/java/com/meishu/vo/task/PreRelateExeVO.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-17 14:29 - */ -@Data -public class PreRelateExeVO { - - private Integer treeId; - - private String treeName; - - private Integer exeCounts; - - private String length; - - private Integer lengthSecond; - -} diff --git a/src/main/java/com/meishu/vo/task/PreVodInfoVO.java b/src/main/java/com/meishu/vo/task/PreVodInfoVO.java deleted file mode 100644 index e69374d..0000000 --- a/src/main/java/com/meishu/vo/task/PreVodInfoVO.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -/** - * @author: tuyp - * @create: 2020-07-17 11:26 - */ -@Data -public class PreVodInfoVO { - - private Long vodId; - - private String vodName; - - private String teacherName; - - private Integer treeId; - - private String length; - - private String vodType; - - private String vodUrl; - - private Integer lengthSecond; - -} diff --git a/src/main/java/com/meishu/vo/task/QueryTaskDetailResponseVO.java b/src/main/java/com/meishu/vo/task/QueryTaskDetailResponseVO.java deleted file mode 100644 index 8876f1d..0000000 --- a/src/main/java/com/meishu/vo/task/QueryTaskDetailResponseVO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-06-28 10:40 - */ -@Data -public class QueryTaskDetailResponseVO { - - private Integer taskType; - - private List knowledges; - - private String userName; - - private String treeName; - - private GetPreTaskContentVO getPreTaskContentVO; - - private List exerciseDoneInfoVOS; - -} diff --git a/src/main/java/com/meishu/vo/task/StudentDoneInfoResponseVO.java b/src/main/java/com/meishu/vo/task/StudentDoneInfoResponseVO.java deleted file mode 100644 index 224232a..0000000 --- a/src/main/java/com/meishu/vo/task/StudentDoneInfoResponseVO.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.meishu.vo.task; - -import lombok.Data; - -import java.util.Date; -import java.util.List; - -/** - * @author: tuyp - * @create: 2020-07-23 09:23 - */ -@Data -public class StudentDoneInfoResponseVO { - - private Integer rightCounts; - - private Integer totalCounts; - - private Integer useLength; - - private String avgRightPercent; - - private Integer avgUseLength; - - private String submitTime; - - private List studentDoneDetailVOS; - - - -} diff --git a/src/main/java/com/meishu/vo/task/TeacherClassVO.java b/src/main/java/com/meishu/vo/task/TeacherClassVO.java deleted file mode 100644 index 6607340..0000000 --- a/src/main/java/com/meishu/vo/task/TeacherClassVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.task; - -import com.meishu.vo.administer.GetClassesDetailResponseVO; -import lombok.Data; - -import java.util.List; - -@Data -public class TeacherClassVO { - - private Long subjectId; - - private String subject; - - private List getClassesDetailResponseVOS; - -} diff --git a/src/main/java/com/meishu/vo/test/CommentVO.java b/src/main/java/com/meishu/vo/test/CommentVO.java deleted file mode 100644 index 3ed5bf8..0000000 --- a/src/main/java/com/meishu/vo/test/CommentVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.test; - -import lombok.Data; - -@Data -public class CommentVO { - - private Long id; - - private String dimension; - - private Integer star; - - private String userName; - -} diff --git a/src/main/java/com/meishu/vo/test/GetAllTestVO.java b/src/main/java/com/meishu/vo/test/GetAllTestVO.java deleted file mode 100644 index d4ffc28..0000000 --- a/src/main/java/com/meishu/vo/test/GetAllTestVO.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.meishu.vo.test; - -import lombok.Data; - -@Data -public class GetAllTestVO { - - private Long id; - - private Long ruleId; - - private String ruleName; - - private String testName; - - private String examination; - - private String status; -} diff --git a/src/main/java/com/meishu/vo/test/GetOnePublishVO.java b/src/main/java/com/meishu/vo/test/GetOnePublishVO.java deleted file mode 100644 index ad8dd75..0000000 --- a/src/main/java/com/meishu/vo/test/GetOnePublishVO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.vo.test; - -import lombok.Data; - -import java.util.List; - -@Data -public class GetOnePublishVO { - - private Long id; - - private Long studentId; - - private Long publishId; - - private String username; - - private String answer; - - private String commentStatus; - - private Double totalStar; - - private List commentVOS; - -} diff --git a/src/main/java/com/meishu/vo/test/GetPublishHistoryVO.java b/src/main/java/com/meishu/vo/test/GetPublishHistoryVO.java deleted file mode 100644 index 519f206..0000000 --- a/src/main/java/com/meishu/vo/test/GetPublishHistoryVO.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.meishu.vo.test; - - -import com.meishu.vo.student.StudentVO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetPublishHistoryVO { - - private Long id; - - private Long testId; - - private String testName; - - private String publishName; - - private String ruleName; - - private String testTime; - - private String outline; - - private String examination; - - private String coverPage; - - private List studentVOS; - -} diff --git a/src/main/java/com/meishu/vo/test/GetTestReportVO.java b/src/main/java/com/meishu/vo/test/GetTestReportVO.java deleted file mode 100644 index ad48a45..0000000 --- a/src/main/java/com/meishu/vo/test/GetTestReportVO.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.meishu.vo.test; - -import com.meishu.vo.student.StudentVO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetTestReportVO { - - private Long id; - - private String publishName; - - private String ruleName; - - private String testTime; - - private String testName; - - private Integer toCnt; - - private Integer doneCnt; - - private List studentVOS; -} diff --git a/src/main/java/com/meishu/vo/userrole/QueryStudentsVO.java b/src/main/java/com/meishu/vo/userrole/QueryStudentsVO.java deleted file mode 100644 index 0352105..0000000 --- a/src/main/java/com/meishu/vo/userrole/QueryStudentsVO.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.meishu.vo.userrole; - -import com.meishu.util.excel.ExcelColumn; -import lombok.Data; - -@Data -public class QueryStudentsVO { - - private Integer id; - - @ExcelColumn(col = 1,value = "姓名") - private String userName; - - @ExcelColumn(col = 2,value = "学号") - private String studyCode; - - @ExcelColumn(col = 3,value = "手机号") - private String phone; - - @ExcelColumn(col = 4,value = "身份证号") - private String idCard; - - @ExcelColumn(col = 5,value = "年级") - private String grade; - - @ExcelColumn(col = 6,value = "入学年份") - private String session; - - @ExcelColumn(col = 7,value = "性别") - private String gender; - - @ExcelColumn(col = 8,value = "邮箱") - private String email; - - @ExcelColumn(col = 9,value = "所在行政班级") - private String className; - - @ExcelColumn(col = 10,value = "状态") - private String userStatus; - -} diff --git a/src/main/java/com/meishu/vo/userrole/UserInfoVO.java b/src/main/java/com/meishu/vo/userrole/UserInfoVO.java deleted file mode 100644 index b48e683..0000000 --- a/src/main/java/com/meishu/vo/userrole/UserInfoVO.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.meishu.vo.userrole; - -import lombok.Data; - -@Data -public class UserInfoVO { - - private Integer id; - - private String userName; - - private String classes; - - private String session; -} diff --git a/src/main/java/com/meishu/vo/userrole/UserRoleVO.java b/src/main/java/com/meishu/vo/userrole/UserRoleVO.java deleted file mode 100644 index 2c34e45..0000000 --- a/src/main/java/com/meishu/vo/userrole/UserRoleVO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.vo.userrole; - -import lombok.Data; - -@Data -public class UserRoleVO { - - private Integer id; - - private String phone; - -} diff --git a/src/main/java/com/meishu/vo/voddict/GetCourseTreesVodsVO.java b/src/main/java/com/meishu/vo/voddict/GetCourseTreesVodsVO.java deleted file mode 100644 index efbe271..0000000 --- a/src/main/java/com/meishu/vo/voddict/GetCourseTreesVodsVO.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.meishu.vo.voddict; - -import lombok.Data; - -@Data -public class GetCourseTreesVodsVO { - - private Long id; - - private Long vodId; - - private String vodUrl; - - private String vodName; - - private String vodType; - - private String vodIntro; - - private String coverPage; - - private Integer playRecord; - - private Integer vodLength; - - /** - * 没用字段 - */ - private String watchStatus; - - /** - * 1:带锁 0:没有锁 - */ - private String lockStatus; - - private Long treeId; - - private Long mappingId; - -} diff --git a/src/main/java/com/meishu/vo/voddict/GetStatusVodsVO.java b/src/main/java/com/meishu/vo/voddict/GetStatusVodsVO.java deleted file mode 100644 index 52c4fe5..0000000 --- a/src/main/java/com/meishu/vo/voddict/GetStatusVodsVO.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.meishu.vo.voddict; - -import lombok.Data; - -@Data -public class GetStatusVodsVO { - - -} diff --git a/src/main/java/com/meishu/vo/voddict/GetToCheckCountsVO.java b/src/main/java/com/meishu/vo/voddict/GetToCheckCountsVO.java deleted file mode 100644 index 9fd5364..0000000 --- a/src/main/java/com/meishu/vo/voddict/GetToCheckCountsVO.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.meishu.vo.voddict; - -import lombok.Data; - -@Data -public class GetToCheckCountsVO { - - private Integer toCheckCounts; - - private Integer checkCounts; - -} diff --git a/src/main/java/com/meishu/vo/voddict/GetTreeVodsVO.java b/src/main/java/com/meishu/vo/voddict/GetTreeVodsVO.java deleted file mode 100644 index ead95dc..0000000 --- a/src/main/java/com/meishu/vo/voddict/GetTreeVodsVO.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.meishu.vo.voddict; - -import com.meishu.model.SubjectTreeDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetTreeVodsVO { - - private Long id; - - private String vodName; - - private List trees; - - private String vodUrl; - - private String vodType; - - private String userName; - - private String updateTime; - - private Integer playCounts; - - private String vodSize; - - private Integer vodLength; - - private String vodIntro; - - private String vodCode; - - private String shareStatus; - - private String checkStatus; - - private String coverPage; - - private String status; - -} diff --git a/src/main/java/com/meishu/vo/voddict/GetVodDetailVO.java b/src/main/java/com/meishu/vo/voddict/GetVodDetailVO.java deleted file mode 100644 index 3088f43..0000000 --- a/src/main/java/com/meishu/vo/voddict/GetVodDetailVO.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.meishu.vo.voddict; - -import com.meishu.model.SubjectTreeDO; -import com.meishu.model.VodDictDO; -import lombok.Data; - -import java.util.List; - -@Data -public class GetVodDetailVO extends VodDictDO { - - private List subjectTreeDOS; - -} diff --git a/src/main/java/com/meishu/vo/voddict/SignatureVO.java b/src/main/java/com/meishu/vo/voddict/SignatureVO.java deleted file mode 100644 index 4da6082..0000000 --- a/src/main/java/com/meishu/vo/voddict/SignatureVO.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.meishu.vo.voddict; - -import lombok.Data; - -@Data -public class SignatureVO { - - private String sign; - -} diff --git a/src/main/java/com/meishu/vo/wechat/AccessTokenVO.java b/src/main/java/com/meishu/vo/wechat/AccessTokenVO.java deleted file mode 100644 index 4c93d2d..0000000 --- a/src/main/java/com/meishu/vo/wechat/AccessTokenVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.wechat; - -import lombok.Data; - -/** - * Access_Token - */ -@Data -public class AccessTokenVO { - - private Integer errcode; - - private String errmsg; - - private String access_token; -} diff --git a/src/main/java/com/meishu/vo/wechat/AuthenTokenVO.java b/src/main/java/com/meishu/vo/wechat/AuthenTokenVO.java deleted file mode 100644 index 8d34406..0000000 --- a/src/main/java/com/meishu/vo/wechat/AuthenTokenVO.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.meishu.vo.wechat; - - -import lombok.Data; - -@Data -public class AuthenTokenVO { - - private String access_token; - - private String openid; - - private String nickname; - - private String sex; - - private String province; - - private String city; - - private String country; - - private String headimgurl; - - private Object privilege; - - private String unionid; - - -} diff --git a/src/main/java/com/meishu/vo/wechat/MemberVO.java b/src/main/java/com/meishu/vo/wechat/MemberVO.java deleted file mode 100644 index da1929c..0000000 --- a/src/main/java/com/meishu/vo/wechat/MemberVO.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.meishu.vo.wechat; - -import lombok.Data; - -/** - * Member - */ - -@Data -public class MemberVO { - - private Integer errcode; - - private String errmsg; - - private String userid; - - private String name; - - private String mobile; - - private String avatar; -} diff --git a/src/main/java/com/meishu/vo/wechat/QrConnectVO.java b/src/main/java/com/meishu/vo/wechat/QrConnectVO.java deleted file mode 100644 index b1a1659..0000000 --- a/src/main/java/com/meishu/vo/wechat/QrConnectVO.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.meishu.vo.wechat; - -import lombok.Data; - -@Data -public class QrConnectVO { - - private String id; - - private String appId; - - private String agentId; - - private String redirectUri; - - private String state; -} diff --git a/src/main/java/com/meishu/vo/wechat/WXUserInfoVO.java b/src/main/java/com/meishu/vo/wechat/WXUserInfoVO.java deleted file mode 100644 index 2a81e96..0000000 --- a/src/main/java/com/meishu/vo/wechat/WXUserInfoVO.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.meishu.vo.wechat; - -import lombok.Data; - -/** - * UserInfo - */ -@Data -public class WXUserInfoVO { - - private Integer errcode; - - private String errmsg; - - private String UserId; -} \ No newline at end of file diff --git a/src/main/java/com/meishu/vo/wechat/WechatInviteVO.java b/src/main/java/com/meishu/vo/wechat/WechatInviteVO.java deleted file mode 100644 index 62035c2..0000000 --- a/src/main/java/com/meishu/vo/wechat/WechatInviteVO.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.meishu.vo.wechat; - -import lombok.Data; - -import java.util.List; - -@Data -public class WechatInviteVO { - - private String errcode; - - private String errmsg; - - private List invaliduser; - - private List invalidparty; - - private List invalidtag; - -} diff --git a/src/main/java/com/subsidy/util/Signature.java b/src/main/java/com/subsidy/util/Signature.java index 87f4c62..cf05b7f 100644 --- a/src/main/java/com/subsidy/util/Signature.java +++ b/src/main/java/com/subsidy/util/Signature.java @@ -1,6 +1,6 @@ package com.subsidy.util; -import sun.misc.BASE64Encoder; +//import sun.misc.BASE64Encoder; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; @@ -44,18 +44,18 @@ public class Signature { byte[] hash = mac.doFinal(contextStr.getBytes(CONTENT_CHARSET)); byte[] sigBuf = byteMerger(hash, contextStr.getBytes(StandardCharsets.UTF_8)); - strSign = base64Encode(sigBuf); - strSign = strSign.replace(" ", "").replace("\n", "").replace("\r", ""); +// strSign = base64Encode(sigBuf); +// strSign = strSign.replace(" ", "").replace("\n", "").replace("\r", ""); } catch (Exception e) { throw e; } return strSign; } - private String base64Encode(byte[] buffer) { - BASE64Encoder encoder = new BASE64Encoder(); - return encoder.encode(buffer); - } +// private String base64Encode(byte[] buffer) { +// BASE64Encoder encoder = new BASE64Encoder(); +// return encoder.encode(buffer); +// } public void setSecretId(String secretId) { this.secretId = secretId; diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 119200b..4c9a014 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -4,7 +4,7 @@ server.port=23454 # 数据源配置 -spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://116.62.57.92:3306/tushuguan?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.username=devloper diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index b4a20a5..78fc884 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -4,7 +4,7 @@ server.port=23454 # 数据源配置 -spring.datasource.url=jdbc:mysql://rm-uf69w46mo6agw0ahao.mysql.rds.aliyuncs.com:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://rm-uf69w46mo6agw0ahao.mysql.rds.aliyuncs.com:3306/tushuguan?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.username=ykadmin_new diff --git a/src/main/resources/mapper/AccessTokenMapper.xml b/src/main/resources/mapper/AccessTokenMapper.xml deleted file mode 100644 index fc6d71c..0000000 --- a/src/main/resources/mapper/AccessTokenMapper.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, access_token - - - - - - diff --git a/src/main/resources/mapper/AdministerDepartmentMappingMapper.xml b/src/main/resources/mapper/AdministerDepartmentMappingMapper.xml deleted file mode 100644 index 5a5175b..0000000 --- a/src/main/resources/mapper/AdministerDepartmentMappingMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, administer_id, department_id - - - diff --git a/src/main/resources/mapper/AdministerMapper.xml b/src/main/resources/mapper/AdministerMapper.xml index f88f415..f5b9fad 100644 --- a/src/main/resources/mapper/AdministerMapper.xml +++ b/src/main/resources/mapper/AdministerMapper.xml @@ -2,20 +2,6 @@ - - - - - - - - - - - - - - create_date, diff --git a/src/main/resources/mapper/AdministerPermissionMapper.xml b/src/main/resources/mapper/AdministerPermissionMapper.xml deleted file mode 100644 index c7e8f15..0000000 --- a/src/main/resources/mapper/AdministerPermissionMapper.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, administer_id, permission_id - - - - - - diff --git a/src/main/resources/mapper/AdministerSubjectMappingMapper.xml b/src/main/resources/mapper/AdministerSubjectMappingMapper.xml deleted file mode 100644 index e1e62ac..0000000 --- a/src/main/resources/mapper/AdministerSubjectMappingMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, subject_id, administer_id - - - diff --git a/src/main/resources/mapper/ClassSubjectTaskMapper.xml b/src/main/resources/mapper/ClassSubjectTaskMapper.xml deleted file mode 100644 index 88b70ed..0000000 --- a/src/main/resources/mapper/ClassSubjectTaskMapper.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, subject_id, tree_id, tree_name, task_date, teacher_id, task_type, class_id, subject_en, grade, classes, session, subject_type, class_name, semester - - - - - - - - diff --git a/src/main/resources/mapper/ClassesDictHistoryMapper.xml b/src/main/resources/mapper/ClassesDictHistoryMapper.xml deleted file mode 100644 index d8755f6..0000000 --- a/src/main/resources/mapper/ClassesDictHistoryMapper.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, class_dict_id, school, grade, classes, session, subject_type, class_name, semester, status - - - - - diff --git a/src/main/resources/mapper/ClassesDictMapper.xml b/src/main/resources/mapper/ClassesDictMapper.xml deleted file mode 100644 index 54462bc..0000000 --- a/src/main/resources/mapper/ClassesDictMapper.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, school, grade, classes, session, subject_type, class_name, semester, status - - - - - - - - - - - - - - diff --git a/src/main/resources/mapper/ClassesUserMappingMapper.xml b/src/main/resources/mapper/ClassesUserMappingMapper.xml deleted file mode 100644 index 82b6458..0000000 --- a/src/main/resources/mapper/ClassesUserMappingMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - id, classes_id, user_id, status - - - diff --git a/src/main/resources/mapper/CourseAdministerMappingMapper.xml b/src/main/resources/mapper/CourseAdministerMappingMapper.xml deleted file mode 100644 index 26adf76..0000000 --- a/src/main/resources/mapper/CourseAdministerMappingMapper.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, course_id, administer_id - - - - - - diff --git a/src/main/resources/mapper/CourseStudentStatusHistoryMapper.xml b/src/main/resources/mapper/CourseStudentStatusHistoryMapper.xml deleted file mode 100644 index 1f7c85d..0000000 --- a/src/main/resources/mapper/CourseStudentStatusHistoryMapper.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, course_id, student_id, status - - - - - - diff --git a/src/main/resources/mapper/CourseTreeExerciseStudentResultMapper.xml b/src/main/resources/mapper/CourseTreeExerciseStudentResultMapper.xml deleted file mode 100644 index 98d1a61..0000000 --- a/src/main/resources/mapper/CourseTreeExerciseStudentResultMapper.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/resources/mapper/CourseTreeVodStudentResultMapper.xml b/src/main/resources/mapper/CourseTreeVodStudentResultMapper.xml deleted file mode 100644 index 99bc778..0000000 --- a/src/main/resources/mapper/CourseTreeVodStudentResultMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, student_id, course_tree_id - - - diff --git a/src/main/resources/mapper/CourseVodTressStudentResultMapper.xml b/src/main/resources/mapper/CourseVodTressStudentResultMapper.xml deleted file mode 100644 index 2f4b645..0000000 --- a/src/main/resources/mapper/CourseVodTressStudentResultMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, student_id, course_tree_id - - - diff --git a/src/main/resources/mapper/ExerciseCourseTreeMappingMapper.xml b/src/main/resources/mapper/ExerciseCourseTreeMappingMapper.xml deleted file mode 100644 index 522f561..0000000 --- a/src/main/resources/mapper/ExerciseCourseTreeMappingMapper.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, exercise_id, tree_id, status - - - - - - - - - diff --git a/src/main/resources/mapper/ExerciseDoneHistoryMapper.xml b/src/main/resources/mapper/ExerciseDoneHistoryMapper.xml deleted file mode 100644 index 277becd..0000000 --- a/src/main/resources/mapper/ExerciseDoneHistoryMapper.xml +++ /dev/null @@ -1,269 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, student_id, subject_id, exercise_type, exercise_id, answer, result, length - - - - - - - - - - - - - - - diff --git a/src/main/resources/mapper/ExerciseExpandMappingMapper.xml b/src/main/resources/mapper/ExerciseExpandMappingMapper.xml deleted file mode 100644 index 9be917a..0000000 --- a/src/main/resources/mapper/ExerciseExpandMappingMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, task_id, exercise_ids, student_ids, exercise_name - - - diff --git a/src/main/resources/mapper/ExerciseRelatedMappingMapper.xml b/src/main/resources/mapper/ExerciseRelatedMappingMapper.xml deleted file mode 100644 index 2aeab4a..0000000 --- a/src/main/resources/mapper/ExerciseRelatedMappingMapper.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, task_id, tree_id, exercise_ids, student_ids, exercise_name - - - diff --git a/src/main/resources/mapper/ExerciseTreeMappingMapper.xml b/src/main/resources/mapper/ExerciseTreeMappingMapper.xml deleted file mode 100644 index 80f1a17..0000000 --- a/src/main/resources/mapper/ExerciseTreeMappingMapper.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, exercise_id, tree_id - - - - - - - diff --git a/src/main/resources/mapper/ExerciseUserInfoMapper.xml b/src/main/resources/mapper/ExerciseUserInfoMapper.xml deleted file mode 100644 index 646486b..0000000 --- a/src/main/resources/mapper/ExerciseUserInfoMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - id, exercise_id, user_id, collection_status - - - diff --git a/src/main/resources/mapper/KnowledgeSubjectDictMapper.xml b/src/main/resources/mapper/KnowledgeSubjectDictMapper.xml deleted file mode 100644 index 202b1f2..0000000 --- a/src/main/resources/mapper/KnowledgeSubjectDictMapper.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, subject_name, subject_type - - - - - - - diff --git a/src/main/resources/mapper/LaboratoryAttendanceMappingMapper.xml b/src/main/resources/mapper/LaboratoryAttendanceMappingMapper.xml deleted file mode 100644 index 39f18f8..0000000 --- a/src/main/resources/mapper/LaboratoryAttendanceMappingMapper.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, user_role_id, laboratory_session_id, attendance_time, channel - - - diff --git a/src/main/resources/mapper/LaboratoryDictMapper.xml b/src/main/resources/mapper/LaboratoryDictMapper.xml deleted file mode 100644 index 8f1e882..0000000 --- a/src/main/resources/mapper/LaboratoryDictMapper.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, laboratory_name, laboratory_type, max_num - - - - - - - diff --git a/src/main/resources/mapper/LaboratoryDictMappingMapper.xml b/src/main/resources/mapper/LaboratoryDictMappingMapper.xml deleted file mode 100644 index a8f7051..0000000 --- a/src/main/resources/mapper/LaboratoryDictMappingMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, laboratory_dict_id, sessions_dict_id - - - diff --git a/src/main/resources/mapper/LaboratorySessionMappingMapper.xml b/src/main/resources/mapper/LaboratorySessionMappingMapper.xml deleted file mode 100644 index e10d743..0000000 --- a/src/main/resources/mapper/LaboratorySessionMappingMapper.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, sessions_dict_id, laboratory_dict_id, start_date, register_start_date, register_end_date, grade - - - - - - - - - - diff --git a/src/main/resources/mapper/LaboratoryUserMappingMapper.xml b/src/main/resources/mapper/LaboratoryUserMappingMapper.xml deleted file mode 100644 index de5a88e..0000000 --- a/src/main/resources/mapper/LaboratoryUserMappingMapper.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, laboratory_session_id, user_role_id - - - - - - - - - diff --git a/src/main/resources/mapper/SessionsDictMapper.xml b/src/main/resources/mapper/SessionsDictMapper.xml deleted file mode 100644 index f3cde02..0000000 --- a/src/main/resources/mapper/SessionsDictMapper.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, time_slot - - - - - - - diff --git a/src/main/resources/mapper/SmsCodeMapper.xml b/src/main/resources/mapper/SmsCodeMapper.xml deleted file mode 100644 index 22cfdf6..0000000 --- a/src/main/resources/mapper/SmsCodeMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, telephone, code - - - diff --git a/src/main/resources/mapper/SubjectDictMapper.xml b/src/main/resources/mapper/SubjectDictMapper.xml deleted file mode 100644 index 885c0c4..0000000 --- a/src/main/resources/mapper/SubjectDictMapper.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, school, grade, classes, class_name, subject, subject_en, subject_type, session, semester, status, cover_page_url, front_page_url - - - - - diff --git a/src/main/resources/mapper/SubjectDimensionDictMapper.xml b/src/main/resources/mapper/SubjectDimensionDictMapper.xml deleted file mode 100644 index a448fff..0000000 --- a/src/main/resources/mapper/SubjectDimensionDictMapper.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, subject_id, dimension, dimension_order - - - diff --git a/src/main/resources/mapper/SubjectDimensionStarDictMapper.xml b/src/main/resources/mapper/SubjectDimensionStarDictMapper.xml deleted file mode 100644 index 4c63807..0000000 --- a/src/main/resources/mapper/SubjectDimensionStarDictMapper.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, dimension_id, star, description - - - - - diff --git a/src/main/resources/mapper/SubjectRuleMapper.xml b/src/main/resources/mapper/SubjectRuleMapper.xml deleted file mode 100644 index 3d23d50..0000000 --- a/src/main/resources/mapper/SubjectRuleMapper.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, subject_id, rule_name, status - - - - - - diff --git a/src/main/resources/mapper/SubjectSemesterMapper.xml b/src/main/resources/mapper/SubjectSemesterMapper.xml deleted file mode 100644 index 9e9e21e..0000000 --- a/src/main/resources/mapper/SubjectSemesterMapper.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, subject_id, semester - - - - - - - - - - - diff --git a/src/main/resources/mapper/SubjectStarTreeMappingMapper.xml b/src/main/resources/mapper/SubjectStarTreeMappingMapper.xml deleted file mode 100644 index 3dc79f9..0000000 --- a/src/main/resources/mapper/SubjectStarTreeMappingMapper.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, subject_star_id, knowledge_tree_id - - - - - - - diff --git a/src/main/resources/mapper/SubjectStudentAnswerStarMapper.xml b/src/main/resources/mapper/SubjectStudentAnswerStarMapper.xml deleted file mode 100644 index 711b688..0000000 --- a/src/main/resources/mapper/SubjectStudentAnswerStarMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, student_id, star_id - - - diff --git a/src/main/resources/mapper/SubjectTestDictMapper.xml b/src/main/resources/mapper/SubjectTestDictMapper.xml deleted file mode 100644 index f475404..0000000 --- a/src/main/resources/mapper/SubjectTestDictMapper.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - create_date, - id, test_name, out_line, test_time - - - - - - - - diff --git a/src/main/resources/mapper/SubjectTestGradeExampleMappingMapper.xml b/src/main/resources/mapper/SubjectTestGradeExampleMappingMapper.xml deleted file mode 100644 index aa30b79..0000000 --- a/src/main/resources/mapper/SubjectTestGradeExampleMappingMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, grade_id, example_view - - - diff --git a/src/main/resources/mapper/SubjectTestGradeStarMappingMapper.xml b/src/main/resources/mapper/SubjectTestGradeStarMappingMapper.xml deleted file mode 100644 index 4e23b0b..0000000 --- a/src/main/resources/mapper/SubjectTestGradeStarMappingMapper.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, grade_id, star_id - - - - - - diff --git a/src/main/resources/mapper/SubjectTestPublishGradeMapper.xml b/src/main/resources/mapper/SubjectTestPublishGradeMapper.xml deleted file mode 100644 index 2ef7e9f..0000000 --- a/src/main/resources/mapper/SubjectTestPublishGradeMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, grade_name - - - diff --git a/src/main/resources/mapper/SubjectTestPublishHistoryMapper.xml b/src/main/resources/mapper/SubjectTestPublishHistoryMapper.xml deleted file mode 100644 index a059ee8..0000000 --- a/src/main/resources/mapper/SubjectTestPublishHistoryMapper.xml +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, rule_id, deadline, outline - - - - - - - - - - - - - - - - - diff --git a/src/main/resources/mapper/SubjectTestStudentAnswerMapper.xml b/src/main/resources/mapper/SubjectTestStudentAnswerMapper.xml deleted file mode 100644 index 005f2c4..0000000 --- a/src/main/resources/mapper/SubjectTestStudentAnswerMapper.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, student_id, publish_id, answer - - - - - diff --git a/src/main/resources/mapper/SubjectTreeMapper.xml b/src/main/resources/mapper/SubjectTreeMapper.xml deleted file mode 100644 index f790874..0000000 --- a/src/main/resources/mapper/SubjectTreeMapper.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, subject_id, chapter, tree_name, children - - - - UPDATE knowledge_tree - SET - - parent_id = #{parentId}, - update_date = now(), - - node_name = #{treeName}, - - - chapter_order = #{treeOrder}, - - - - where id = #{id} - - - - diff --git a/src/main/resources/mapper/TaskCompletionStatusMapper.xml b/src/main/resources/mapper/TaskCompletionStatusMapper.xml deleted file mode 100644 index de4043c..0000000 --- a/src/main/resources/mapper/TaskCompletionStatusMapper.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, user_id, exe_type, subject_task_id, tree_id, status - - - diff --git a/src/main/resources/mapper/TaskContentDoneInfoMapper.xml b/src/main/resources/mapper/TaskContentDoneInfoMapper.xml deleted file mode 100644 index 7551f51..0000000 --- a/src/main/resources/mapper/TaskContentDoneInfoMapper.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, task_id, content_type, content_id, user_id - - - diff --git a/src/main/resources/mapper/TaskContentMapper.xml b/src/main/resources/mapper/TaskContentMapper.xml deleted file mode 100644 index 5f5e2e9..0000000 --- a/src/main/resources/mapper/TaskContentMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - id, task_id, content_type, content_id - - - diff --git a/src/main/resources/mapper/TaskDoneHistoryMapper.xml b/src/main/resources/mapper/TaskDoneHistoryMapper.xml deleted file mode 100644 index b95dd7e..0000000 --- a/src/main/resources/mapper/TaskDoneHistoryMapper.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - create_date, - update_date, - id, task_id, user_id - - - diff --git a/src/main/resources/mapper/UserRoleCopy1Mapper.xml b/src/main/resources/mapper/UserRoleCopy1Mapper.xml deleted file mode 100644 index 6882ae7..0000000 --- a/src/main/resources/mapper/UserRoleCopy1Mapper.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, user_name, gender, session, study_code - - - diff --git a/src/main/resources/mapper/UserRoleMapper.xml b/src/main/resources/mapper/UserRoleMapper.xml deleted file mode 100644 index d3e99c4..0000000 --- a/src/main/resources/mapper/UserRoleMapper.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, user_id, user_name, gender, birthday, email, img_url, user_status, register_method, role_type, session, classes_id, phone, password, id_card, open_id - - - - - - - - - - - diff --git a/src/main/resources/mapper/UserSubjectMappingMapper.xml b/src/main/resources/mapper/UserSubjectMappingMapper.xml deleted file mode 100644 index d0619c6..0000000 --- a/src/main/resources/mapper/UserSubjectMappingMapper.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, user_id, class_type, subject_id, subject_name - - - - - diff --git a/src/main/resources/mapper/UserSubjectPermissionDictMapper.xml b/src/main/resources/mapper/UserSubjectPermissionDictMapper.xml deleted file mode 100644 index 056aca7..0000000 --- a/src/main/resources/mapper/UserSubjectPermissionDictMapper.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - create_date, - update_date, - id, user_id, subject_id - - - - - diff --git a/src/main/resources/mapper/UuidHistoryMapper.xml b/src/main/resources/mapper/UuidHistoryMapper.xml deleted file mode 100644 index e291711..0000000 --- a/src/main/resources/mapper/UuidHistoryMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, uuid - - - diff --git a/src/main/resources/mapper/VodSubjectTreeMappingMapper.xml b/src/main/resources/mapper/VodSubjectTreeMappingMapper.xml deleted file mode 100644 index e234c64..0000000 --- a/src/main/resources/mapper/VodSubjectTreeMappingMapper.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - create_date, - update_date, - delete_date, - id, vod_id, tree_id - - - - - - - diff --git a/src/main/resources/mapper/WrittenHomeworkMapper.xml b/src/main/resources/mapper/WrittenHomeworkMapper.xml deleted file mode 100644 index 2670207..0000000 --- a/src/main/resources/mapper/WrittenHomeworkMapper.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - create_date, - update_date, - id, homework_type, homework_content, advice_length, file_size, file_type, file_name - - - -- libgit2 0.25.0