├── README.md ├── image ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png └── 7.png ├── limage └── 1.png ├── pom.xml └── src ├── main ├── java │ └── com │ │ ├── SpringbootSchemaApplication.java │ │ ├── annotation │ │ ├── APPLoginUser.java │ │ ├── IgnoreAuth.java │ │ └── LoginUser.java │ │ ├── config │ │ ├── InterceptorConfig.java │ │ └── MybatisPlusConfig.java │ │ ├── controller │ │ ├── BanjiController.java │ │ ├── CommonController.java │ │ ├── ConfigController.java │ │ ├── FileController.java │ │ ├── GonggaoxinxiController.java │ │ ├── JiaoshiController.java │ │ ├── KechengleixingController.java │ │ ├── KechengpingjiaController.java │ │ ├── KechengxinxiController.java │ │ ├── KechengziyuanController.java │ │ ├── UserController.java │ │ ├── XueshengController.java │ │ ├── XueshengxuankeController.java │ │ ├── ZuoyebuzhiController.java │ │ ├── ZuoyepingfenController.java │ │ └── ZuoyetijiaoController.java │ │ ├── dao │ │ ├── BanjiDao.java │ │ ├── CommonDao.java │ │ ├── ConfigDao.java │ │ ├── GonggaoxinxiDao.java │ │ ├── JiaoshiDao.java │ │ ├── KechengleixingDao.java │ │ ├── KechengpingjiaDao.java │ │ ├── KechengxinxiDao.java │ │ ├── KechengziyuanDao.java │ │ ├── TokenDao.java │ │ ├── UserDao.java │ │ ├── XueshengDao.java │ │ ├── XueshengxuankeDao.java │ │ ├── ZuoyebuzhiDao.java │ │ ├── ZuoyepingfenDao.java │ │ └── ZuoyetijiaoDao.java │ │ ├── entity │ │ ├── BanjiEntity.java │ │ ├── ConfigEntity.java │ │ ├── EIException.java │ │ ├── GonggaoxinxiEntity.java │ │ ├── JiaoshiEntity.java │ │ ├── KechengleixingEntity.java │ │ ├── KechengpingjiaEntity.java │ │ ├── KechengxinxiEntity.java │ │ ├── KechengziyuanEntity.java │ │ ├── TokenEntity.java │ │ ├── UserEntity.java │ │ ├── XueshengEntity.java │ │ ├── XueshengxuankeEntity.java │ │ ├── ZuoyebuzhiEntity.java │ │ ├── ZuoyepingfenEntity.java │ │ ├── ZuoyetijiaoEntity.java │ │ ├── model │ │ │ ├── BanjiModel.java │ │ │ ├── GonggaoxinxiModel.java │ │ │ ├── JiaoshiModel.java │ │ │ ├── KechengleixingModel.java │ │ │ ├── KechengpingjiaModel.java │ │ │ ├── KechengxinxiModel.java │ │ │ ├── KechengziyuanModel.java │ │ │ ├── XueshengModel.java │ │ │ ├── XueshengxuankeModel.java │ │ │ ├── ZuoyebuzhiModel.java │ │ │ ├── ZuoyepingfenModel.java │ │ │ └── ZuoyetijiaoModel.java │ │ ├── view │ │ │ ├── BanjiView.java │ │ │ ├── GonggaoxinxiView.java │ │ │ ├── JiaoshiView.java │ │ │ ├── KechengleixingView.java │ │ │ ├── KechengpingjiaView.java │ │ │ ├── KechengxinxiView.java │ │ │ ├── KechengziyuanView.java │ │ │ ├── XueshengView.java │ │ │ ├── XueshengxuankeView.java │ │ │ ├── ZuoyebuzhiView.java │ │ │ ├── ZuoyepingfenView.java │ │ │ └── ZuoyetijiaoView.java │ │ └── vo │ │ │ ├── BanjiVO.java │ │ │ ├── GonggaoxinxiVO.java │ │ │ ├── JiaoshiVO.java │ │ │ ├── KechengleixingVO.java │ │ │ ├── KechengpingjiaVO.java │ │ │ ├── KechengxinxiVO.java │ │ │ ├── KechengziyuanVO.java │ │ │ ├── XueshengVO.java │ │ │ ├── XueshengxuankeVO.java │ │ │ ├── ZuoyebuzhiVO.java │ │ │ ├── ZuoyepingfenVO.java │ │ │ └── ZuoyetijiaoVO.java │ │ ├── interceptor │ │ └── AuthorizationInterceptor.java │ │ ├── service │ │ ├── BanjiService.java │ │ ├── CommonService.java │ │ ├── ConfigService.java │ │ ├── GonggaoxinxiService.java │ │ ├── JiaoshiService.java │ │ ├── KechengleixingService.java │ │ ├── KechengpingjiaService.java │ │ ├── KechengxinxiService.java │ │ ├── KechengziyuanService.java │ │ ├── TokenService.java │ │ ├── UserService.java │ │ ├── XueshengService.java │ │ ├── XueshengxuankeService.java │ │ ├── ZuoyebuzhiService.java │ │ ├── ZuoyepingfenService.java │ │ ├── ZuoyetijiaoService.java │ │ └── impl │ │ │ ├── BanjiServiceImpl.java │ │ │ ├── CommonServiceImpl.java │ │ │ ├── ConfigServiceImpl.java │ │ │ ├── GonggaoxinxiServiceImpl.java │ │ │ ├── JiaoshiServiceImpl.java │ │ │ ├── KechengleixingServiceImpl.java │ │ │ ├── KechengpingjiaServiceImpl.java │ │ │ ├── KechengxinxiServiceImpl.java │ │ │ ├── KechengziyuanServiceImpl.java │ │ │ ├── TokenServiceImpl.java │ │ │ ├── UserServiceImpl.java │ │ │ ├── XueshengServiceImpl.java │ │ │ ├── XueshengxuankeServiceImpl.java │ │ │ ├── ZuoyebuzhiServiceImpl.java │ │ │ ├── ZuoyepingfenServiceImpl.java │ │ │ └── ZuoyetijiaoServiceImpl.java │ │ └── utils │ │ ├── BaiduUtil.java │ │ ├── CommonUtil.java │ │ ├── FileUtil.java │ │ ├── HttpClientUtils.java │ │ ├── JQPageInfo.java │ │ ├── MD5Util.java │ │ ├── MPUtil.java │ │ ├── PageUtils.java │ │ ├── Query.java │ │ ├── R.java │ │ ├── SQLFilter.java │ │ ├── SpringContextUtils.java │ │ └── ValidatorUtils.java └── resources │ ├── application.yml │ └── mapper │ ├── BanjiDao.xml │ ├── CommonDao.xml │ ├── ConfigDao.xml │ ├── GonggaoxinxiDao.xml │ ├── JiaoshiDao.xml │ ├── KechengleixingDao.xml │ ├── KechengpingjiaDao.xml │ ├── KechengxinxiDao.xml │ ├── KechengziyuanDao.xml │ ├── TokenDao.xml │ ├── UserDao.xml │ ├── XueshengDao.xml │ ├── XueshengxuankeDao.xml │ ├── ZuoyebuzhiDao.xml │ ├── ZuoyepingfenDao.xml │ └── ZuoyetijiaoDao.xml └── test └── java └── com └── SpringbootSchemaApplicationTests.java /README.md: -------------------------------------------------------------------------------- 1 | 基于Springboot的课程作业管理系统(程序+论文) 2 | = 3 | ### 完整代码获取地址:从戎源码网 ([https://armycodes.com/](https://armycodes.com/)) 4 | ### 作者微信:19941326836 QQ:952045282 5 | ### 承接计算机毕业设计、Java毕业设计、Python毕业设计、深度学习、机器学习 6 | ### 选题+开题报告+任务书+程序定制+安装调试+论文+答辩ppt 一条龙服务 7 | ### 所有选题地址https://github.com/nature924/allProject 8 | 9 | 一、项目介绍 10 | --- 11 | 系统包含两种角色:用户、管理员,系统分为前台和后台两大模块,主要功能如下: 12 | ### 管理员功能模块 13 | 登录: 管理员通过用户名、密码、角色进行登录。 14 | 首页查看: 查看个人中心、公告信息、班级管理、学生管理、教师管理、课程类型、课程信息、学生选课、作业布置、作业提交、作业评分、课程评价、课程资源等信息。 15 | 学生管理: 管理员管理学生信息,包括详情查看、修改、删除。 16 | 教师管理: 管理员管理教师信息,包括详情查看、修改、删除。 17 | 课程信息管理: 查看和管理课程信息,包括课程名称、类型、班级等。 18 | 作业布置管理: 查看和管理作业布置信息,包括课程名称、学期、班级等。 19 | 作业提交管理: 查看和管理作业提交信息,包括课程名称、学期、班级等。 20 | 课程评价管理: 查看和管理课程评价信息,包括课程名称、类型、评分等。 21 | 22 | 23 | ### 教师功能模块 24 | 登录: 教师通过用户名、密码、角色进行登录。 25 | 首页查看: 查看个人中心、课程信息管理、学生选课管理、作业布置管理、作业提交管理、作业评分管理、课程评价管理、课程资源管理等内容。 26 | 作业布置管理: 管理作业布置信息,包括修改作业要求等。 27 | 作业提交管理: 管理作业提交信息,包括修改或删除作业信息。 28 | 课程评价管理: 管理课程评价信息,包括查看、修改、删除评价内容。 29 | 30 | 31 | ### 学生功能模块 32 | 登录: 学生通过用户名、密码、角色进行登录。 33 | 首页查看: 查看个人中心、公告信息、课程信息管理、学生选课管理、作业布置管理、作业提交管理、作业评分管理、课程评价管理、课程资源管理等内容。 34 | 个人信息管理: 查看和管理个人信息,包括学号、密码、姓名、性别、手机、邮箱、班级等。 35 | 课程信息管理: 查看和管理课程信息,包括课程名称、类型、班级等。 36 | 课程评价管理: 管理课程评价信息,包括查看、删除评价内容。 37 | 课程资源管理: 查看和管理课程资源信息,包括上传和删除课程附件。 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 二、项目技术 47 | --- 48 | - 编程语言:Java 49 | - 数据库:MySQL 50 | - 项目管理工具:Maven 51 | - 前端技术:VUE、HTML、Jquery、Bootstrap 52 | - 后端技术:Spring、SpringMVC、MyBatis 53 | 54 | 三、运行环境 55 | --- 56 | - 操作系统:Windows、macOS都可以 57 | - JDK版本:JDK1.8以上都可以 58 | - 开发工具:IDEA、Ecplise、Myecplise都可以 59 | - 数据库: MySQL5.7以上都可以 60 | - Tomcat:任意版本都可以 61 | - Maven:任意版本都可以 62 | 63 | 四、运行截图 64 | --- 65 | ### 论文截图: 66 | ![image/1.png](limage/1.png) 67 | 68 | ### 程序截图: 69 | ![image/1.png](image/1.png) 70 | ![image/1.png](image/2.png) 71 | ![image/1.png](image/3.png) 72 | ![image/1.png](image/4.png) 73 | ![image/1.png](image/5.png) 74 | ![image/1.png](image/6.png) 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /image/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/image/1.png -------------------------------------------------------------------------------- /image/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/image/2.png -------------------------------------------------------------------------------- /image/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/image/3.png -------------------------------------------------------------------------------- /image/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/image/4.png -------------------------------------------------------------------------------- /image/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/image/5.png -------------------------------------------------------------------------------- /image/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/image/6.png -------------------------------------------------------------------------------- /image/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/image/7.png -------------------------------------------------------------------------------- /limage/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nature924/No193Course-Assignment-Management-System/4e9948c299aeb68802c6cbac37bdca4724f188ae/limage/1.png -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.2.2.RELEASE 9 | 10 | 11 | com.jlwl 12 | 13 | springbootwwiwn 14 | 0.0.1-SNAPSHOT 15 | springboot-schema 16 | springboot学习框架 17 | 18 | 19 | 1.8 20 | 1.2.8 21 | 3.1.1 22 | 23 | 24 | 25 | 26 | org.springframework.boot 27 | spring-boot-starter-web 28 | 29 | 30 | org.mybatis.spring.boot 31 | mybatis-spring-boot-starter 32 | 2.1.1 33 | 34 | 35 | org.springframework.boot 36 | spring-boot-starter-jdbc 37 | 38 | 39 | 40 | mysql 41 | mysql-connector-java 42 | 43 | 44 | org.apache.shiro 45 | shiro-spring 46 | 1.3.2 47 | 48 | 49 | 50 | com.baomidou 51 | mybatis-plus 52 | 2.3 53 | 54 | 55 | com.baomidou 56 | mybatisplus-spring-boot-starter 57 | 1.0.5 58 | 59 | 60 | com.google.protobuf 61 | protobuf-java 62 | 3.10.0 63 | 64 | 65 | 66 | org.apache.commons 67 | commons-lang3 68 | 3.0 69 | 70 | 71 | 72 | javax.validation 73 | validation-api 74 | 2.0.1.Final 75 | 76 | 77 | 78 | commons-io 79 | commons-io 80 | 2.5 81 | 82 | 83 | 84 | 85 | cn.hutool 86 | hutool-all 87 | 4.0.12 88 | 89 | 90 | 91 | 92 | com.alibaba 93 | fastjson 94 | ${fastjson.version} 95 | 96 | 97 | 98 | com.baidu.aip 99 | java-sdk 100 | 4.4.1 101 | 102 | 103 | 104 | org.springframework.boot 105 | spring-boot-starter-test 106 | test 107 | 108 | 109 | org.junit.vintage 110 | junit-vintage-engine 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | org.springframework.boot 120 | spring-boot-maven-plugin 121 | 122 | 123 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /src/main/java/com/SpringbootSchemaApplication.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.boot.builder.SpringApplicationBuilder; 7 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; 8 | 9 | @SpringBootApplication 10 | @MapperScan(basePackages = {"com.dao"}) 11 | public class SpringbootSchemaApplication extends SpringBootServletInitializer{ 12 | 13 | public static void main(String[] args) { 14 | SpringApplication.run(SpringbootSchemaApplication.class, args); 15 | } 16 | 17 | @Override 18 | protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) { 19 | return applicationBuilder.sources(SpringbootSchemaApplication.class); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/annotation/APPLoginUser.java: -------------------------------------------------------------------------------- 1 | package com.annotation; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * 登录用户信息 10 | */ 11 | @Target(ElementType.PARAMETER) 12 | @Retention(RetentionPolicy.RUNTIME) 13 | public @interface APPLoginUser { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/annotation/IgnoreAuth.java: -------------------------------------------------------------------------------- 1 | package com.annotation; 2 | 3 | import java.lang.annotation.*; 4 | 5 | /** 6 | * 忽略Token验证 7 | */ 8 | @Target(ElementType.METHOD) 9 | @Retention(RetentionPolicy.RUNTIME) 10 | @Documented 11 | public @interface IgnoreAuth { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/annotation/LoginUser.java: -------------------------------------------------------------------------------- 1 | package com.annotation; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * 登录用户信息 10 | */ 11 | @Target(ElementType.PARAMETER) 12 | @Retention(RetentionPolicy.RUNTIME) 13 | public @interface LoginUser { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/config/InterceptorConfig.java: -------------------------------------------------------------------------------- 1 | package com.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 6 | import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; 7 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; 8 | 9 | import com.interceptor.AuthorizationInterceptor; 10 | 11 | @Configuration 12 | public class InterceptorConfig extends WebMvcConfigurationSupport{ 13 | 14 | @Bean 15 | public AuthorizationInterceptor getAuthorizationInterceptor() { 16 | return new AuthorizationInterceptor(); 17 | } 18 | 19 | @Override 20 | public void addInterceptors(InterceptorRegistry registry) { 21 | registry.addInterceptor(getAuthorizationInterceptor()).addPathPatterns("/**").excludePathPatterns("/static/**"); 22 | super.addInterceptors(registry); 23 | } 24 | 25 | /** 26 | * springboot 2.0配置WebMvcConfigurationSupport之后,会导致默认配置被覆盖,要访问静态资源需要重写addResourceHandlers方法 27 | */ 28 | @Override 29 | public void addResourceHandlers(ResourceHandlerRegistry registry) { 30 | registry.addResourceHandler("/**") 31 | .addResourceLocations("classpath:/resources/") 32 | .addResourceLocations("classpath:/static/") 33 | .addResourceLocations("classpath:/admin/") 34 | .addResourceLocations("classpath:/front/") 35 | .addResourceLocations("classpath:/public/"); 36 | super.addResourceHandlers(registry); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/config/MybatisPlusConfig.java: -------------------------------------------------------------------------------- 1 | 2 | package com.config; 3 | 4 | import org.springframework.context.annotation.Bean; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | import com.baomidou.mybatisplus.mapper.MetaObjectHandler; 8 | import com.baomidou.mybatisplus.plugins.PaginationInterceptor; 9 | 10 | /** 11 | * mybatis-plus配置 12 | */ 13 | @Configuration 14 | public class MybatisPlusConfig { 15 | 16 | /** 17 | * 分页插件 18 | */ 19 | @Bean 20 | public PaginationInterceptor paginationInterceptor() { 21 | return new PaginationInterceptor(); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/controller/ConfigController.java: -------------------------------------------------------------------------------- 1 | 2 | package com.controller; 3 | 4 | 5 | import java.util.Arrays; 6 | import java.util.Map; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.web.bind.annotation.PathVariable; 10 | import org.springframework.web.bind.annotation.PostMapping; 11 | import org.springframework.web.bind.annotation.RequestBody; 12 | import org.springframework.web.bind.annotation.RequestMapping; 13 | import org.springframework.web.bind.annotation.RequestParam; 14 | import org.springframework.web.bind.annotation.RestController; 15 | 16 | import com.annotation.IgnoreAuth; 17 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 18 | import com.entity.ConfigEntity; 19 | import com.service.ConfigService; 20 | import com.utils.PageUtils; 21 | import com.utils.R; 22 | import com.utils.ValidatorUtils; 23 | 24 | /** 25 | * 登录相关 26 | */ 27 | @RequestMapping("config") 28 | @RestController 29 | public class ConfigController{ 30 | 31 | @Autowired 32 | private ConfigService configService; 33 | 34 | /** 35 | * 列表 36 | */ 37 | @RequestMapping("/page") 38 | public R page(@RequestParam Map params,ConfigEntity config){ 39 | EntityWrapper ew = new EntityWrapper(); 40 | PageUtils page = configService.queryPage(params); 41 | return R.ok().put("data", page); 42 | } 43 | 44 | /** 45 | * 列表 46 | */ 47 | @IgnoreAuth 48 | @RequestMapping("/list") 49 | public R list(@RequestParam Map params,ConfigEntity config){ 50 | EntityWrapper ew = new EntityWrapper(); 51 | PageUtils page = configService.queryPage(params); 52 | return R.ok().put("data", page); 53 | } 54 | 55 | /** 56 | * 信息 57 | */ 58 | @RequestMapping("/info/{id}") 59 | public R info(@PathVariable("id") String id){ 60 | ConfigEntity config = configService.selectById(id); 61 | return R.ok().put("data", config); 62 | } 63 | 64 | /** 65 | * 详情 66 | */ 67 | @IgnoreAuth 68 | @RequestMapping("/detail/{id}") 69 | public R detail(@PathVariable("id") String id){ 70 | ConfigEntity config = configService.selectById(id); 71 | return R.ok().put("data", config); 72 | } 73 | 74 | /** 75 | * 根据name获取信息 76 | */ 77 | @RequestMapping("/info") 78 | public R infoByName(@RequestParam String name){ 79 | ConfigEntity config = configService.selectOne(new EntityWrapper().eq("name", "faceFile")); 80 | return R.ok().put("data", config); 81 | } 82 | 83 | /** 84 | * 保存 85 | */ 86 | @PostMapping("/save") 87 | public R save(@RequestBody ConfigEntity config){ 88 | // ValidatorUtils.validateEntity(config); 89 | configService.insert(config); 90 | return R.ok(); 91 | } 92 | 93 | /** 94 | * 修改 95 | */ 96 | @RequestMapping("/update") 97 | public R update(@RequestBody ConfigEntity config){ 98 | // ValidatorUtils.validateEntity(config); 99 | configService.updateById(config);//全部更新 100 | return R.ok(); 101 | } 102 | 103 | /** 104 | * 删除 105 | */ 106 | @RequestMapping("/delete") 107 | public R delete(@RequestBody Long[] ids){ 108 | configService.deleteBatchIds(Arrays.asList(ids)); 109 | return R.ok(); 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /src/main/java/com/controller/FileController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.io.File; 4 | import java.io.FileNotFoundException; 5 | import java.io.IOException; 6 | import java.util.Arrays; 7 | import java.util.Date; 8 | import java.util.HashMap; 9 | import java.util.List; 10 | import java.util.Map; 11 | import java.util.Random; 12 | import java.util.UUID; 13 | 14 | import org.apache.commons.io.FileUtils; 15 | import org.apache.commons.lang3.StringUtils; 16 | import org.springframework.beans.factory.annotation.Autowired; 17 | import org.springframework.http.HttpHeaders; 18 | import org.springframework.http.HttpStatus; 19 | import org.springframework.http.MediaType; 20 | import org.springframework.http.ResponseEntity; 21 | import org.springframework.util.ResourceUtils; 22 | import org.springframework.web.bind.annotation.PathVariable; 23 | import org.springframework.web.bind.annotation.RequestBody; 24 | import org.springframework.web.bind.annotation.RequestMapping; 25 | import org.springframework.web.bind.annotation.RequestParam; 26 | import org.springframework.web.bind.annotation.RestController; 27 | import org.springframework.web.multipart.MultipartFile; 28 | 29 | import com.annotation.IgnoreAuth; 30 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 31 | import com.entity.ConfigEntity; 32 | import com.entity.EIException; 33 | import com.service.ConfigService; 34 | import com.utils.R; 35 | 36 | /** 37 | * 上传文件映射表 38 | */ 39 | @RestController 40 | @RequestMapping("file") 41 | @SuppressWarnings({"unchecked","rawtypes"}) 42 | public class FileController{ 43 | @Autowired 44 | private ConfigService configService; 45 | /** 46 | * 上传文件 47 | */ 48 | @RequestMapping("/upload") 49 | public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception { 50 | if (file.isEmpty()) { 51 | throw new EIException("上传文件不能为空"); 52 | } 53 | String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1); 54 | File path = new File(ResourceUtils.getURL("classpath:static").getPath()); 55 | if(!path.exists()) { 56 | path = new File(""); 57 | } 58 | File upload = new File(path.getAbsolutePath(),"/upload/"); 59 | if(!upload.exists()) { 60 | upload.mkdirs(); 61 | } 62 | String fileName = new Date().getTime()+"."+fileExt; 63 | File dest = new File(upload.getAbsolutePath()+"/"+fileName); 64 | file.transferTo(dest); 65 | if(StringUtils.isNotBlank(type) && type.equals("1")) { 66 | ConfigEntity configEntity = configService.selectOne(new EntityWrapper().eq("name", "faceFile")); 67 | if(configEntity==null) { 68 | configEntity = new ConfigEntity(); 69 | configEntity.setName("faceFile"); 70 | configEntity.setValue(fileName); 71 | } else { 72 | configEntity.setValue(fileName); 73 | } 74 | configService.insertOrUpdate(configEntity); 75 | } 76 | return R.ok().put("file", fileName); 77 | } 78 | 79 | /** 80 | * 下载文件 81 | */ 82 | @IgnoreAuth 83 | @RequestMapping("/download") 84 | public ResponseEntity download(@RequestParam String fileName) { 85 | try { 86 | File path = new File(ResourceUtils.getURL("classpath:static").getPath()); 87 | if(!path.exists()) { 88 | path = new File(""); 89 | } 90 | File upload = new File(path.getAbsolutePath(),"/upload/"); 91 | if(!upload.exists()) { 92 | upload.mkdirs(); 93 | } 94 | File file = new File(upload.getAbsolutePath()+"/"+fileName); 95 | if(file.exists()){ 96 | /*if(!fileService.canRead(file, SessionManager.getSessionUser())){ 97 | getResponse().sendError(403); 98 | }*/ 99 | HttpHeaders headers = new HttpHeaders(); 100 | headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); 101 | headers.setContentDispositionFormData("attachment", fileName); 102 | return new ResponseEntity(FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED); 103 | } 104 | } catch (IOException e) { 105 | e.printStackTrace(); 106 | } 107 | return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR); 108 | } 109 | 110 | } 111 | -------------------------------------------------------------------------------- /src/main/java/com/dao/BanjiDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.BanjiEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.BanjiVO; 11 | import com.entity.view.BanjiView; 12 | 13 | 14 | /** 15 | * 班级 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface BanjiDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | BanjiVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | BanjiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/CommonDao.java: -------------------------------------------------------------------------------- 1 | 2 | package com.dao; 3 | 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | /** 8 | * 通用接口 9 | */ 10 | public interface CommonDao{ 11 | List getOption(Map params); 12 | 13 | Map getFollowByOption(Map params); 14 | 15 | List getFollowByOption2(Map params); 16 | 17 | void sh(Map params); 18 | 19 | int remindCount(Map params); 20 | 21 | Map selectCal(Map params); 22 | 23 | List> selectGroup(Map params); 24 | 25 | List> selectValue(Map params); 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/dao/ConfigDao.java: -------------------------------------------------------------------------------- 1 | 2 | package com.dao; 3 | 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import com.entity.ConfigEntity; 6 | 7 | /** 8 | * 配置 9 | */ 10 | public interface ConfigDao extends BaseMapper { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/dao/GonggaoxinxiDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.GonggaoxinxiEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.GonggaoxinxiVO; 11 | import com.entity.view.GonggaoxinxiView; 12 | 13 | 14 | /** 15 | * 公告信息 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface GonggaoxinxiDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | GonggaoxinxiVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | GonggaoxinxiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/JiaoshiDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.JiaoshiEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.JiaoshiVO; 11 | import com.entity.view.JiaoshiView; 12 | 13 | 14 | /** 15 | * 教师 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface JiaoshiDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | JiaoshiVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | JiaoshiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/KechengleixingDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.KechengleixingEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.KechengleixingVO; 11 | import com.entity.view.KechengleixingView; 12 | 13 | 14 | /** 15 | * 课程类型 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengleixingDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | KechengleixingVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | KechengleixingView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/KechengpingjiaDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.KechengpingjiaEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.KechengpingjiaVO; 11 | import com.entity.view.KechengpingjiaView; 12 | 13 | 14 | /** 15 | * 课程评价 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengpingjiaDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | KechengpingjiaVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | KechengpingjiaView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/KechengxinxiDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.KechengxinxiEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.KechengxinxiVO; 11 | import com.entity.view.KechengxinxiView; 12 | 13 | 14 | /** 15 | * 课程信息 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengxinxiDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | KechengxinxiVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | KechengxinxiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/KechengziyuanDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.KechengziyuanEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.KechengziyuanVO; 11 | import com.entity.view.KechengziyuanView; 12 | 13 | 14 | /** 15 | * 课程资源 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengziyuanDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | KechengziyuanVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | KechengziyuanView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/TokenDao.java: -------------------------------------------------------------------------------- 1 | 2 | package com.dao; 3 | 4 | import java.util.List; 5 | 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | import com.baomidou.mybatisplus.mapper.BaseMapper; 9 | import com.baomidou.mybatisplus.mapper.Wrapper; 10 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 11 | import com.entity.TokenEntity; 12 | 13 | /** 14 | * token 15 | */ 16 | public interface TokenDao extends BaseMapper { 17 | 18 | List selectListView(@Param("ew") Wrapper wrapper); 19 | 20 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | 2 | package com.dao; 3 | 4 | import java.util.List; 5 | 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | import com.baomidou.mybatisplus.mapper.BaseMapper; 9 | import com.baomidou.mybatisplus.mapper.Wrapper; 10 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 11 | import com.entity.UserEntity; 12 | 13 | /** 14 | * 用户 15 | */ 16 | public interface UserDao extends BaseMapper { 17 | 18 | List selectListView(@Param("ew") Wrapper wrapper); 19 | 20 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/dao/XueshengDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.XueshengEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.XueshengVO; 11 | import com.entity.view.XueshengView; 12 | 13 | 14 | /** 15 | * 学生 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface XueshengDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | XueshengVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | XueshengView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/XueshengxuankeDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.XueshengxuankeEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.XueshengxuankeVO; 11 | import com.entity.view.XueshengxuankeView; 12 | 13 | 14 | /** 15 | * 学生选课 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface XueshengxuankeDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | XueshengxuankeVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | XueshengxuankeView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/ZuoyebuzhiDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.ZuoyebuzhiEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.ZuoyebuzhiVO; 11 | import com.entity.view.ZuoyebuzhiView; 12 | 13 | 14 | /** 15 | * 作业布置 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface ZuoyebuzhiDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | ZuoyebuzhiVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | ZuoyebuzhiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/ZuoyepingfenDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.ZuoyepingfenEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.ZuoyepingfenVO; 11 | import com.entity.view.ZuoyepingfenView; 12 | 13 | 14 | /** 15 | * 作业评分 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface ZuoyepingfenDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | ZuoyepingfenVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | ZuoyepingfenView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/dao/ZuoyetijiaoDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.ZuoyetijiaoEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.ZuoyetijiaoVO; 11 | import com.entity.view.ZuoyetijiaoView; 12 | 13 | 14 | /** 15 | * 作业提交 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface ZuoyetijiaoDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | ZuoyetijiaoVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | ZuoyetijiaoView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/entity/BanjiEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import com.baomidou.mybatisplus.annotations.TableId; 4 | import com.baomidou.mybatisplus.annotations.TableName; 5 | import javax.validation.constraints.NotBlank; 6 | import javax.validation.constraints.NotEmpty; 7 | import javax.validation.constraints.NotNull; 8 | 9 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 10 | import java.lang.reflect.InvocationTargetException; 11 | 12 | import java.io.Serializable; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | import org.springframework.format.annotation.DateTimeFormat; 17 | import com.fasterxml.jackson.annotation.JsonFormat; 18 | import org.apache.commons.beanutils.BeanUtils; 19 | import com.baomidou.mybatisplus.annotations.TableField; 20 | import com.baomidou.mybatisplus.enums.FieldFill; 21 | import com.baomidou.mybatisplus.enums.IdType; 22 | 23 | 24 | /** 25 | * 班级 26 | * 数据库通用操作实体类(普通增删改查) 27 | * @author 28 | * @email 29 | * @date 2021-03-04 10:22:19 30 | */ 31 | @TableName("banji") 32 | public class BanjiEntity implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | 35 | 36 | public BanjiEntity() { 37 | 38 | } 39 | 40 | public BanjiEntity(T t) { 41 | try { 42 | BeanUtils.copyProperties(this, t); 43 | } catch (IllegalAccessException | InvocationTargetException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * 主键id 51 | */ 52 | @TableId 53 | private Long id; 54 | /** 55 | * 班级 56 | */ 57 | 58 | private String banji; 59 | 60 | 61 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 62 | @DateTimeFormat 63 | private Date addtime; 64 | 65 | public Date getAddtime() { 66 | return addtime; 67 | } 68 | public void setAddtime(Date addtime) { 69 | this.addtime = addtime; 70 | } 71 | 72 | public Long getId() { 73 | return id; 74 | } 75 | 76 | public void setId(Long id) { 77 | this.id = id; 78 | } 79 | /** 80 | * 设置:班级 81 | */ 82 | public void setBanji(String banji) { 83 | this.banji = banji; 84 | } 85 | /** 86 | * 获取:班级 87 | */ 88 | public String getBanji() { 89 | return banji; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/com/entity/ConfigEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableId; 6 | import com.baomidou.mybatisplus.annotations.TableName; 7 | import com.baomidou.mybatisplus.enums.IdType; 8 | 9 | /** 10 | * 类说明 : 11 | */ 12 | @TableName("config") 13 | public class ConfigEntity implements Serializable{ 14 | private static final long serialVersionUID = 1L; 15 | 16 | @TableId(type = IdType.AUTO) 17 | private Long id; 18 | 19 | /** 20 | * key 21 | */ 22 | private String name; 23 | 24 | /** 25 | * value 26 | */ 27 | private String value; 28 | 29 | public Long getId() { 30 | return id; 31 | } 32 | 33 | public void setId(Long id) { 34 | this.id = id; 35 | } 36 | 37 | public String getName() { 38 | return name; 39 | } 40 | 41 | public void setName(String name) { 42 | this.name = name; 43 | } 44 | 45 | public String getValue() { 46 | return value; 47 | } 48 | 49 | public void setValue(String value) { 50 | this.value = value; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/entity/EIException.java: -------------------------------------------------------------------------------- 1 | 2 | package com.entity; 3 | 4 | /** 5 | * 自定义异常 6 | */ 7 | public class EIException extends RuntimeException { 8 | private static final long serialVersionUID = 1L; 9 | 10 | private String msg; 11 | private int code = 500; 12 | 13 | public EIException(String msg) { 14 | super(msg); 15 | this.msg = msg; 16 | } 17 | 18 | public EIException(String msg, Throwable e) { 19 | super(msg, e); 20 | this.msg = msg; 21 | } 22 | 23 | public EIException(String msg, int code) { 24 | super(msg); 25 | this.msg = msg; 26 | this.code = code; 27 | } 28 | 29 | public EIException(String msg, int code, Throwable e) { 30 | super(msg, e); 31 | this.msg = msg; 32 | this.code = code; 33 | } 34 | 35 | public String getMsg() { 36 | return msg; 37 | } 38 | 39 | public void setMsg(String msg) { 40 | this.msg = msg; 41 | } 42 | 43 | public int getCode() { 44 | return code; 45 | } 46 | 47 | public void setCode(int code) { 48 | this.code = code; 49 | } 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/entity/GonggaoxinxiEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import com.baomidou.mybatisplus.annotations.TableId; 4 | import com.baomidou.mybatisplus.annotations.TableName; 5 | import javax.validation.constraints.NotBlank; 6 | import javax.validation.constraints.NotEmpty; 7 | import javax.validation.constraints.NotNull; 8 | 9 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 10 | import java.lang.reflect.InvocationTargetException; 11 | 12 | import java.io.Serializable; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | import org.springframework.format.annotation.DateTimeFormat; 17 | import com.fasterxml.jackson.annotation.JsonFormat; 18 | import org.apache.commons.beanutils.BeanUtils; 19 | import com.baomidou.mybatisplus.annotations.TableField; 20 | import com.baomidou.mybatisplus.enums.FieldFill; 21 | import com.baomidou.mybatisplus.enums.IdType; 22 | 23 | 24 | /** 25 | * 公告信息 26 | * 数据库通用操作实体类(普通增删改查) 27 | * @author 28 | * @email 29 | * @date 2021-03-04 10:22:19 30 | */ 31 | @TableName("gonggaoxinxi") 32 | public class GonggaoxinxiEntity implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | 35 | 36 | public GonggaoxinxiEntity() { 37 | 38 | } 39 | 40 | public GonggaoxinxiEntity(T t) { 41 | try { 42 | BeanUtils.copyProperties(this, t); 43 | } catch (IllegalAccessException | InvocationTargetException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * 主键id 51 | */ 52 | @TableId 53 | private Long id; 54 | /** 55 | * 公告标题 56 | */ 57 | 58 | private String gonggaobiaoti; 59 | 60 | /** 61 | * 图片 62 | */ 63 | 64 | private String tupian; 65 | 66 | /** 67 | * 内容 68 | */ 69 | 70 | private String neirong; 71 | 72 | /** 73 | * 发布日期 74 | */ 75 | 76 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd") 77 | @DateTimeFormat 78 | private Date faburiqi; 79 | 80 | 81 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 82 | @DateTimeFormat 83 | private Date addtime; 84 | 85 | public Date getAddtime() { 86 | return addtime; 87 | } 88 | public void setAddtime(Date addtime) { 89 | this.addtime = addtime; 90 | } 91 | 92 | public Long getId() { 93 | return id; 94 | } 95 | 96 | public void setId(Long id) { 97 | this.id = id; 98 | } 99 | /** 100 | * 设置:公告标题 101 | */ 102 | public void setGonggaobiaoti(String gonggaobiaoti) { 103 | this.gonggaobiaoti = gonggaobiaoti; 104 | } 105 | /** 106 | * 获取:公告标题 107 | */ 108 | public String getGonggaobiaoti() { 109 | return gonggaobiaoti; 110 | } 111 | /** 112 | * 设置:图片 113 | */ 114 | public void setTupian(String tupian) { 115 | this.tupian = tupian; 116 | } 117 | /** 118 | * 获取:图片 119 | */ 120 | public String getTupian() { 121 | return tupian; 122 | } 123 | /** 124 | * 设置:内容 125 | */ 126 | public void setNeirong(String neirong) { 127 | this.neirong = neirong; 128 | } 129 | /** 130 | * 获取:内容 131 | */ 132 | public String getNeirong() { 133 | return neirong; 134 | } 135 | /** 136 | * 设置:发布日期 137 | */ 138 | public void setFaburiqi(Date faburiqi) { 139 | this.faburiqi = faburiqi; 140 | } 141 | /** 142 | * 获取:发布日期 143 | */ 144 | public Date getFaburiqi() { 145 | return faburiqi; 146 | } 147 | 148 | } 149 | -------------------------------------------------------------------------------- /src/main/java/com/entity/KechengleixingEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import com.baomidou.mybatisplus.annotations.TableId; 4 | import com.baomidou.mybatisplus.annotations.TableName; 5 | import javax.validation.constraints.NotBlank; 6 | import javax.validation.constraints.NotEmpty; 7 | import javax.validation.constraints.NotNull; 8 | 9 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 10 | import java.lang.reflect.InvocationTargetException; 11 | 12 | import java.io.Serializable; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | import org.springframework.format.annotation.DateTimeFormat; 17 | import com.fasterxml.jackson.annotation.JsonFormat; 18 | import org.apache.commons.beanutils.BeanUtils; 19 | import com.baomidou.mybatisplus.annotations.TableField; 20 | import com.baomidou.mybatisplus.enums.FieldFill; 21 | import com.baomidou.mybatisplus.enums.IdType; 22 | 23 | 24 | /** 25 | * 课程类型 26 | * 数据库通用操作实体类(普通增删改查) 27 | * @author 28 | * @email 29 | * @date 2021-03-04 10:22:19 30 | */ 31 | @TableName("kechengleixing") 32 | public class KechengleixingEntity implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | 35 | 36 | public KechengleixingEntity() { 37 | 38 | } 39 | 40 | public KechengleixingEntity(T t) { 41 | try { 42 | BeanUtils.copyProperties(this, t); 43 | } catch (IllegalAccessException | InvocationTargetException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * 主键id 51 | */ 52 | @TableId 53 | private Long id; 54 | /** 55 | * 课程类型 56 | */ 57 | 58 | private String kechengleixing; 59 | 60 | 61 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 62 | @DateTimeFormat 63 | private Date addtime; 64 | 65 | public Date getAddtime() { 66 | return addtime; 67 | } 68 | public void setAddtime(Date addtime) { 69 | this.addtime = addtime; 70 | } 71 | 72 | public Long getId() { 73 | return id; 74 | } 75 | 76 | public void setId(Long id) { 77 | this.id = id; 78 | } 79 | /** 80 | * 设置:课程类型 81 | */ 82 | public void setKechengleixing(String kechengleixing) { 83 | this.kechengleixing = kechengleixing; 84 | } 85 | /** 86 | * 获取:课程类型 87 | */ 88 | public String getKechengleixing() { 89 | return kechengleixing; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/com/entity/TokenEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | import com.baomidou.mybatisplus.annotations.TableId; 7 | import com.baomidou.mybatisplus.annotations.TableName; 8 | import com.baomidou.mybatisplus.enums.IdType; 9 | 10 | /** 11 | * token表 12 | */ 13 | @TableName("token") 14 | public class TokenEntity implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | @TableId(type = IdType.AUTO) 18 | private Long id; 19 | 20 | /** 21 | * 用户id 22 | */ 23 | private Long userid; 24 | 25 | /** 26 | * 用户名 27 | */ 28 | private String username; 29 | 30 | /** 31 | * 表名 32 | */ 33 | private String tablename; 34 | 35 | /** 36 | * 角色 37 | */ 38 | private String role; 39 | 40 | /** 41 | * token 42 | */ 43 | private String token; 44 | 45 | /** 46 | * 过期时间 47 | */ 48 | private Date expiratedtime; 49 | 50 | /** 51 | * 新增时间 52 | */ 53 | private Date addtime; 54 | 55 | public Long getId() { 56 | return id; 57 | } 58 | 59 | public void setId(Long id) { 60 | this.id = id; 61 | } 62 | 63 | public Long getUserid() { 64 | return userid; 65 | } 66 | 67 | public void setUserid(Long userid) { 68 | this.userid = userid; 69 | } 70 | 71 | public String getRole() { 72 | return role; 73 | } 74 | 75 | public void setRole(String role) { 76 | this.role = role; 77 | } 78 | 79 | public String getToken() { 80 | return token; 81 | } 82 | 83 | public String getTablename() { 84 | return tablename; 85 | } 86 | 87 | public void setTablename(String tablename) { 88 | this.tablename = tablename; 89 | } 90 | 91 | public void setToken(String token) { 92 | this.token = token; 93 | } 94 | 95 | public Date getExpiratedtime() { 96 | return expiratedtime; 97 | } 98 | 99 | public void setExpiratedtime(Date expiratedtime) { 100 | this.expiratedtime = expiratedtime; 101 | } 102 | 103 | public Date getAddtime() { 104 | return addtime; 105 | } 106 | 107 | public void setAddtime(Date addtime) { 108 | this.addtime = addtime; 109 | } 110 | 111 | public String getUsername() { 112 | return username; 113 | } 114 | 115 | public void setUsername(String username) { 116 | this.username = username; 117 | } 118 | 119 | public TokenEntity(Long userid, String username, String tablename,String role, String token, Date expiratedtime) { 120 | super(); 121 | this.userid = userid; 122 | this.username = username; 123 | this.tablename = tablename; 124 | this.role = role; 125 | this.token = token; 126 | this.expiratedtime = expiratedtime; 127 | } 128 | 129 | public TokenEntity() { 130 | } 131 | 132 | } 133 | -------------------------------------------------------------------------------- /src/main/java/com/entity/UserEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | import com.baomidou.mybatisplus.annotations.TableId; 7 | import com.baomidou.mybatisplus.annotations.TableName; 8 | import com.baomidou.mybatisplus.enums.IdType; 9 | 10 | /** 11 | * 用户 12 | */ 13 | @TableName("users") 14 | public class UserEntity implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | @TableId(type = IdType.AUTO) 18 | private Long id; 19 | 20 | /** 21 | * 用户账号 22 | */ 23 | private String username; 24 | 25 | /** 26 | * 密码 27 | */ 28 | private String password; 29 | 30 | /** 31 | * 用户类型 32 | */ 33 | private String role; 34 | 35 | private Date addtime; 36 | 37 | public String getUsername() { 38 | return username; 39 | } 40 | 41 | public void setUsername(String username) { 42 | this.username = username; 43 | } 44 | 45 | public String getPassword() { 46 | return password; 47 | } 48 | 49 | public void setPassword(String password) { 50 | this.password = password; 51 | } 52 | 53 | public String getRole() { 54 | return role; 55 | } 56 | 57 | public void setRole(String role) { 58 | this.role = role; 59 | } 60 | 61 | public Date getAddtime() { 62 | return addtime; 63 | } 64 | 65 | public void setAddtime(Date addtime) { 66 | this.addtime = addtime; 67 | } 68 | 69 | public Long getId() { 70 | return id; 71 | } 72 | 73 | public void setId(Long id) { 74 | this.id = id; 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/BanjiModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.BanjiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 班级 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class BanjiModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/GonggaoxinxiModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.GonggaoxinxiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 公告信息 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class GonggaoxinxiModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 图片 28 | */ 29 | 30 | private String tupian; 31 | 32 | /** 33 | * 内容 34 | */ 35 | 36 | private String neirong; 37 | 38 | /** 39 | * 发布日期 40 | */ 41 | 42 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 43 | @DateTimeFormat 44 | private Date faburiqi; 45 | 46 | 47 | /** 48 | * 设置:图片 49 | */ 50 | 51 | public void setTupian(String tupian) { 52 | this.tupian = tupian; 53 | } 54 | 55 | /** 56 | * 获取:图片 57 | */ 58 | public String getTupian() { 59 | return tupian; 60 | } 61 | 62 | 63 | /** 64 | * 设置:内容 65 | */ 66 | 67 | public void setNeirong(String neirong) { 68 | this.neirong = neirong; 69 | } 70 | 71 | /** 72 | * 获取:内容 73 | */ 74 | public String getNeirong() { 75 | return neirong; 76 | } 77 | 78 | 79 | /** 80 | * 设置:发布日期 81 | */ 82 | 83 | public void setFaburiqi(Date faburiqi) { 84 | this.faburiqi = faburiqi; 85 | } 86 | 87 | /** 88 | * 获取:发布日期 89 | */ 90 | public Date getFaburiqi() { 91 | return faburiqi; 92 | } 93 | 94 | } 95 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/JiaoshiModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.JiaoshiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 教师 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class JiaoshiModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 密码 28 | */ 29 | 30 | private String mima; 31 | 32 | /** 33 | * 教师姓名 34 | */ 35 | 36 | private String jiaoshixingming; 37 | 38 | /** 39 | * 性别 40 | */ 41 | 42 | private String xingbie; 43 | 44 | /** 45 | * 照片 46 | */ 47 | 48 | private String zhaopian; 49 | 50 | /** 51 | * 职称 52 | */ 53 | 54 | private String zhicheng; 55 | 56 | /** 57 | * 任教课程 58 | */ 59 | 60 | private String renjiaokecheng; 61 | 62 | /** 63 | * 联系电话 64 | */ 65 | 66 | private String lianxidianhua; 67 | 68 | 69 | /** 70 | * 设置:密码 71 | */ 72 | 73 | public void setMima(String mima) { 74 | this.mima = mima; 75 | } 76 | 77 | /** 78 | * 获取:密码 79 | */ 80 | public String getMima() { 81 | return mima; 82 | } 83 | 84 | 85 | /** 86 | * 设置:教师姓名 87 | */ 88 | 89 | public void setJiaoshixingming(String jiaoshixingming) { 90 | this.jiaoshixingming = jiaoshixingming; 91 | } 92 | 93 | /** 94 | * 获取:教师姓名 95 | */ 96 | public String getJiaoshixingming() { 97 | return jiaoshixingming; 98 | } 99 | 100 | 101 | /** 102 | * 设置:性别 103 | */ 104 | 105 | public void setXingbie(String xingbie) { 106 | this.xingbie = xingbie; 107 | } 108 | 109 | /** 110 | * 获取:性别 111 | */ 112 | public String getXingbie() { 113 | return xingbie; 114 | } 115 | 116 | 117 | /** 118 | * 设置:照片 119 | */ 120 | 121 | public void setZhaopian(String zhaopian) { 122 | this.zhaopian = zhaopian; 123 | } 124 | 125 | /** 126 | * 获取:照片 127 | */ 128 | public String getZhaopian() { 129 | return zhaopian; 130 | } 131 | 132 | 133 | /** 134 | * 设置:职称 135 | */ 136 | 137 | public void setZhicheng(String zhicheng) { 138 | this.zhicheng = zhicheng; 139 | } 140 | 141 | /** 142 | * 获取:职称 143 | */ 144 | public String getZhicheng() { 145 | return zhicheng; 146 | } 147 | 148 | 149 | /** 150 | * 设置:任教课程 151 | */ 152 | 153 | public void setRenjiaokecheng(String renjiaokecheng) { 154 | this.renjiaokecheng = renjiaokecheng; 155 | } 156 | 157 | /** 158 | * 获取:任教课程 159 | */ 160 | public String getRenjiaokecheng() { 161 | return renjiaokecheng; 162 | } 163 | 164 | 165 | /** 166 | * 设置:联系电话 167 | */ 168 | 169 | public void setLianxidianhua(String lianxidianhua) { 170 | this.lianxidianhua = lianxidianhua; 171 | } 172 | 173 | /** 174 | * 获取:联系电话 175 | */ 176 | public String getLianxidianhua() { 177 | return lianxidianhua; 178 | } 179 | 180 | } 181 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/KechengleixingModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.KechengleixingEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 课程类型 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class KechengleixingModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/KechengxinxiModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.KechengxinxiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 课程信息 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class KechengxinxiModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 课程类型 28 | */ 29 | 30 | private String kechengleixing; 31 | 32 | /** 33 | * 班级 34 | */ 35 | 36 | private String banji; 37 | 38 | /** 39 | * 学期 40 | */ 41 | 42 | private String xueqi; 43 | 44 | /** 45 | * 星期 46 | */ 47 | 48 | private String xingqi; 49 | 50 | /** 51 | * 上课时间 52 | */ 53 | 54 | private String shangkeshijian; 55 | 56 | /** 57 | * 教师工号 58 | */ 59 | 60 | private String jiaoshigonghao; 61 | 62 | /** 63 | * 教师姓名 64 | */ 65 | 66 | private String jiaoshixingming; 67 | 68 | 69 | /** 70 | * 设置:课程类型 71 | */ 72 | 73 | public void setKechengleixing(String kechengleixing) { 74 | this.kechengleixing = kechengleixing; 75 | } 76 | 77 | /** 78 | * 获取:课程类型 79 | */ 80 | public String getKechengleixing() { 81 | return kechengleixing; 82 | } 83 | 84 | 85 | /** 86 | * 设置:班级 87 | */ 88 | 89 | public void setBanji(String banji) { 90 | this.banji = banji; 91 | } 92 | 93 | /** 94 | * 获取:班级 95 | */ 96 | public String getBanji() { 97 | return banji; 98 | } 99 | 100 | 101 | /** 102 | * 设置:学期 103 | */ 104 | 105 | public void setXueqi(String xueqi) { 106 | this.xueqi = xueqi; 107 | } 108 | 109 | /** 110 | * 获取:学期 111 | */ 112 | public String getXueqi() { 113 | return xueqi; 114 | } 115 | 116 | 117 | /** 118 | * 设置:星期 119 | */ 120 | 121 | public void setXingqi(String xingqi) { 122 | this.xingqi = xingqi; 123 | } 124 | 125 | /** 126 | * 获取:星期 127 | */ 128 | public String getXingqi() { 129 | return xingqi; 130 | } 131 | 132 | 133 | /** 134 | * 设置:上课时间 135 | */ 136 | 137 | public void setShangkeshijian(String shangkeshijian) { 138 | this.shangkeshijian = shangkeshijian; 139 | } 140 | 141 | /** 142 | * 获取:上课时间 143 | */ 144 | public String getShangkeshijian() { 145 | return shangkeshijian; 146 | } 147 | 148 | 149 | /** 150 | * 设置:教师工号 151 | */ 152 | 153 | public void setJiaoshigonghao(String jiaoshigonghao) { 154 | this.jiaoshigonghao = jiaoshigonghao; 155 | } 156 | 157 | /** 158 | * 获取:教师工号 159 | */ 160 | public String getJiaoshigonghao() { 161 | return jiaoshigonghao; 162 | } 163 | 164 | 165 | /** 166 | * 设置:教师姓名 167 | */ 168 | 169 | public void setJiaoshixingming(String jiaoshixingming) { 170 | this.jiaoshixingming = jiaoshixingming; 171 | } 172 | 173 | /** 174 | * 获取:教师姓名 175 | */ 176 | public String getJiaoshixingming() { 177 | return jiaoshixingming; 178 | } 179 | 180 | } 181 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/KechengziyuanModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.KechengziyuanEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 课程资源 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class KechengziyuanModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 学期 28 | */ 29 | 30 | private String xueqi; 31 | 32 | /** 33 | * 课程资料 34 | */ 35 | 36 | private String kechengziliao; 37 | 38 | /** 39 | * 附件 40 | */ 41 | 42 | private String fujian; 43 | 44 | /** 45 | * 上传日期 46 | */ 47 | 48 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 49 | @DateTimeFormat 50 | private Date shangchuanriqi; 51 | 52 | /** 53 | * 教师工号 54 | */ 55 | 56 | private String jiaoshigonghao; 57 | 58 | /** 59 | * 教师姓名 60 | */ 61 | 62 | private String jiaoshixingming; 63 | 64 | /** 65 | * 学号 66 | */ 67 | 68 | private String xuehao; 69 | 70 | /** 71 | * 学生姓名 72 | */ 73 | 74 | private String xueshengxingming; 75 | 76 | 77 | /** 78 | * 设置:学期 79 | */ 80 | 81 | public void setXueqi(String xueqi) { 82 | this.xueqi = xueqi; 83 | } 84 | 85 | /** 86 | * 获取:学期 87 | */ 88 | public String getXueqi() { 89 | return xueqi; 90 | } 91 | 92 | 93 | /** 94 | * 设置:课程资料 95 | */ 96 | 97 | public void setKechengziliao(String kechengziliao) { 98 | this.kechengziliao = kechengziliao; 99 | } 100 | 101 | /** 102 | * 获取:课程资料 103 | */ 104 | public String getKechengziliao() { 105 | return kechengziliao; 106 | } 107 | 108 | 109 | /** 110 | * 设置:附件 111 | */ 112 | 113 | public void setFujian(String fujian) { 114 | this.fujian = fujian; 115 | } 116 | 117 | /** 118 | * 获取:附件 119 | */ 120 | public String getFujian() { 121 | return fujian; 122 | } 123 | 124 | 125 | /** 126 | * 设置:上传日期 127 | */ 128 | 129 | public void setShangchuanriqi(Date shangchuanriqi) { 130 | this.shangchuanriqi = shangchuanriqi; 131 | } 132 | 133 | /** 134 | * 获取:上传日期 135 | */ 136 | public Date getShangchuanriqi() { 137 | return shangchuanriqi; 138 | } 139 | 140 | 141 | /** 142 | * 设置:教师工号 143 | */ 144 | 145 | public void setJiaoshigonghao(String jiaoshigonghao) { 146 | this.jiaoshigonghao = jiaoshigonghao; 147 | } 148 | 149 | /** 150 | * 获取:教师工号 151 | */ 152 | public String getJiaoshigonghao() { 153 | return jiaoshigonghao; 154 | } 155 | 156 | 157 | /** 158 | * 设置:教师姓名 159 | */ 160 | 161 | public void setJiaoshixingming(String jiaoshixingming) { 162 | this.jiaoshixingming = jiaoshixingming; 163 | } 164 | 165 | /** 166 | * 获取:教师姓名 167 | */ 168 | public String getJiaoshixingming() { 169 | return jiaoshixingming; 170 | } 171 | 172 | 173 | /** 174 | * 设置:学号 175 | */ 176 | 177 | public void setXuehao(String xuehao) { 178 | this.xuehao = xuehao; 179 | } 180 | 181 | /** 182 | * 获取:学号 183 | */ 184 | public String getXuehao() { 185 | return xuehao; 186 | } 187 | 188 | 189 | /** 190 | * 设置:学生姓名 191 | */ 192 | 193 | public void setXueshengxingming(String xueshengxingming) { 194 | this.xueshengxingming = xueshengxingming; 195 | } 196 | 197 | /** 198 | * 获取:学生姓名 199 | */ 200 | public String getXueshengxingming() { 201 | return xueshengxingming; 202 | } 203 | 204 | } 205 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/XueshengModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.XueshengEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 学生 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class XueshengModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 密码 28 | */ 29 | 30 | private String mima; 31 | 32 | /** 33 | * 学生姓名 34 | */ 35 | 36 | private String xueshengxingming; 37 | 38 | /** 39 | * 性别 40 | */ 41 | 42 | private String xingbie; 43 | 44 | /** 45 | * 头像 46 | */ 47 | 48 | private String touxiang; 49 | 50 | /** 51 | * 手机 52 | */ 53 | 54 | private String shouji; 55 | 56 | /** 57 | * 邮箱 58 | */ 59 | 60 | private String youxiang; 61 | 62 | /** 63 | * 班级 64 | */ 65 | 66 | private String banji; 67 | 68 | 69 | /** 70 | * 设置:密码 71 | */ 72 | 73 | public void setMima(String mima) { 74 | this.mima = mima; 75 | } 76 | 77 | /** 78 | * 获取:密码 79 | */ 80 | public String getMima() { 81 | return mima; 82 | } 83 | 84 | 85 | /** 86 | * 设置:学生姓名 87 | */ 88 | 89 | public void setXueshengxingming(String xueshengxingming) { 90 | this.xueshengxingming = xueshengxingming; 91 | } 92 | 93 | /** 94 | * 获取:学生姓名 95 | */ 96 | public String getXueshengxingming() { 97 | return xueshengxingming; 98 | } 99 | 100 | 101 | /** 102 | * 设置:性别 103 | */ 104 | 105 | public void setXingbie(String xingbie) { 106 | this.xingbie = xingbie; 107 | } 108 | 109 | /** 110 | * 获取:性别 111 | */ 112 | public String getXingbie() { 113 | return xingbie; 114 | } 115 | 116 | 117 | /** 118 | * 设置:头像 119 | */ 120 | 121 | public void setTouxiang(String touxiang) { 122 | this.touxiang = touxiang; 123 | } 124 | 125 | /** 126 | * 获取:头像 127 | */ 128 | public String getTouxiang() { 129 | return touxiang; 130 | } 131 | 132 | 133 | /** 134 | * 设置:手机 135 | */ 136 | 137 | public void setShouji(String shouji) { 138 | this.shouji = shouji; 139 | } 140 | 141 | /** 142 | * 获取:手机 143 | */ 144 | public String getShouji() { 145 | return shouji; 146 | } 147 | 148 | 149 | /** 150 | * 设置:邮箱 151 | */ 152 | 153 | public void setYouxiang(String youxiang) { 154 | this.youxiang = youxiang; 155 | } 156 | 157 | /** 158 | * 获取:邮箱 159 | */ 160 | public String getYouxiang() { 161 | return youxiang; 162 | } 163 | 164 | 165 | /** 166 | * 设置:班级 167 | */ 168 | 169 | public void setBanji(String banji) { 170 | this.banji = banji; 171 | } 172 | 173 | /** 174 | * 获取:班级 175 | */ 176 | public String getBanji() { 177 | return banji; 178 | } 179 | 180 | } 181 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/XueshengxuankeModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.XueshengxuankeEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 学生选课 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class XueshengxuankeModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 课程类型 28 | */ 29 | 30 | private String kechengleixing; 31 | 32 | /** 33 | * 学期 34 | */ 35 | 36 | private String xueqi; 37 | 38 | /** 39 | * 班级 40 | */ 41 | 42 | private String banji; 43 | 44 | /** 45 | * 选课日期 46 | */ 47 | 48 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 49 | @DateTimeFormat 50 | private Date xuankeriqi; 51 | 52 | /** 53 | * 教师工号 54 | */ 55 | 56 | private String jiaoshigonghao; 57 | 58 | /** 59 | * 教师姓名 60 | */ 61 | 62 | private String jiaoshixingming; 63 | 64 | /** 65 | * 学号 66 | */ 67 | 68 | private String xuehao; 69 | 70 | /** 71 | * 学生姓名 72 | */ 73 | 74 | private String xueshengxingming; 75 | 76 | /** 77 | * 备注 78 | */ 79 | 80 | private String beizhu; 81 | 82 | 83 | /** 84 | * 设置:课程类型 85 | */ 86 | 87 | public void setKechengleixing(String kechengleixing) { 88 | this.kechengleixing = kechengleixing; 89 | } 90 | 91 | /** 92 | * 获取:课程类型 93 | */ 94 | public String getKechengleixing() { 95 | return kechengleixing; 96 | } 97 | 98 | 99 | /** 100 | * 设置:学期 101 | */ 102 | 103 | public void setXueqi(String xueqi) { 104 | this.xueqi = xueqi; 105 | } 106 | 107 | /** 108 | * 获取:学期 109 | */ 110 | public String getXueqi() { 111 | return xueqi; 112 | } 113 | 114 | 115 | /** 116 | * 设置:班级 117 | */ 118 | 119 | public void setBanji(String banji) { 120 | this.banji = banji; 121 | } 122 | 123 | /** 124 | * 获取:班级 125 | */ 126 | public String getBanji() { 127 | return banji; 128 | } 129 | 130 | 131 | /** 132 | * 设置:选课日期 133 | */ 134 | 135 | public void setXuankeriqi(Date xuankeriqi) { 136 | this.xuankeriqi = xuankeriqi; 137 | } 138 | 139 | /** 140 | * 获取:选课日期 141 | */ 142 | public Date getXuankeriqi() { 143 | return xuankeriqi; 144 | } 145 | 146 | 147 | /** 148 | * 设置:教师工号 149 | */ 150 | 151 | public void setJiaoshigonghao(String jiaoshigonghao) { 152 | this.jiaoshigonghao = jiaoshigonghao; 153 | } 154 | 155 | /** 156 | * 获取:教师工号 157 | */ 158 | public String getJiaoshigonghao() { 159 | return jiaoshigonghao; 160 | } 161 | 162 | 163 | /** 164 | * 设置:教师姓名 165 | */ 166 | 167 | public void setJiaoshixingming(String jiaoshixingming) { 168 | this.jiaoshixingming = jiaoshixingming; 169 | } 170 | 171 | /** 172 | * 获取:教师姓名 173 | */ 174 | public String getJiaoshixingming() { 175 | return jiaoshixingming; 176 | } 177 | 178 | 179 | /** 180 | * 设置:学号 181 | */ 182 | 183 | public void setXuehao(String xuehao) { 184 | this.xuehao = xuehao; 185 | } 186 | 187 | /** 188 | * 获取:学号 189 | */ 190 | public String getXuehao() { 191 | return xuehao; 192 | } 193 | 194 | 195 | /** 196 | * 设置:学生姓名 197 | */ 198 | 199 | public void setXueshengxingming(String xueshengxingming) { 200 | this.xueshengxingming = xueshengxingming; 201 | } 202 | 203 | /** 204 | * 获取:学生姓名 205 | */ 206 | public String getXueshengxingming() { 207 | return xueshengxingming; 208 | } 209 | 210 | 211 | /** 212 | * 设置:备注 213 | */ 214 | 215 | public void setBeizhu(String beizhu) { 216 | this.beizhu = beizhu; 217 | } 218 | 219 | /** 220 | * 获取:备注 221 | */ 222 | public String getBeizhu() { 223 | return beizhu; 224 | } 225 | 226 | } 227 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/ZuoyebuzhiModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.ZuoyebuzhiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 作业布置 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class ZuoyebuzhiModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 学期 28 | */ 29 | 30 | private String xueqi; 31 | 32 | /** 33 | * 班级 34 | */ 35 | 36 | private String banji; 37 | 38 | /** 39 | * 作业要求 40 | */ 41 | 42 | private String zuoyeyaoqiu; 43 | 44 | /** 45 | * 发布日期 46 | */ 47 | 48 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 49 | @DateTimeFormat 50 | private Date faburiqi; 51 | 52 | /** 53 | * 教师工号 54 | */ 55 | 56 | private String jiaoshigonghao; 57 | 58 | /** 59 | * 教师姓名 60 | */ 61 | 62 | private String jiaoshixingming; 63 | 64 | /** 65 | * 学号 66 | */ 67 | 68 | private String xuehao; 69 | 70 | /** 71 | * 学生姓名 72 | */ 73 | 74 | private String xueshengxingming; 75 | 76 | 77 | /** 78 | * 设置:学期 79 | */ 80 | 81 | public void setXueqi(String xueqi) { 82 | this.xueqi = xueqi; 83 | } 84 | 85 | /** 86 | * 获取:学期 87 | */ 88 | public String getXueqi() { 89 | return xueqi; 90 | } 91 | 92 | 93 | /** 94 | * 设置:班级 95 | */ 96 | 97 | public void setBanji(String banji) { 98 | this.banji = banji; 99 | } 100 | 101 | /** 102 | * 获取:班级 103 | */ 104 | public String getBanji() { 105 | return banji; 106 | } 107 | 108 | 109 | /** 110 | * 设置:作业要求 111 | */ 112 | 113 | public void setZuoyeyaoqiu(String zuoyeyaoqiu) { 114 | this.zuoyeyaoqiu = zuoyeyaoqiu; 115 | } 116 | 117 | /** 118 | * 获取:作业要求 119 | */ 120 | public String getZuoyeyaoqiu() { 121 | return zuoyeyaoqiu; 122 | } 123 | 124 | 125 | /** 126 | * 设置:发布日期 127 | */ 128 | 129 | public void setFaburiqi(Date faburiqi) { 130 | this.faburiqi = faburiqi; 131 | } 132 | 133 | /** 134 | * 获取:发布日期 135 | */ 136 | public Date getFaburiqi() { 137 | return faburiqi; 138 | } 139 | 140 | 141 | /** 142 | * 设置:教师工号 143 | */ 144 | 145 | public void setJiaoshigonghao(String jiaoshigonghao) { 146 | this.jiaoshigonghao = jiaoshigonghao; 147 | } 148 | 149 | /** 150 | * 获取:教师工号 151 | */ 152 | public String getJiaoshigonghao() { 153 | return jiaoshigonghao; 154 | } 155 | 156 | 157 | /** 158 | * 设置:教师姓名 159 | */ 160 | 161 | public void setJiaoshixingming(String jiaoshixingming) { 162 | this.jiaoshixingming = jiaoshixingming; 163 | } 164 | 165 | /** 166 | * 获取:教师姓名 167 | */ 168 | public String getJiaoshixingming() { 169 | return jiaoshixingming; 170 | } 171 | 172 | 173 | /** 174 | * 设置:学号 175 | */ 176 | 177 | public void setXuehao(String xuehao) { 178 | this.xuehao = xuehao; 179 | } 180 | 181 | /** 182 | * 获取:学号 183 | */ 184 | public String getXuehao() { 185 | return xuehao; 186 | } 187 | 188 | 189 | /** 190 | * 设置:学生姓名 191 | */ 192 | 193 | public void setXueshengxingming(String xueshengxingming) { 194 | this.xueshengxingming = xueshengxingming; 195 | } 196 | 197 | /** 198 | * 获取:学生姓名 199 | */ 200 | public String getXueshengxingming() { 201 | return xueshengxingming; 202 | } 203 | 204 | } 205 | -------------------------------------------------------------------------------- /src/main/java/com/entity/model/ZuoyetijiaoModel.java: -------------------------------------------------------------------------------- 1 | package com.entity.model; 2 | 3 | import com.entity.ZuoyetijiaoEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 作业提交 15 | * 接收传参的实体类 16 | *(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了) 17 | * 取自ModelAndView 的model名称 18 | * @author 19 | * @email 20 | * @date 2021-03-04 10:22:19 21 | */ 22 | public class ZuoyetijiaoModel implements Serializable { 23 | private static final long serialVersionUID = 1L; 24 | 25 | 26 | /** 27 | * 学期 28 | */ 29 | 30 | private String xueqi; 31 | 32 | /** 33 | * 班级 34 | */ 35 | 36 | private String banji; 37 | 38 | /** 39 | * 作业 40 | */ 41 | 42 | private String zuoye; 43 | 44 | /** 45 | * 提交日期 46 | */ 47 | 48 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 49 | @DateTimeFormat 50 | private Date tijiaoriqi; 51 | 52 | /** 53 | * 教师工号 54 | */ 55 | 56 | private String jiaoshigonghao; 57 | 58 | /** 59 | * 教师姓名 60 | */ 61 | 62 | private String jiaoshixingming; 63 | 64 | /** 65 | * 学号 66 | */ 67 | 68 | private String xuehao; 69 | 70 | /** 71 | * 学生姓名 72 | */ 73 | 74 | private String xueshengxingming; 75 | 76 | /** 77 | * 是否审核 78 | */ 79 | 80 | private String sfsh; 81 | 82 | /** 83 | * 审核回复 84 | */ 85 | 86 | private String shhf; 87 | 88 | 89 | /** 90 | * 设置:学期 91 | */ 92 | 93 | public void setXueqi(String xueqi) { 94 | this.xueqi = xueqi; 95 | } 96 | 97 | /** 98 | * 获取:学期 99 | */ 100 | public String getXueqi() { 101 | return xueqi; 102 | } 103 | 104 | 105 | /** 106 | * 设置:班级 107 | */ 108 | 109 | public void setBanji(String banji) { 110 | this.banji = banji; 111 | } 112 | 113 | /** 114 | * 获取:班级 115 | */ 116 | public String getBanji() { 117 | return banji; 118 | } 119 | 120 | 121 | /** 122 | * 设置:作业 123 | */ 124 | 125 | public void setZuoye(String zuoye) { 126 | this.zuoye = zuoye; 127 | } 128 | 129 | /** 130 | * 获取:作业 131 | */ 132 | public String getZuoye() { 133 | return zuoye; 134 | } 135 | 136 | 137 | /** 138 | * 设置:提交日期 139 | */ 140 | 141 | public void setTijiaoriqi(Date tijiaoriqi) { 142 | this.tijiaoriqi = tijiaoriqi; 143 | } 144 | 145 | /** 146 | * 获取:提交日期 147 | */ 148 | public Date getTijiaoriqi() { 149 | return tijiaoriqi; 150 | } 151 | 152 | 153 | /** 154 | * 设置:教师工号 155 | */ 156 | 157 | public void setJiaoshigonghao(String jiaoshigonghao) { 158 | this.jiaoshigonghao = jiaoshigonghao; 159 | } 160 | 161 | /** 162 | * 获取:教师工号 163 | */ 164 | public String getJiaoshigonghao() { 165 | return jiaoshigonghao; 166 | } 167 | 168 | 169 | /** 170 | * 设置:教师姓名 171 | */ 172 | 173 | public void setJiaoshixingming(String jiaoshixingming) { 174 | this.jiaoshixingming = jiaoshixingming; 175 | } 176 | 177 | /** 178 | * 获取:教师姓名 179 | */ 180 | public String getJiaoshixingming() { 181 | return jiaoshixingming; 182 | } 183 | 184 | 185 | /** 186 | * 设置:学号 187 | */ 188 | 189 | public void setXuehao(String xuehao) { 190 | this.xuehao = xuehao; 191 | } 192 | 193 | /** 194 | * 获取:学号 195 | */ 196 | public String getXuehao() { 197 | return xuehao; 198 | } 199 | 200 | 201 | /** 202 | * 设置:学生姓名 203 | */ 204 | 205 | public void setXueshengxingming(String xueshengxingming) { 206 | this.xueshengxingming = xueshengxingming; 207 | } 208 | 209 | /** 210 | * 获取:学生姓名 211 | */ 212 | public String getXueshengxingming() { 213 | return xueshengxingming; 214 | } 215 | 216 | 217 | /** 218 | * 设置:是否审核 219 | */ 220 | 221 | public void setSfsh(String sfsh) { 222 | this.sfsh = sfsh; 223 | } 224 | 225 | /** 226 | * 获取:是否审核 227 | */ 228 | public String getSfsh() { 229 | return sfsh; 230 | } 231 | 232 | 233 | /** 234 | * 设置:审核回复 235 | */ 236 | 237 | public void setShhf(String shhf) { 238 | this.shhf = shhf; 239 | } 240 | 241 | /** 242 | * 获取:审核回复 243 | */ 244 | public String getShhf() { 245 | return shhf; 246 | } 247 | 248 | } 249 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/BanjiView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.BanjiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 班级 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("banji") 21 | public class BanjiView extends BanjiEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public BanjiView(){ 25 | } 26 | 27 | public BanjiView(BanjiEntity banjiEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, banjiEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/GonggaoxinxiView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.GonggaoxinxiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 公告信息 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("gonggaoxinxi") 21 | public class GonggaoxinxiView extends GonggaoxinxiEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public GonggaoxinxiView(){ 25 | } 26 | 27 | public GonggaoxinxiView(GonggaoxinxiEntity gonggaoxinxiEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, gonggaoxinxiEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/JiaoshiView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.JiaoshiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 教师 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("jiaoshi") 21 | public class JiaoshiView extends JiaoshiEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public JiaoshiView(){ 25 | } 26 | 27 | public JiaoshiView(JiaoshiEntity jiaoshiEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, jiaoshiEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/KechengleixingView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.KechengleixingEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 课程类型 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("kechengleixing") 21 | public class KechengleixingView extends KechengleixingEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public KechengleixingView(){ 25 | } 26 | 27 | public KechengleixingView(KechengleixingEntity kechengleixingEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, kechengleixingEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/KechengpingjiaView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.KechengpingjiaEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 课程评价 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("kechengpingjia") 21 | public class KechengpingjiaView extends KechengpingjiaEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public KechengpingjiaView(){ 25 | } 26 | 27 | public KechengpingjiaView(KechengpingjiaEntity kechengpingjiaEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, kechengpingjiaEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/KechengxinxiView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.KechengxinxiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 课程信息 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("kechengxinxi") 21 | public class KechengxinxiView extends KechengxinxiEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public KechengxinxiView(){ 25 | } 26 | 27 | public KechengxinxiView(KechengxinxiEntity kechengxinxiEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, kechengxinxiEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/KechengziyuanView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.KechengziyuanEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 课程资源 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("kechengziyuan") 21 | public class KechengziyuanView extends KechengziyuanEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public KechengziyuanView(){ 25 | } 26 | 27 | public KechengziyuanView(KechengziyuanEntity kechengziyuanEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, kechengziyuanEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/XueshengView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.XueshengEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 学生 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("xuesheng") 21 | public class XueshengView extends XueshengEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public XueshengView(){ 25 | } 26 | 27 | public XueshengView(XueshengEntity xueshengEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, xueshengEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/XueshengxuankeView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.XueshengxuankeEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 学生选课 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("xueshengxuanke") 21 | public class XueshengxuankeView extends XueshengxuankeEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public XueshengxuankeView(){ 25 | } 26 | 27 | public XueshengxuankeView(XueshengxuankeEntity xueshengxuankeEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, xueshengxuankeEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/ZuoyebuzhiView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.ZuoyebuzhiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 作业布置 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("zuoyebuzhi") 21 | public class ZuoyebuzhiView extends ZuoyebuzhiEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public ZuoyebuzhiView(){ 25 | } 26 | 27 | public ZuoyebuzhiView(ZuoyebuzhiEntity zuoyebuzhiEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, zuoyebuzhiEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/ZuoyepingfenView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.ZuoyepingfenEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 作业评分 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("zuoyepingfen") 21 | public class ZuoyepingfenView extends ZuoyepingfenEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public ZuoyepingfenView(){ 25 | } 26 | 27 | public ZuoyepingfenView(ZuoyepingfenEntity zuoyepingfenEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, zuoyepingfenEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/view/ZuoyetijiaoView.java: -------------------------------------------------------------------------------- 1 | package com.entity.view; 2 | 3 | import com.entity.ZuoyetijiaoEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import org.apache.commons.beanutils.BeanUtils; 7 | import java.lang.reflect.InvocationTargetException; 8 | 9 | import java.io.Serializable; 10 | 11 | 12 | /** 13 | * 作业提交 14 | * 后端返回视图实体辅助类 15 | * (通常后端关联的表或者自定义的字段需要返回使用) 16 | * @author 17 | * @email 18 | * @date 2021-03-04 10:22:19 19 | */ 20 | @TableName("zuoyetijiao") 21 | public class ZuoyetijiaoView extends ZuoyetijiaoEntity implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public ZuoyetijiaoView(){ 25 | } 26 | 27 | public ZuoyetijiaoView(ZuoyetijiaoEntity zuoyetijiaoEntity){ 28 | try { 29 | BeanUtils.copyProperties(this, zuoyetijiaoEntity); 30 | } catch (IllegalAccessException | InvocationTargetException e) { 31 | // TODO Auto-generated catch block 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/BanjiVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.BanjiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 班级 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class BanjiVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/GonggaoxinxiVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.GonggaoxinxiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 公告信息 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class GonggaoxinxiVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 图片 27 | */ 28 | 29 | private String tupian; 30 | 31 | /** 32 | * 内容 33 | */ 34 | 35 | private String neirong; 36 | 37 | /** 38 | * 发布日期 39 | */ 40 | 41 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 42 | @DateTimeFormat 43 | private Date faburiqi; 44 | 45 | 46 | /** 47 | * 设置:图片 48 | */ 49 | 50 | public void setTupian(String tupian) { 51 | this.tupian = tupian; 52 | } 53 | 54 | /** 55 | * 获取:图片 56 | */ 57 | public String getTupian() { 58 | return tupian; 59 | } 60 | 61 | 62 | /** 63 | * 设置:内容 64 | */ 65 | 66 | public void setNeirong(String neirong) { 67 | this.neirong = neirong; 68 | } 69 | 70 | /** 71 | * 获取:内容 72 | */ 73 | public String getNeirong() { 74 | return neirong; 75 | } 76 | 77 | 78 | /** 79 | * 设置:发布日期 80 | */ 81 | 82 | public void setFaburiqi(Date faburiqi) { 83 | this.faburiqi = faburiqi; 84 | } 85 | 86 | /** 87 | * 获取:发布日期 88 | */ 89 | public Date getFaburiqi() { 90 | return faburiqi; 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/JiaoshiVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.JiaoshiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 教师 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class JiaoshiVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 密码 27 | */ 28 | 29 | private String mima; 30 | 31 | /** 32 | * 教师姓名 33 | */ 34 | 35 | private String jiaoshixingming; 36 | 37 | /** 38 | * 性别 39 | */ 40 | 41 | private String xingbie; 42 | 43 | /** 44 | * 照片 45 | */ 46 | 47 | private String zhaopian; 48 | 49 | /** 50 | * 职称 51 | */ 52 | 53 | private String zhicheng; 54 | 55 | /** 56 | * 任教课程 57 | */ 58 | 59 | private String renjiaokecheng; 60 | 61 | /** 62 | * 联系电话 63 | */ 64 | 65 | private String lianxidianhua; 66 | 67 | 68 | /** 69 | * 设置:密码 70 | */ 71 | 72 | public void setMima(String mima) { 73 | this.mima = mima; 74 | } 75 | 76 | /** 77 | * 获取:密码 78 | */ 79 | public String getMima() { 80 | return mima; 81 | } 82 | 83 | 84 | /** 85 | * 设置:教师姓名 86 | */ 87 | 88 | public void setJiaoshixingming(String jiaoshixingming) { 89 | this.jiaoshixingming = jiaoshixingming; 90 | } 91 | 92 | /** 93 | * 获取:教师姓名 94 | */ 95 | public String getJiaoshixingming() { 96 | return jiaoshixingming; 97 | } 98 | 99 | 100 | /** 101 | * 设置:性别 102 | */ 103 | 104 | public void setXingbie(String xingbie) { 105 | this.xingbie = xingbie; 106 | } 107 | 108 | /** 109 | * 获取:性别 110 | */ 111 | public String getXingbie() { 112 | return xingbie; 113 | } 114 | 115 | 116 | /** 117 | * 设置:照片 118 | */ 119 | 120 | public void setZhaopian(String zhaopian) { 121 | this.zhaopian = zhaopian; 122 | } 123 | 124 | /** 125 | * 获取:照片 126 | */ 127 | public String getZhaopian() { 128 | return zhaopian; 129 | } 130 | 131 | 132 | /** 133 | * 设置:职称 134 | */ 135 | 136 | public void setZhicheng(String zhicheng) { 137 | this.zhicheng = zhicheng; 138 | } 139 | 140 | /** 141 | * 获取:职称 142 | */ 143 | public String getZhicheng() { 144 | return zhicheng; 145 | } 146 | 147 | 148 | /** 149 | * 设置:任教课程 150 | */ 151 | 152 | public void setRenjiaokecheng(String renjiaokecheng) { 153 | this.renjiaokecheng = renjiaokecheng; 154 | } 155 | 156 | /** 157 | * 获取:任教课程 158 | */ 159 | public String getRenjiaokecheng() { 160 | return renjiaokecheng; 161 | } 162 | 163 | 164 | /** 165 | * 设置:联系电话 166 | */ 167 | 168 | public void setLianxidianhua(String lianxidianhua) { 169 | this.lianxidianhua = lianxidianhua; 170 | } 171 | 172 | /** 173 | * 获取:联系电话 174 | */ 175 | public String getLianxidianhua() { 176 | return lianxidianhua; 177 | } 178 | 179 | } 180 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/KechengleixingVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.KechengleixingEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 课程类型 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class KechengleixingVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/KechengxinxiVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.KechengxinxiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 课程信息 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class KechengxinxiVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 课程类型 27 | */ 28 | 29 | private String kechengleixing; 30 | 31 | /** 32 | * 班级 33 | */ 34 | 35 | private String banji; 36 | 37 | /** 38 | * 学期 39 | */ 40 | 41 | private String xueqi; 42 | 43 | /** 44 | * 星期 45 | */ 46 | 47 | private String xingqi; 48 | 49 | /** 50 | * 上课时间 51 | */ 52 | 53 | private String shangkeshijian; 54 | 55 | /** 56 | * 教师工号 57 | */ 58 | 59 | private String jiaoshigonghao; 60 | 61 | /** 62 | * 教师姓名 63 | */ 64 | 65 | private String jiaoshixingming; 66 | 67 | 68 | /** 69 | * 设置:课程类型 70 | */ 71 | 72 | public void setKechengleixing(String kechengleixing) { 73 | this.kechengleixing = kechengleixing; 74 | } 75 | 76 | /** 77 | * 获取:课程类型 78 | */ 79 | public String getKechengleixing() { 80 | return kechengleixing; 81 | } 82 | 83 | 84 | /** 85 | * 设置:班级 86 | */ 87 | 88 | public void setBanji(String banji) { 89 | this.banji = banji; 90 | } 91 | 92 | /** 93 | * 获取:班级 94 | */ 95 | public String getBanji() { 96 | return banji; 97 | } 98 | 99 | 100 | /** 101 | * 设置:学期 102 | */ 103 | 104 | public void setXueqi(String xueqi) { 105 | this.xueqi = xueqi; 106 | } 107 | 108 | /** 109 | * 获取:学期 110 | */ 111 | public String getXueqi() { 112 | return xueqi; 113 | } 114 | 115 | 116 | /** 117 | * 设置:星期 118 | */ 119 | 120 | public void setXingqi(String xingqi) { 121 | this.xingqi = xingqi; 122 | } 123 | 124 | /** 125 | * 获取:星期 126 | */ 127 | public String getXingqi() { 128 | return xingqi; 129 | } 130 | 131 | 132 | /** 133 | * 设置:上课时间 134 | */ 135 | 136 | public void setShangkeshijian(String shangkeshijian) { 137 | this.shangkeshijian = shangkeshijian; 138 | } 139 | 140 | /** 141 | * 获取:上课时间 142 | */ 143 | public String getShangkeshijian() { 144 | return shangkeshijian; 145 | } 146 | 147 | 148 | /** 149 | * 设置:教师工号 150 | */ 151 | 152 | public void setJiaoshigonghao(String jiaoshigonghao) { 153 | this.jiaoshigonghao = jiaoshigonghao; 154 | } 155 | 156 | /** 157 | * 获取:教师工号 158 | */ 159 | public String getJiaoshigonghao() { 160 | return jiaoshigonghao; 161 | } 162 | 163 | 164 | /** 165 | * 设置:教师姓名 166 | */ 167 | 168 | public void setJiaoshixingming(String jiaoshixingming) { 169 | this.jiaoshixingming = jiaoshixingming; 170 | } 171 | 172 | /** 173 | * 获取:教师姓名 174 | */ 175 | public String getJiaoshixingming() { 176 | return jiaoshixingming; 177 | } 178 | 179 | } 180 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/KechengziyuanVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.KechengziyuanEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 课程资源 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class KechengziyuanVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 学期 27 | */ 28 | 29 | private String xueqi; 30 | 31 | /** 32 | * 课程资料 33 | */ 34 | 35 | private String kechengziliao; 36 | 37 | /** 38 | * 附件 39 | */ 40 | 41 | private String fujian; 42 | 43 | /** 44 | * 上传日期 45 | */ 46 | 47 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 48 | @DateTimeFormat 49 | private Date shangchuanriqi; 50 | 51 | /** 52 | * 教师工号 53 | */ 54 | 55 | private String jiaoshigonghao; 56 | 57 | /** 58 | * 教师姓名 59 | */ 60 | 61 | private String jiaoshixingming; 62 | 63 | /** 64 | * 学号 65 | */ 66 | 67 | private String xuehao; 68 | 69 | /** 70 | * 学生姓名 71 | */ 72 | 73 | private String xueshengxingming; 74 | 75 | 76 | /** 77 | * 设置:学期 78 | */ 79 | 80 | public void setXueqi(String xueqi) { 81 | this.xueqi = xueqi; 82 | } 83 | 84 | /** 85 | * 获取:学期 86 | */ 87 | public String getXueqi() { 88 | return xueqi; 89 | } 90 | 91 | 92 | /** 93 | * 设置:课程资料 94 | */ 95 | 96 | public void setKechengziliao(String kechengziliao) { 97 | this.kechengziliao = kechengziliao; 98 | } 99 | 100 | /** 101 | * 获取:课程资料 102 | */ 103 | public String getKechengziliao() { 104 | return kechengziliao; 105 | } 106 | 107 | 108 | /** 109 | * 设置:附件 110 | */ 111 | 112 | public void setFujian(String fujian) { 113 | this.fujian = fujian; 114 | } 115 | 116 | /** 117 | * 获取:附件 118 | */ 119 | public String getFujian() { 120 | return fujian; 121 | } 122 | 123 | 124 | /** 125 | * 设置:上传日期 126 | */ 127 | 128 | public void setShangchuanriqi(Date shangchuanriqi) { 129 | this.shangchuanriqi = shangchuanriqi; 130 | } 131 | 132 | /** 133 | * 获取:上传日期 134 | */ 135 | public Date getShangchuanriqi() { 136 | return shangchuanriqi; 137 | } 138 | 139 | 140 | /** 141 | * 设置:教师工号 142 | */ 143 | 144 | public void setJiaoshigonghao(String jiaoshigonghao) { 145 | this.jiaoshigonghao = jiaoshigonghao; 146 | } 147 | 148 | /** 149 | * 获取:教师工号 150 | */ 151 | public String getJiaoshigonghao() { 152 | return jiaoshigonghao; 153 | } 154 | 155 | 156 | /** 157 | * 设置:教师姓名 158 | */ 159 | 160 | public void setJiaoshixingming(String jiaoshixingming) { 161 | this.jiaoshixingming = jiaoshixingming; 162 | } 163 | 164 | /** 165 | * 获取:教师姓名 166 | */ 167 | public String getJiaoshixingming() { 168 | return jiaoshixingming; 169 | } 170 | 171 | 172 | /** 173 | * 设置:学号 174 | */ 175 | 176 | public void setXuehao(String xuehao) { 177 | this.xuehao = xuehao; 178 | } 179 | 180 | /** 181 | * 获取:学号 182 | */ 183 | public String getXuehao() { 184 | return xuehao; 185 | } 186 | 187 | 188 | /** 189 | * 设置:学生姓名 190 | */ 191 | 192 | public void setXueshengxingming(String xueshengxingming) { 193 | this.xueshengxingming = xueshengxingming; 194 | } 195 | 196 | /** 197 | * 获取:学生姓名 198 | */ 199 | public String getXueshengxingming() { 200 | return xueshengxingming; 201 | } 202 | 203 | } 204 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/XueshengVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.XueshengEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 学生 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class XueshengVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 密码 27 | */ 28 | 29 | private String mima; 30 | 31 | /** 32 | * 学生姓名 33 | */ 34 | 35 | private String xueshengxingming; 36 | 37 | /** 38 | * 性别 39 | */ 40 | 41 | private String xingbie; 42 | 43 | /** 44 | * 头像 45 | */ 46 | 47 | private String touxiang; 48 | 49 | /** 50 | * 手机 51 | */ 52 | 53 | private String shouji; 54 | 55 | /** 56 | * 邮箱 57 | */ 58 | 59 | private String youxiang; 60 | 61 | /** 62 | * 班级 63 | */ 64 | 65 | private String banji; 66 | 67 | 68 | /** 69 | * 设置:密码 70 | */ 71 | 72 | public void setMima(String mima) { 73 | this.mima = mima; 74 | } 75 | 76 | /** 77 | * 获取:密码 78 | */ 79 | public String getMima() { 80 | return mima; 81 | } 82 | 83 | 84 | /** 85 | * 设置:学生姓名 86 | */ 87 | 88 | public void setXueshengxingming(String xueshengxingming) { 89 | this.xueshengxingming = xueshengxingming; 90 | } 91 | 92 | /** 93 | * 获取:学生姓名 94 | */ 95 | public String getXueshengxingming() { 96 | return xueshengxingming; 97 | } 98 | 99 | 100 | /** 101 | * 设置:性别 102 | */ 103 | 104 | public void setXingbie(String xingbie) { 105 | this.xingbie = xingbie; 106 | } 107 | 108 | /** 109 | * 获取:性别 110 | */ 111 | public String getXingbie() { 112 | return xingbie; 113 | } 114 | 115 | 116 | /** 117 | * 设置:头像 118 | */ 119 | 120 | public void setTouxiang(String touxiang) { 121 | this.touxiang = touxiang; 122 | } 123 | 124 | /** 125 | * 获取:头像 126 | */ 127 | public String getTouxiang() { 128 | return touxiang; 129 | } 130 | 131 | 132 | /** 133 | * 设置:手机 134 | */ 135 | 136 | public void setShouji(String shouji) { 137 | this.shouji = shouji; 138 | } 139 | 140 | /** 141 | * 获取:手机 142 | */ 143 | public String getShouji() { 144 | return shouji; 145 | } 146 | 147 | 148 | /** 149 | * 设置:邮箱 150 | */ 151 | 152 | public void setYouxiang(String youxiang) { 153 | this.youxiang = youxiang; 154 | } 155 | 156 | /** 157 | * 获取:邮箱 158 | */ 159 | public String getYouxiang() { 160 | return youxiang; 161 | } 162 | 163 | 164 | /** 165 | * 设置:班级 166 | */ 167 | 168 | public void setBanji(String banji) { 169 | this.banji = banji; 170 | } 171 | 172 | /** 173 | * 获取:班级 174 | */ 175 | public String getBanji() { 176 | return banji; 177 | } 178 | 179 | } 180 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/XueshengxuankeVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.XueshengxuankeEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 学生选课 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class XueshengxuankeVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 课程类型 27 | */ 28 | 29 | private String kechengleixing; 30 | 31 | /** 32 | * 学期 33 | */ 34 | 35 | private String xueqi; 36 | 37 | /** 38 | * 班级 39 | */ 40 | 41 | private String banji; 42 | 43 | /** 44 | * 选课日期 45 | */ 46 | 47 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 48 | @DateTimeFormat 49 | private Date xuankeriqi; 50 | 51 | /** 52 | * 教师工号 53 | */ 54 | 55 | private String jiaoshigonghao; 56 | 57 | /** 58 | * 教师姓名 59 | */ 60 | 61 | private String jiaoshixingming; 62 | 63 | /** 64 | * 学号 65 | */ 66 | 67 | private String xuehao; 68 | 69 | /** 70 | * 学生姓名 71 | */ 72 | 73 | private String xueshengxingming; 74 | 75 | /** 76 | * 备注 77 | */ 78 | 79 | private String beizhu; 80 | 81 | 82 | /** 83 | * 设置:课程类型 84 | */ 85 | 86 | public void setKechengleixing(String kechengleixing) { 87 | this.kechengleixing = kechengleixing; 88 | } 89 | 90 | /** 91 | * 获取:课程类型 92 | */ 93 | public String getKechengleixing() { 94 | return kechengleixing; 95 | } 96 | 97 | 98 | /** 99 | * 设置:学期 100 | */ 101 | 102 | public void setXueqi(String xueqi) { 103 | this.xueqi = xueqi; 104 | } 105 | 106 | /** 107 | * 获取:学期 108 | */ 109 | public String getXueqi() { 110 | return xueqi; 111 | } 112 | 113 | 114 | /** 115 | * 设置:班级 116 | */ 117 | 118 | public void setBanji(String banji) { 119 | this.banji = banji; 120 | } 121 | 122 | /** 123 | * 获取:班级 124 | */ 125 | public String getBanji() { 126 | return banji; 127 | } 128 | 129 | 130 | /** 131 | * 设置:选课日期 132 | */ 133 | 134 | public void setXuankeriqi(Date xuankeriqi) { 135 | this.xuankeriqi = xuankeriqi; 136 | } 137 | 138 | /** 139 | * 获取:选课日期 140 | */ 141 | public Date getXuankeriqi() { 142 | return xuankeriqi; 143 | } 144 | 145 | 146 | /** 147 | * 设置:教师工号 148 | */ 149 | 150 | public void setJiaoshigonghao(String jiaoshigonghao) { 151 | this.jiaoshigonghao = jiaoshigonghao; 152 | } 153 | 154 | /** 155 | * 获取:教师工号 156 | */ 157 | public String getJiaoshigonghao() { 158 | return jiaoshigonghao; 159 | } 160 | 161 | 162 | /** 163 | * 设置:教师姓名 164 | */ 165 | 166 | public void setJiaoshixingming(String jiaoshixingming) { 167 | this.jiaoshixingming = jiaoshixingming; 168 | } 169 | 170 | /** 171 | * 获取:教师姓名 172 | */ 173 | public String getJiaoshixingming() { 174 | return jiaoshixingming; 175 | } 176 | 177 | 178 | /** 179 | * 设置:学号 180 | */ 181 | 182 | public void setXuehao(String xuehao) { 183 | this.xuehao = xuehao; 184 | } 185 | 186 | /** 187 | * 获取:学号 188 | */ 189 | public String getXuehao() { 190 | return xuehao; 191 | } 192 | 193 | 194 | /** 195 | * 设置:学生姓名 196 | */ 197 | 198 | public void setXueshengxingming(String xueshengxingming) { 199 | this.xueshengxingming = xueshengxingming; 200 | } 201 | 202 | /** 203 | * 获取:学生姓名 204 | */ 205 | public String getXueshengxingming() { 206 | return xueshengxingming; 207 | } 208 | 209 | 210 | /** 211 | * 设置:备注 212 | */ 213 | 214 | public void setBeizhu(String beizhu) { 215 | this.beizhu = beizhu; 216 | } 217 | 218 | /** 219 | * 获取:备注 220 | */ 221 | public String getBeizhu() { 222 | return beizhu; 223 | } 224 | 225 | } 226 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/ZuoyebuzhiVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.ZuoyebuzhiEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 作业布置 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class ZuoyebuzhiVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 学期 27 | */ 28 | 29 | private String xueqi; 30 | 31 | /** 32 | * 班级 33 | */ 34 | 35 | private String banji; 36 | 37 | /** 38 | * 作业要求 39 | */ 40 | 41 | private String zuoyeyaoqiu; 42 | 43 | /** 44 | * 发布日期 45 | */ 46 | 47 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 48 | @DateTimeFormat 49 | private Date faburiqi; 50 | 51 | /** 52 | * 教师工号 53 | */ 54 | 55 | private String jiaoshigonghao; 56 | 57 | /** 58 | * 教师姓名 59 | */ 60 | 61 | private String jiaoshixingming; 62 | 63 | /** 64 | * 学号 65 | */ 66 | 67 | private String xuehao; 68 | 69 | /** 70 | * 学生姓名 71 | */ 72 | 73 | private String xueshengxingming; 74 | 75 | 76 | /** 77 | * 设置:学期 78 | */ 79 | 80 | public void setXueqi(String xueqi) { 81 | this.xueqi = xueqi; 82 | } 83 | 84 | /** 85 | * 获取:学期 86 | */ 87 | public String getXueqi() { 88 | return xueqi; 89 | } 90 | 91 | 92 | /** 93 | * 设置:班级 94 | */ 95 | 96 | public void setBanji(String banji) { 97 | this.banji = banji; 98 | } 99 | 100 | /** 101 | * 获取:班级 102 | */ 103 | public String getBanji() { 104 | return banji; 105 | } 106 | 107 | 108 | /** 109 | * 设置:作业要求 110 | */ 111 | 112 | public void setZuoyeyaoqiu(String zuoyeyaoqiu) { 113 | this.zuoyeyaoqiu = zuoyeyaoqiu; 114 | } 115 | 116 | /** 117 | * 获取:作业要求 118 | */ 119 | public String getZuoyeyaoqiu() { 120 | return zuoyeyaoqiu; 121 | } 122 | 123 | 124 | /** 125 | * 设置:发布日期 126 | */ 127 | 128 | public void setFaburiqi(Date faburiqi) { 129 | this.faburiqi = faburiqi; 130 | } 131 | 132 | /** 133 | * 获取:发布日期 134 | */ 135 | public Date getFaburiqi() { 136 | return faburiqi; 137 | } 138 | 139 | 140 | /** 141 | * 设置:教师工号 142 | */ 143 | 144 | public void setJiaoshigonghao(String jiaoshigonghao) { 145 | this.jiaoshigonghao = jiaoshigonghao; 146 | } 147 | 148 | /** 149 | * 获取:教师工号 150 | */ 151 | public String getJiaoshigonghao() { 152 | return jiaoshigonghao; 153 | } 154 | 155 | 156 | /** 157 | * 设置:教师姓名 158 | */ 159 | 160 | public void setJiaoshixingming(String jiaoshixingming) { 161 | this.jiaoshixingming = jiaoshixingming; 162 | } 163 | 164 | /** 165 | * 获取:教师姓名 166 | */ 167 | public String getJiaoshixingming() { 168 | return jiaoshixingming; 169 | } 170 | 171 | 172 | /** 173 | * 设置:学号 174 | */ 175 | 176 | public void setXuehao(String xuehao) { 177 | this.xuehao = xuehao; 178 | } 179 | 180 | /** 181 | * 获取:学号 182 | */ 183 | public String getXuehao() { 184 | return xuehao; 185 | } 186 | 187 | 188 | /** 189 | * 设置:学生姓名 190 | */ 191 | 192 | public void setXueshengxingming(String xueshengxingming) { 193 | this.xueshengxingming = xueshengxingming; 194 | } 195 | 196 | /** 197 | * 获取:学生姓名 198 | */ 199 | public String getXueshengxingming() { 200 | return xueshengxingming; 201 | } 202 | 203 | } 204 | -------------------------------------------------------------------------------- /src/main/java/com/entity/vo/ZuoyetijiaoVO.java: -------------------------------------------------------------------------------- 1 | package com.entity.vo; 2 | 3 | import com.entity.ZuoyetijiaoEntity; 4 | 5 | import com.baomidou.mybatisplus.annotations.TableName; 6 | import java.util.Date; 7 | import org.springframework.format.annotation.DateTimeFormat; 8 | 9 | import com.fasterxml.jackson.annotation.JsonFormat; 10 | import java.io.Serializable; 11 | 12 | 13 | /** 14 | * 作业提交 15 | * 手机端接口返回实体辅助类 16 | * (主要作用去除一些不必要的字段) 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public class ZuoyetijiaoVO implements Serializable { 22 | private static final long serialVersionUID = 1L; 23 | 24 | 25 | /** 26 | * 学期 27 | */ 28 | 29 | private String xueqi; 30 | 31 | /** 32 | * 班级 33 | */ 34 | 35 | private String banji; 36 | 37 | /** 38 | * 作业 39 | */ 40 | 41 | private String zuoye; 42 | 43 | /** 44 | * 提交日期 45 | */ 46 | 47 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 48 | @DateTimeFormat 49 | private Date tijiaoriqi; 50 | 51 | /** 52 | * 教师工号 53 | */ 54 | 55 | private String jiaoshigonghao; 56 | 57 | /** 58 | * 教师姓名 59 | */ 60 | 61 | private String jiaoshixingming; 62 | 63 | /** 64 | * 学号 65 | */ 66 | 67 | private String xuehao; 68 | 69 | /** 70 | * 学生姓名 71 | */ 72 | 73 | private String xueshengxingming; 74 | 75 | /** 76 | * 是否审核 77 | */ 78 | 79 | private String sfsh; 80 | 81 | /** 82 | * 审核回复 83 | */ 84 | 85 | private String shhf; 86 | 87 | 88 | /** 89 | * 设置:学期 90 | */ 91 | 92 | public void setXueqi(String xueqi) { 93 | this.xueqi = xueqi; 94 | } 95 | 96 | /** 97 | * 获取:学期 98 | */ 99 | public String getXueqi() { 100 | return xueqi; 101 | } 102 | 103 | 104 | /** 105 | * 设置:班级 106 | */ 107 | 108 | public void setBanji(String banji) { 109 | this.banji = banji; 110 | } 111 | 112 | /** 113 | * 获取:班级 114 | */ 115 | public String getBanji() { 116 | return banji; 117 | } 118 | 119 | 120 | /** 121 | * 设置:作业 122 | */ 123 | 124 | public void setZuoye(String zuoye) { 125 | this.zuoye = zuoye; 126 | } 127 | 128 | /** 129 | * 获取:作业 130 | */ 131 | public String getZuoye() { 132 | return zuoye; 133 | } 134 | 135 | 136 | /** 137 | * 设置:提交日期 138 | */ 139 | 140 | public void setTijiaoriqi(Date tijiaoriqi) { 141 | this.tijiaoriqi = tijiaoriqi; 142 | } 143 | 144 | /** 145 | * 获取:提交日期 146 | */ 147 | public Date getTijiaoriqi() { 148 | return tijiaoriqi; 149 | } 150 | 151 | 152 | /** 153 | * 设置:教师工号 154 | */ 155 | 156 | public void setJiaoshigonghao(String jiaoshigonghao) { 157 | this.jiaoshigonghao = jiaoshigonghao; 158 | } 159 | 160 | /** 161 | * 获取:教师工号 162 | */ 163 | public String getJiaoshigonghao() { 164 | return jiaoshigonghao; 165 | } 166 | 167 | 168 | /** 169 | * 设置:教师姓名 170 | */ 171 | 172 | public void setJiaoshixingming(String jiaoshixingming) { 173 | this.jiaoshixingming = jiaoshixingming; 174 | } 175 | 176 | /** 177 | * 获取:教师姓名 178 | */ 179 | public String getJiaoshixingming() { 180 | return jiaoshixingming; 181 | } 182 | 183 | 184 | /** 185 | * 设置:学号 186 | */ 187 | 188 | public void setXuehao(String xuehao) { 189 | this.xuehao = xuehao; 190 | } 191 | 192 | /** 193 | * 获取:学号 194 | */ 195 | public String getXuehao() { 196 | return xuehao; 197 | } 198 | 199 | 200 | /** 201 | * 设置:学生姓名 202 | */ 203 | 204 | public void setXueshengxingming(String xueshengxingming) { 205 | this.xueshengxingming = xueshengxingming; 206 | } 207 | 208 | /** 209 | * 获取:学生姓名 210 | */ 211 | public String getXueshengxingming() { 212 | return xueshengxingming; 213 | } 214 | 215 | 216 | /** 217 | * 设置:是否审核 218 | */ 219 | 220 | public void setSfsh(String sfsh) { 221 | this.sfsh = sfsh; 222 | } 223 | 224 | /** 225 | * 获取:是否审核 226 | */ 227 | public String getSfsh() { 228 | return sfsh; 229 | } 230 | 231 | 232 | /** 233 | * 设置:审核回复 234 | */ 235 | 236 | public void setShhf(String shhf) { 237 | this.shhf = shhf; 238 | } 239 | 240 | /** 241 | * 获取:审核回复 242 | */ 243 | public String getShhf() { 244 | return shhf; 245 | } 246 | 247 | } 248 | -------------------------------------------------------------------------------- /src/main/java/com/interceptor/AuthorizationInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.interceptor; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.util.HashMap; 6 | import java.util.Map; 7 | import com.alibaba.fastjson.JSONObject; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import org.apache.commons.lang3.StringUtils; 12 | import org.springframework.beans.factory.annotation.Autowired; 13 | import org.springframework.stereotype.Component; 14 | import org.springframework.web.method.HandlerMethod; 15 | import org.springframework.web.servlet.HandlerInterceptor; 16 | import org.springframework.web.bind.annotation.RequestMethod; 17 | import org.springframework.http.HttpStatus; 18 | 19 | import com.annotation.IgnoreAuth; 20 | import com.entity.EIException; 21 | import com.entity.TokenEntity; 22 | import com.service.TokenService; 23 | import com.utils.R; 24 | 25 | /** 26 | * 权限(Token)验证 27 | */ 28 | @Component 29 | public class AuthorizationInterceptor implements HandlerInterceptor { 30 | 31 | public static final String LOGIN_TOKEN_KEY = "Token"; 32 | 33 | @Autowired 34 | private TokenService tokenService; 35 | 36 | @Override 37 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { 38 | 39 | //支持跨域请求 40 | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); 41 | response.setHeader("Access-Control-Max-Age", "3600"); 42 | response.setHeader("Access-Control-Allow-Credentials", "true"); 43 | response.setHeader("Access-Control-Allow-Headers", "x-requested-with,request-source,Token, Origin,imgType, Content-Type, cache-control,postman-token,Cookie, Accept,authorization"); 44 | response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin")); 45 | // 跨域时会首先发送一个OPTIONS请求,这里我们给OPTIONS请求直接返回正常状态 46 | if (request.getMethod().equals(RequestMethod.OPTIONS.name())) { 47 | response.setStatus(HttpStatus.OK.value()); 48 | return false; 49 | } 50 | 51 | IgnoreAuth annotation; 52 | if (handler instanceof HandlerMethod) { 53 | annotation = ((HandlerMethod) handler).getMethodAnnotation(IgnoreAuth.class); 54 | } else { 55 | return true; 56 | } 57 | 58 | //从header中获取token 59 | String token = request.getHeader(LOGIN_TOKEN_KEY); 60 | 61 | /** 62 | * 不需要验证权限的方法直接放过 63 | */ 64 | if(annotation!=null) { 65 | return true; 66 | } 67 | 68 | TokenEntity tokenEntity = null; 69 | if(StringUtils.isNotBlank(token)) { 70 | tokenEntity = tokenService.getTokenEntity(token); 71 | } 72 | 73 | if(tokenEntity != null) { 74 | request.getSession().setAttribute("userId", tokenEntity.getUserid()); 75 | request.getSession().setAttribute("role", tokenEntity.getRole()); 76 | request.getSession().setAttribute("tableName", tokenEntity.getTablename()); 77 | request.getSession().setAttribute("username", tokenEntity.getUsername()); 78 | return true; 79 | } 80 | 81 | PrintWriter writer = null; 82 | response.setCharacterEncoding("UTF-8"); 83 | response.setContentType("application/json; charset=utf-8"); 84 | try { 85 | writer = response.getWriter(); 86 | writer.print(JSONObject.toJSONString(R.error(401, "请先登录"))); 87 | } finally { 88 | if(writer != null){ 89 | writer.close(); 90 | } 91 | } 92 | // throw new EIException("请先登录", 401); 93 | return false; 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /src/main/java/com/service/BanjiService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.BanjiEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.BanjiVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.BanjiView; 12 | 13 | 14 | /** 15 | * 班级 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface BanjiService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | BanjiVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | BanjiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/CommonService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | public interface CommonService { 7 | List getOption(Map params); 8 | 9 | Map getFollowByOption(Map params); 10 | 11 | void sh(Map params); 12 | 13 | int remindCount(Map params); 14 | 15 | Map selectCal(Map params); 16 | 17 | List> selectGroup(Map params); 18 | 19 | List> selectValue(Map params); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/service/ConfigService.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service; 3 | 4 | import java.util.Map; 5 | 6 | import com.baomidou.mybatisplus.service.IService; 7 | import com.entity.ConfigEntity; 8 | import com.utils.PageUtils; 9 | 10 | 11 | /** 12 | * 系统用户 13 | */ 14 | public interface ConfigService extends IService { 15 | PageUtils queryPage(Map params); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/service/GonggaoxinxiService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.GonggaoxinxiEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.GonggaoxinxiVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.GonggaoxinxiView; 12 | 13 | 14 | /** 15 | * 公告信息 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface GonggaoxinxiService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | GonggaoxinxiVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | GonggaoxinxiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/JiaoshiService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.JiaoshiEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.JiaoshiVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.JiaoshiView; 12 | 13 | 14 | /** 15 | * 教师 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface JiaoshiService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | JiaoshiVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | JiaoshiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/KechengleixingService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.KechengleixingEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.KechengleixingVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.KechengleixingView; 12 | 13 | 14 | /** 15 | * 课程类型 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengleixingService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | KechengleixingVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | KechengleixingView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/KechengpingjiaService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.KechengpingjiaEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.KechengpingjiaVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.KechengpingjiaView; 12 | 13 | 14 | /** 15 | * 课程评价 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengpingjiaService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | KechengpingjiaVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | KechengpingjiaView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/KechengxinxiService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.KechengxinxiEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.KechengxinxiVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.KechengxinxiView; 12 | 13 | 14 | /** 15 | * 课程信息 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengxinxiService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | KechengxinxiVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | KechengxinxiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/KechengziyuanService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.KechengziyuanEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.KechengziyuanVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.KechengziyuanView; 12 | 13 | 14 | /** 15 | * 课程资源 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface KechengziyuanService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | KechengziyuanVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | KechengziyuanView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/TokenService.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service; 3 | 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.service.IService; 9 | import com.entity.TokenEntity; 10 | import com.utils.PageUtils; 11 | 12 | 13 | /** 14 | * token 15 | */ 16 | public interface TokenService extends IService { 17 | PageUtils queryPage(Map params); 18 | 19 | List selectListView(Wrapper wrapper); 20 | 21 | PageUtils queryPage(Map params,Wrapper wrapper); 22 | 23 | String generateToken(Long userid,String username,String tableName, String role); 24 | 25 | TokenEntity getTokenEntity(String token); 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/service/UserService.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service; 3 | 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import org.apache.ibatis.annotations.Param; 8 | 9 | import com.baomidou.mybatisplus.mapper.Wrapper; 10 | import com.baomidou.mybatisplus.service.IService; 11 | import com.entity.UserEntity; 12 | import com.utils.PageUtils; 13 | 14 | 15 | /** 16 | * 系统用户 17 | */ 18 | public interface UserService extends IService { 19 | PageUtils queryPage(Map params); 20 | 21 | List selectListView(Wrapper wrapper); 22 | 23 | PageUtils queryPage(Map params,Wrapper wrapper); 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/service/XueshengService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.XueshengEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.XueshengVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.XueshengView; 12 | 13 | 14 | /** 15 | * 学生 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface XueshengService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | XueshengVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | XueshengView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/XueshengxuankeService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.XueshengxuankeEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.XueshengxuankeVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.XueshengxuankeView; 12 | 13 | 14 | /** 15 | * 学生选课 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface XueshengxuankeService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | XueshengxuankeVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | XueshengxuankeView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/ZuoyebuzhiService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.ZuoyebuzhiEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.ZuoyebuzhiVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.ZuoyebuzhiView; 12 | 13 | 14 | /** 15 | * 作业布置 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface ZuoyebuzhiService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | ZuoyebuzhiVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | ZuoyebuzhiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/ZuoyepingfenService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.ZuoyepingfenEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.ZuoyepingfenVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.ZuoyepingfenView; 12 | 13 | 14 | /** 15 | * 作业评分 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface ZuoyepingfenService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | ZuoyepingfenVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | ZuoyepingfenView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/ZuoyetijiaoService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.ZuoyetijiaoEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.ZuoyetijiaoVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.ZuoyetijiaoView; 12 | 13 | 14 | /** 15 | * 作业提交 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-04 10:22:19 20 | */ 21 | public interface ZuoyetijiaoService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | ZuoyetijiaoVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | ZuoyetijiaoView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/BanjiServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.BanjiDao; 16 | import com.entity.BanjiEntity; 17 | import com.service.BanjiService; 18 | import com.entity.vo.BanjiVO; 19 | import com.entity.view.BanjiView; 20 | 21 | @Service("banjiService") 22 | public class BanjiServiceImpl extends ServiceImpl implements BanjiService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public BanjiVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public BanjiView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/CommonServiceImpl.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service.impl; 3 | 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import com.dao.CommonDao; 12 | import com.service.CommonService; 13 | 14 | 15 | /** 16 | * 系统用户 17 | */ 18 | @Service("commonService") 19 | public class CommonServiceImpl implements CommonService { 20 | 21 | @Autowired 22 | private CommonDao commonDao; 23 | 24 | @Override 25 | public List getOption(Map params) { 26 | return commonDao.getOption(params); 27 | } 28 | 29 | @Override 30 | public Map getFollowByOption(Map params) { 31 | return commonDao.getFollowByOption(params); 32 | } 33 | 34 | @Override 35 | public void sh(Map params) { 36 | commonDao.sh(params); 37 | } 38 | 39 | @Override 40 | public int remindCount(Map params) { 41 | return commonDao.remindCount(params); 42 | } 43 | 44 | @Override 45 | public Map selectCal(Map params) { 46 | return commonDao.selectCal(params); 47 | } 48 | 49 | @Override 50 | public List> selectGroup(Map params) { 51 | return commonDao.selectGroup(params); 52 | } 53 | 54 | @Override 55 | public List> selectValue(Map params) { 56 | return commonDao.selectValue(params); 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/ConfigServiceImpl.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service.impl; 3 | 4 | 5 | import java.util.Map; 6 | 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 10 | import com.baomidou.mybatisplus.plugins.Page; 11 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 12 | import com.dao.ConfigDao; 13 | import com.entity.ConfigEntity; 14 | import com.entity.UserEntity; 15 | import com.service.ConfigService; 16 | import com.utils.PageUtils; 17 | import com.utils.Query; 18 | 19 | 20 | /** 21 | * 系统用户 22 | */ 23 | @Service("configService") 24 | public class ConfigServiceImpl extends ServiceImpl implements ConfigService { 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/GonggaoxinxiServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.GonggaoxinxiDao; 16 | import com.entity.GonggaoxinxiEntity; 17 | import com.service.GonggaoxinxiService; 18 | import com.entity.vo.GonggaoxinxiVO; 19 | import com.entity.view.GonggaoxinxiView; 20 | 21 | @Service("gonggaoxinxiService") 22 | public class GonggaoxinxiServiceImpl extends ServiceImpl implements GonggaoxinxiService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public GonggaoxinxiVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public GonggaoxinxiView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/JiaoshiServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.JiaoshiDao; 16 | import com.entity.JiaoshiEntity; 17 | import com.service.JiaoshiService; 18 | import com.entity.vo.JiaoshiVO; 19 | import com.entity.view.JiaoshiView; 20 | 21 | @Service("jiaoshiService") 22 | public class JiaoshiServiceImpl extends ServiceImpl implements JiaoshiService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public JiaoshiVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public JiaoshiView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/KechengleixingServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.KechengleixingDao; 16 | import com.entity.KechengleixingEntity; 17 | import com.service.KechengleixingService; 18 | import com.entity.vo.KechengleixingVO; 19 | import com.entity.view.KechengleixingView; 20 | 21 | @Service("kechengleixingService") 22 | public class KechengleixingServiceImpl extends ServiceImpl implements KechengleixingService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public KechengleixingVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public KechengleixingView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/KechengpingjiaServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.KechengpingjiaDao; 16 | import com.entity.KechengpingjiaEntity; 17 | import com.service.KechengpingjiaService; 18 | import com.entity.vo.KechengpingjiaVO; 19 | import com.entity.view.KechengpingjiaView; 20 | 21 | @Service("kechengpingjiaService") 22 | public class KechengpingjiaServiceImpl extends ServiceImpl implements KechengpingjiaService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public KechengpingjiaVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public KechengpingjiaView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/KechengxinxiServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.KechengxinxiDao; 16 | import com.entity.KechengxinxiEntity; 17 | import com.service.KechengxinxiService; 18 | import com.entity.vo.KechengxinxiVO; 19 | import com.entity.view.KechengxinxiView; 20 | 21 | @Service("kechengxinxiService") 22 | public class KechengxinxiServiceImpl extends ServiceImpl implements KechengxinxiService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public KechengxinxiVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public KechengxinxiView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/KechengziyuanServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.KechengziyuanDao; 16 | import com.entity.KechengziyuanEntity; 17 | import com.service.KechengziyuanService; 18 | import com.entity.vo.KechengziyuanVO; 19 | import com.entity.view.KechengziyuanView; 20 | 21 | @Service("kechengziyuanService") 22 | public class KechengziyuanServiceImpl extends ServiceImpl implements KechengziyuanService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public KechengziyuanVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public KechengziyuanView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/TokenServiceImpl.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service.impl; 3 | 4 | 5 | import java.util.Calendar; 6 | import java.util.Date; 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | import org.springframework.stereotype.Service; 11 | 12 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 13 | import com.baomidou.mybatisplus.mapper.Wrapper; 14 | import com.baomidou.mybatisplus.plugins.Page; 15 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 16 | import com.dao.TokenDao; 17 | import com.entity.TokenEntity; 18 | import com.entity.TokenEntity; 19 | import com.service.TokenService; 20 | import com.utils.CommonUtil; 21 | import com.utils.PageUtils; 22 | import com.utils.Query; 23 | 24 | 25 | /** 26 | * token 27 | */ 28 | @Service("tokenService") 29 | public class TokenServiceImpl extends ServiceImpl implements TokenService { 30 | 31 | @Override 32 | public PageUtils queryPage(Map params) { 33 | Page page = this.selectPage( 34 | new Query(params).getPage(), 35 | new EntityWrapper() 36 | ); 37 | return new PageUtils(page); 38 | } 39 | 40 | @Override 41 | public List selectListView(Wrapper wrapper) { 42 | return baseMapper.selectListView(wrapper); 43 | } 44 | 45 | @Override 46 | public PageUtils queryPage(Map params, 47 | Wrapper wrapper) { 48 | Page page =new Query(params).getPage(); 49 | page.setRecords(baseMapper.selectListView(page,wrapper)); 50 | PageUtils pageUtil = new PageUtils(page); 51 | return pageUtil; 52 | } 53 | 54 | @Override 55 | public String generateToken(Long userid,String username, String tableName, String role) { 56 | TokenEntity tokenEntity = this.selectOne(new EntityWrapper().eq("userid", userid).eq("role", role)); 57 | String token = CommonUtil.getRandomString(32); 58 | Calendar cal = Calendar.getInstance(); 59 | cal.setTime(new Date()); 60 | cal.add(Calendar.HOUR_OF_DAY, 1); 61 | if(tokenEntity!=null) { 62 | tokenEntity.setToken(token); 63 | tokenEntity.setExpiratedtime(cal.getTime()); 64 | this.updateById(tokenEntity); 65 | } else { 66 | this.insert(new TokenEntity(userid,username, tableName, role, token, cal.getTime())); 67 | } 68 | return token; 69 | } 70 | 71 | @Override 72 | public TokenEntity getTokenEntity(String token) { 73 | TokenEntity tokenEntity = this.selectOne(new EntityWrapper().eq("token", token)); 74 | if(tokenEntity == null || tokenEntity.getExpiratedtime().getTime() implements UserService { 26 | 27 | @Override 28 | public PageUtils queryPage(Map params) { 29 | Page page = this.selectPage( 30 | new Query(params).getPage(), 31 | new EntityWrapper() 32 | ); 33 | return new PageUtils(page); 34 | } 35 | 36 | @Override 37 | public List selectListView(Wrapper wrapper) { 38 | return baseMapper.selectListView(wrapper); 39 | } 40 | 41 | @Override 42 | public PageUtils queryPage(Map params, 43 | Wrapper wrapper) { 44 | Page page =new Query(params).getPage(); 45 | page.setRecords(baseMapper.selectListView(page,wrapper)); 46 | PageUtils pageUtil = new PageUtils(page); 47 | return pageUtil; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/XueshengServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.XueshengDao; 16 | import com.entity.XueshengEntity; 17 | import com.service.XueshengService; 18 | import com.entity.vo.XueshengVO; 19 | import com.entity.view.XueshengView; 20 | 21 | @Service("xueshengService") 22 | public class XueshengServiceImpl extends ServiceImpl implements XueshengService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public XueshengVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public XueshengView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/XueshengxuankeServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.XueshengxuankeDao; 16 | import com.entity.XueshengxuankeEntity; 17 | import com.service.XueshengxuankeService; 18 | import com.entity.vo.XueshengxuankeVO; 19 | import com.entity.view.XueshengxuankeView; 20 | 21 | @Service("xueshengxuankeService") 22 | public class XueshengxuankeServiceImpl extends ServiceImpl implements XueshengxuankeService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public XueshengxuankeVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public XueshengxuankeView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/ZuoyebuzhiServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.ZuoyebuzhiDao; 16 | import com.entity.ZuoyebuzhiEntity; 17 | import com.service.ZuoyebuzhiService; 18 | import com.entity.vo.ZuoyebuzhiVO; 19 | import com.entity.view.ZuoyebuzhiView; 20 | 21 | @Service("zuoyebuzhiService") 22 | public class ZuoyebuzhiServiceImpl extends ServiceImpl implements ZuoyebuzhiService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public ZuoyebuzhiVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public ZuoyebuzhiView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/ZuoyepingfenServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.ZuoyepingfenDao; 16 | import com.entity.ZuoyepingfenEntity; 17 | import com.service.ZuoyepingfenService; 18 | import com.entity.vo.ZuoyepingfenVO; 19 | import com.entity.view.ZuoyepingfenView; 20 | 21 | @Service("zuoyepingfenService") 22 | public class ZuoyepingfenServiceImpl extends ServiceImpl implements ZuoyepingfenService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public ZuoyepingfenVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public ZuoyepingfenView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/ZuoyetijiaoServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.ZuoyetijiaoDao; 16 | import com.entity.ZuoyetijiaoEntity; 17 | import com.service.ZuoyetijiaoService; 18 | import com.entity.vo.ZuoyetijiaoVO; 19 | import com.entity.view.ZuoyetijiaoView; 20 | 21 | @Service("zuoyetijiaoService") 22 | public class ZuoyetijiaoServiceImpl extends ServiceImpl implements ZuoyetijiaoService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public ZuoyetijiaoVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public ZuoyetijiaoView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/utils/BaiduUtil.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.InputStreamReader; 5 | import java.net.HttpURLConnection; 6 | import java.net.URL; 7 | import java.util.HashMap; 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | import org.json.JSONObject; 12 | 13 | 14 | /** 15 | * 类说明 : 16 | */ 17 | 18 | public class BaiduUtil { 19 | 20 | /** 21 | * 根据经纬度获得省市区信息 22 | * @param lon 纬度 23 | * @param lat 经度 24 | * @param coordtype 经纬度坐标系 25 | * @return 26 | */ 27 | public static Map getCityByLonLat(String key, String lng, String lat) { 28 | String location = lat + "," + lng; 29 | try { 30 | //拼装url 31 | String url = "http://api.map.baidu.com/reverse_geocoding/v3/?ak="+key+"&output=json&coordtype=wgs84ll&location="+location; 32 | String result = HttpClientUtils.doGet(url); 33 | JSONObject o = new JSONObject(result); 34 | Map area = new HashMap<>(); 35 | area.put("province", o.getJSONObject("result").getJSONObject("addressComponent").getString("province")); 36 | area.put("city", o.getJSONObject("result").getJSONObject("addressComponent").getString("city")); 37 | area.put("district", o.getJSONObject("result").getJSONObject("addressComponent").getString("district")); 38 | area.put("street", o.getJSONObject("result").getJSONObject("addressComponent").getString("street")); 39 | return area; 40 | }catch (Exception e) { 41 | e.printStackTrace(); 42 | } 43 | return null; 44 | } 45 | 46 | /** 47 | * 获取API访问token 48 | * 该token有一定的有效期,需要自行管理,当失效时需重新获取. 49 | * @param ak - 百度云官网获取的 API Key 50 | * @param sk - 百度云官网获取的 Securet Key 51 | * @return assess_token 52 | */ 53 | public static String getAuth(String ak, String sk) { 54 | // 获取token地址 55 | String authHost = "https://aip.baidubce.com/oauth/2.0/token?"; 56 | String getAccessTokenUrl = authHost 57 | // 1. grant_type为固定参数 58 | + "grant_type=client_credentials" 59 | // 2. 官网获取的 API Key 60 | + "&client_id=" + ak 61 | // 3. 官网获取的 Secret Key 62 | + "&client_secret=" + sk; 63 | try { 64 | URL realUrl = new URL(getAccessTokenUrl); 65 | // 打开和URL之间的连接 66 | HttpURLConnection connection = (HttpURLConnection) realUrl.openConnection(); 67 | connection.setRequestMethod("GET"); 68 | connection.connect(); 69 | // 获取所有响应头字段 70 | Map> map = connection.getHeaderFields(); 71 | // 遍历所有的响应头字段 72 | for (String key : map.keySet()) { 73 | System.err.println(key + "--->" + map.get(key)); 74 | } 75 | // 定义 BufferedReader输入流来读取URL的响应 76 | BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream())); 77 | String result = ""; 78 | String line; 79 | while ((line = in.readLine()) != null) { 80 | result += line; 81 | } 82 | /** 83 | * 返回结果示例 84 | */ 85 | System.err.println("result:" + result); 86 | org.json.JSONObject jsonObject = new org.json.JSONObject(result); 87 | String access_token = jsonObject.getString("access_token"); 88 | return access_token; 89 | } catch (Exception e) { 90 | System.err.printf("获取token失败!"); 91 | e.printStackTrace(System.err); 92 | } 93 | return null; 94 | } 95 | 96 | } 97 | -------------------------------------------------------------------------------- /src/main/java/com/utils/CommonUtil.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.util.Random; 4 | 5 | public class CommonUtil { 6 | /** 7 | * 获取随机字符串 8 | * 9 | * @param num 10 | * @return 11 | */ 12 | public static String getRandomString(Integer num) { 13 | String base = "abcdefghijklmnopqrstuvwxyz0123456789"; 14 | Random random = new Random(); 15 | StringBuffer sb = new StringBuffer(); 16 | for (int i = 0; i < num; i++) { 17 | int number = random.nextInt(base.length()); 18 | sb.append(base.charAt(number)); 19 | } 20 | return sb.toString(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/utils/FileUtil.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.io.ByteArrayOutputStream; 4 | import java.io.File; 5 | import java.io.FileInputStream; 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | 9 | /** 10 | * 类说明 : 11 | */ 12 | 13 | public class FileUtil { 14 | public static byte[] FileToByte(File file) throws IOException { 15 | // 将数据转为流 16 | @SuppressWarnings("resource") 17 | InputStream content = new FileInputStream(file); 18 | ByteArrayOutputStream swapStream = new ByteArrayOutputStream(); 19 | byte[] buff = new byte[100]; 20 | int rc = 0; 21 | while ((rc = content.read(buff, 0, 100)) > 0) { 22 | swapStream.write(buff, 0, rc); 23 | } 24 | // 获得二进制数组 25 | return swapStream.toByteArray(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/utils/HttpClientUtils.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.InputStreamReader; 5 | import java.net.HttpURLConnection; 6 | import java.net.URL; 7 | 8 | 9 | /** 10 | * HttpClient工具类 11 | */ 12 | public class HttpClientUtils { 13 | 14 | /** 15 | * @param uri 16 | * @return String 17 | * @description get请求方式 18 | * @author: long.he01 19 | */ 20 | public static String doGet(String uri) { 21 | 22 | StringBuilder result = new StringBuilder(); 23 | try { 24 | String res = ""; 25 | URL url = new URL(uri); 26 | HttpURLConnection conn = (HttpURLConnection) url.openConnection(); 27 | BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(), "UTF-8")); 28 | String line; 29 | while ((line = in.readLine()) != null) { 30 | res += line+"\n"; 31 | } 32 | in.close(); 33 | return res; 34 | }catch (Exception e) { 35 | e.printStackTrace(); 36 | return null; 37 | } 38 | 39 | } 40 | 41 | } 42 | 43 | -------------------------------------------------------------------------------- /src/main/java/com/utils/JQPageInfo.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | public class JQPageInfo{ 4 | private Integer page; 5 | 6 | private Integer limit; 7 | 8 | private String sidx; 9 | 10 | private String order; 11 | 12 | private Integer offset; 13 | 14 | public Integer getPage() { 15 | return page; 16 | } 17 | 18 | public void setPage(Integer page) { 19 | this.page = page; 20 | } 21 | 22 | public Integer getLimit() { 23 | return limit; 24 | } 25 | 26 | public void setLimit(Integer limit) { 27 | this.limit = limit; 28 | } 29 | 30 | public String getSidx() { 31 | return sidx; 32 | } 33 | 34 | public void setSidx(String sidx) { 35 | this.sidx = sidx; 36 | } 37 | 38 | public String getOrder() { 39 | return order; 40 | } 41 | 42 | public void setOrder(String order) { 43 | this.order = order; 44 | } 45 | 46 | public Integer getOffset() { 47 | return offset; 48 | } 49 | 50 | public void setOffset(Integer offset) { 51 | this.offset = offset; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/utils/MD5Util.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import cn.hutool.crypto.digest.DigestUtil; 4 | 5 | public class MD5Util { 6 | 7 | /** 8 | * @param text明文 9 | * @param key密钥 10 | * @return 密文 11 | */ 12 | // 带秘钥加密 13 | public static String md5(String text) { 14 | // 加密后的字符串 15 | String md5str = DigestUtil.md5Hex(text); 16 | return md5str; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/utils/PageUtils.java: -------------------------------------------------------------------------------- 1 | 2 | package com.utils; 3 | 4 | import java.io.Serializable; 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | import com.baomidou.mybatisplus.plugins.Page; 9 | 10 | /** 11 | * 分页工具类 12 | */ 13 | public class PageUtils implements Serializable { 14 | private static final long serialVersionUID = 1L; 15 | //总记录数 16 | private long total; 17 | //每页记录数 18 | private int pageSize; 19 | //总页数 20 | private long totalPage; 21 | //当前页数 22 | private int currPage; 23 | //列表数据 24 | private List list; 25 | 26 | /** 27 | * 分页 28 | * @param list 列表数据 29 | * @param totalCount 总记录数 30 | * @param pageSize 每页记录数 31 | * @param currPage 当前页数 32 | */ 33 | public PageUtils(List list, int totalCount, int pageSize, int currPage) { 34 | this.list = list; 35 | this.total = totalCount; 36 | this.pageSize = pageSize; 37 | this.currPage = currPage; 38 | this.totalPage = (int)Math.ceil((double)totalCount/pageSize); 39 | } 40 | 41 | /** 42 | * 分页 43 | */ 44 | public PageUtils(Page page) { 45 | this.list = page.getRecords(); 46 | this.total = page.getTotal(); 47 | this.pageSize = page.getSize(); 48 | this.currPage = page.getCurrent(); 49 | this.totalPage = page.getPages(); 50 | } 51 | 52 | /* 53 | * 空数据的分页 54 | */ 55 | public PageUtils(Map params) { 56 | Page page =new Query(params).getPage(); 57 | new PageUtils(page); 58 | } 59 | 60 | 61 | public int getPageSize() { 62 | return pageSize; 63 | } 64 | 65 | public void setPageSize(int pageSize) { 66 | this.pageSize = pageSize; 67 | } 68 | 69 | public int getCurrPage() { 70 | return currPage; 71 | } 72 | 73 | public void setCurrPage(int currPage) { 74 | this.currPage = currPage; 75 | } 76 | 77 | public List getList() { 78 | return list; 79 | } 80 | 81 | public void setList(List list) { 82 | this.list = list; 83 | } 84 | 85 | public long getTotalPage() { 86 | return totalPage; 87 | } 88 | 89 | public void setTotalPage(long totalPage) { 90 | this.totalPage = totalPage; 91 | } 92 | 93 | public long getTotal() { 94 | return total; 95 | } 96 | 97 | public void setTotal(long total) { 98 | this.total = total; 99 | } 100 | 101 | } 102 | -------------------------------------------------------------------------------- /src/main/java/com/utils/Query.java: -------------------------------------------------------------------------------- 1 | 2 | package com.utils; 3 | 4 | import java.util.LinkedHashMap; 5 | import java.util.Map; 6 | 7 | import org.apache.commons.lang3.StringUtils; 8 | 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | 11 | /** 12 | * 查询参数 13 | */ 14 | public class Query extends LinkedHashMap { 15 | private static final long serialVersionUID = 1L; 16 | /** 17 | * mybatis-plus分页参数 18 | */ 19 | private Page page; 20 | /** 21 | * 当前页码 22 | */ 23 | private int currPage = 1; 24 | /** 25 | * 每页条数 26 | */ 27 | private int limit = 10; 28 | 29 | public Query(JQPageInfo pageInfo) { 30 | //分页参数 31 | if(pageInfo.getPage()!= null){ 32 | currPage = pageInfo.getPage(); 33 | } 34 | if(pageInfo.getLimit()!= null){ 35 | limit = pageInfo.getLimit(); 36 | } 37 | 38 | 39 | //防止SQL注入(因为sidx、order是通过拼接SQL实现排序的,会有SQL注入风险) 40 | String sidx = SQLFilter.sqlInject(pageInfo.getSidx()); 41 | String order = SQLFilter.sqlInject(pageInfo.getOrder()); 42 | 43 | 44 | //mybatis-plus分页 45 | this.page = new Page<>(currPage, limit); 46 | 47 | //排序 48 | if(StringUtils.isNotBlank(sidx) && StringUtils.isNotBlank(order)){ 49 | this.page.setOrderByField(sidx); 50 | this.page.setAsc("ASC".equalsIgnoreCase(order)); 51 | } 52 | } 53 | 54 | 55 | public Query(Map params){ 56 | this.putAll(params); 57 | 58 | //分页参数 59 | if(params.get("page") != null){ 60 | currPage = Integer.parseInt((String)params.get("page")); 61 | } 62 | if(params.get("limit") != null){ 63 | limit = Integer.parseInt((String)params.get("limit")); 64 | } 65 | 66 | this.put("offset", (currPage - 1) * limit); 67 | this.put("page", currPage); 68 | this.put("limit", limit); 69 | 70 | //防止SQL注入(因为sidx、order是通过拼接SQL实现排序的,会有SQL注入风险) 71 | String sidx = SQLFilter.sqlInject((String)params.get("sidx")); 72 | String order = SQLFilter.sqlInject((String)params.get("order")); 73 | this.put("sidx", sidx); 74 | this.put("order", order); 75 | 76 | //mybatis-plus分页 77 | this.page = new Page<>(currPage, limit); 78 | 79 | //排序 80 | if(StringUtils.isNotBlank(sidx) && StringUtils.isNotBlank(order)){ 81 | this.page.setOrderByField(sidx); 82 | this.page.setAsc("ASC".equalsIgnoreCase(order)); 83 | } 84 | 85 | } 86 | 87 | public Page getPage() { 88 | return page; 89 | } 90 | 91 | public int getCurrPage() { 92 | return currPage; 93 | } 94 | 95 | public int getLimit() { 96 | return limit; 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /src/main/java/com/utils/R.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | /** 7 | * 返回数据 8 | */ 9 | public class R extends HashMap { 10 | private static final long serialVersionUID = 1L; 11 | 12 | public R() { 13 | put("code", 0); 14 | } 15 | 16 | public static R error() { 17 | return error(500, "未知异常,请联系管理员"); 18 | } 19 | 20 | public static R error(String msg) { 21 | return error(500, msg); 22 | } 23 | 24 | public static R error(int code, String msg) { 25 | R r = new R(); 26 | r.put("code", code); 27 | r.put("msg", msg); 28 | return r; 29 | } 30 | 31 | public static R ok(String msg) { 32 | R r = new R(); 33 | r.put("msg", msg); 34 | return r; 35 | } 36 | 37 | public static R ok(Map map) { 38 | R r = new R(); 39 | r.putAll(map); 40 | return r; 41 | } 42 | 43 | public static R ok() { 44 | return new R(); 45 | } 46 | 47 | public R put(String key, Object value) { 48 | super.put(key, value); 49 | return this; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/utils/SQLFilter.java: -------------------------------------------------------------------------------- 1 | 2 | package com.utils; 3 | 4 | import org.apache.commons.lang3.StringUtils; 5 | 6 | import com.entity.EIException; 7 | 8 | /** 9 | * SQL过滤 10 | */ 11 | public class SQLFilter { 12 | 13 | /** 14 | * SQL注入过滤 15 | * @param str 待验证的字符串 16 | */ 17 | public static String sqlInject(String str){ 18 | if(StringUtils.isBlank(str)){ 19 | return null; 20 | } 21 | //去掉'|"|;|\字符 22 | str = StringUtils.replace(str, "'", ""); 23 | str = StringUtils.replace(str, "\"", ""); 24 | str = StringUtils.replace(str, ";", ""); 25 | str = StringUtils.replace(str, "\\", ""); 26 | 27 | //转换成小写 28 | str = str.toLowerCase(); 29 | 30 | //非法字符 31 | String[] keywords = {"master", "truncate", "insert", "select", "delete", "update", "declare", "alter", "drop"}; 32 | 33 | //判断是否包含非法字符 34 | for(String keyword : keywords){ 35 | if(str.indexOf(keyword) != -1){ 36 | throw new EIException("包含非法字符"); 37 | } 38 | } 39 | 40 | return str; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/utils/SpringContextUtils.java: -------------------------------------------------------------------------------- 1 | 2 | package com.utils; 3 | 4 | import org.springframework.beans.BeansException; 5 | import org.springframework.context.ApplicationContext; 6 | import org.springframework.context.ApplicationContextAware; 7 | import org.springframework.stereotype.Component; 8 | 9 | 10 | /** 11 | * Spring Context 工具类 12 | */ 13 | @Component 14 | public class SpringContextUtils implements ApplicationContextAware { 15 | public static ApplicationContext applicationContext; 16 | 17 | @Override 18 | public void setApplicationContext(ApplicationContext applicationContext) 19 | throws BeansException { 20 | SpringContextUtils.applicationContext = applicationContext; 21 | } 22 | 23 | public static Object getBean(String name) { 24 | return applicationContext.getBean(name); 25 | } 26 | 27 | public static T getBean(String name, Class requiredType) { 28 | return applicationContext.getBean(name, requiredType); 29 | } 30 | 31 | public static boolean containsBean(String name) { 32 | return applicationContext.containsBean(name); 33 | } 34 | 35 | public static boolean isSingleton(String name) { 36 | return applicationContext.isSingleton(name); 37 | } 38 | 39 | public static Class getType(String name) { 40 | return applicationContext.getType(name); 41 | } 42 | 43 | } -------------------------------------------------------------------------------- /src/main/java/com/utils/ValidatorUtils.java: -------------------------------------------------------------------------------- 1 | 2 | package com.utils; 3 | 4 | 5 | import java.util.Set; 6 | 7 | import javax.validation.ConstraintViolation; 8 | import javax.validation.Validation; 9 | import javax.validation.Validator; 10 | 11 | import com.entity.EIException; 12 | 13 | /** 14 | * hibernate-validator校验工具类 15 | */ 16 | public class ValidatorUtils { 17 | private static Validator validator; 18 | 19 | static { 20 | validator = Validation.buildDefaultValidatorFactory().getValidator(); 21 | } 22 | 23 | /** 24 | * 校验对象 25 | * @param object 待校验对象 26 | * @param groups 待校验的组 27 | * @throws EIException 校验不通过,则报EIException异常 28 | */ 29 | public static void validateEntity(Object object, Class... groups) 30 | throws EIException { 31 | Set> constraintViolations = validator.validate(object, groups); 32 | if (!constraintViolations.isEmpty()) { 33 | ConstraintViolation constraint = (ConstraintViolation)constraintViolations.iterator().next(); 34 | throw new EIException(constraint.getMessage()); 35 | } 36 | } 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | # Tomcat 2 | server: 3 | tomcat: 4 | uri-encoding: UTF-8 5 | port: 8080 6 | servlet: 7 | context-path: /springbootwwiwn 8 | 9 | spring: 10 | datasource: 11 | driverClassName: com.mysql.jdbc.Driver 12 | url: jdbc:mysql://127.0.0.1:3306/springbootwwiwn?useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC 13 | username: root 14 | password: 123456 15 | servlet: 16 | multipart: 17 | max-file-size: 10MB 18 | max-request-size: 10MB 19 | resources: 20 | static-locations: classpath:static/,file:static/ 21 | 22 | #mybatis 23 | mybatis-plus: 24 | mapper-locations: classpath*:mapper/*.xml 25 | #实体扫描,多个package用逗号或者分号分隔 26 | typeAliasesPackage: com.entity 27 | global-config: 28 | #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID"; 29 | id-type: 1 30 | #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" 31 | field-strategy: 2 32 | #驼峰下划线转换 33 | db-column-underline: true 34 | #刷新mapper 调试神器 35 | refresh-mapper: true 36 | #逻辑删除配置 37 | logic-delete-value: -1 38 | logic-not-delete-value: 0 39 | #自定义SQL注入器 40 | sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector 41 | configuration: 42 | map-underscore-to-camel-case: true 43 | cache-enabled: false 44 | call-setters-on-nulls: true 45 | #springboot 项目mybatis plus 设置 jdbcTypeForNull (oracle数据库需配置JdbcType.NULL, 默认是Other) 46 | jdbc-type-for-null: 'null' 47 | -------------------------------------------------------------------------------- /src/main/resources/mapper/BanjiDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 22 | 23 | 29 | 30 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CommonDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 15 | 16 | 19 | 20 | 21 | UPDATE ${table} set sfsh=#{sfsh} where id=#{id} 22 | 23 | 24 | 44 | 45 | 48 | 49 | 52 | 53 | 56 | 57 | -------------------------------------------------------------------------------- /src/main/resources/mapper/ConfigDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/mapper/GonggaoxinxiDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 25 | 26 | 32 | 33 | 37 | 38 | -------------------------------------------------------------------------------- /src/main/resources/mapper/JiaoshiDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 23 | 24 | 29 | 30 | 36 | 37 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/resources/mapper/KechengleixingDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 22 | 23 | 29 | 30 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/mapper/KechengpingjiaDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | 33 | 34 | 40 | 41 | 45 | 46 | -------------------------------------------------------------------------------- /src/main/resources/mapper/KechengxinxiDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 23 | 24 | 29 | 30 | 36 | 37 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/resources/mapper/KechengziyuanDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 30 | 31 | 37 | 38 | 42 | 43 | -------------------------------------------------------------------------------- /src/main/resources/mapper/TokenDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/resources/mapper/UserDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/resources/mapper/XueshengDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 23 | 24 | 29 | 30 | 36 | 37 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/resources/mapper/XueshengxuankeDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 31 | 32 | 38 | 39 | 43 | 44 | -------------------------------------------------------------------------------- /src/main/resources/mapper/ZuoyebuzhiDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 30 | 31 | 37 | 38 | 42 | 43 | -------------------------------------------------------------------------------- /src/main/resources/mapper/ZuoyepingfenDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | 33 | 34 | 40 | 41 | 45 | 46 | -------------------------------------------------------------------------------- /src/main/resources/mapper/ZuoyetijiaoDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 26 | 27 | 32 | 33 | 39 | 40 | 44 | 45 | -------------------------------------------------------------------------------- /src/test/java/com/SpringbootSchemaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootSchemaApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | --------------------------------------------------------------------------------