计算机毕业设计 高校课程评价系统的设计与实现 Java实战项目 附源码+文档+视频讲解

博主介绍:✌从事软件开发10年之余,专注于Java技术领域、Python人工智能及数据挖掘、小程序项目开发和Android项目开发等。CSDN、掘金、华为云、InfoQ、阿里云等平台优质作者✌

🍅文末获取源码联系🍅

👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟
————————————————

计算机毕业设计题目《1000套》✌

目录

一.前言介绍

二.功能设计

三.功能截图

四.数据库表结构设计

五.关键代码

六.论文目录参考

七.源码获取

一.前言介绍

网络的广泛应用给生活带来了十分的便利。所以把高校课程评价管理与现在网络相结合,利用java技术建设高校课程评价系统,实现高校课程评价的信息化。则对于进一步提高高校课程评价管理发展,丰富高校课程评价管理经验能起到不少的促进作用。高校课程评价系统能够通过互联网得到广泛的、全面的宣传,让尽可能多的学生、教师和专家了解和熟知高校课程评价系统的便捷高效,不仅为学校提供了服务,而且也推广了自己,让更多的群众了解自己。对于高校课程评价而言,若拥有自己的系统,通过系统得到更好的管理,同时提升了形象。

二.功能设计

 本系统设计的现状和趋势,从需求、结构、数据库等方面的设计到系统的实现,分别为管理员、学生、专家和教师的实现。论文的内容从系统的设计、描述、实现、分析、测试方面来表明开发的过程。本系统根据现实情况来选择一种可行的开发方案,借助java编程语言和MySQL数据库等实现系统的全部功能,接下来对系统进行测试,测试系统是否有漏洞和测试用户权限来完善系统,最终系统完成达到相关标准。

 

三.功能截图 

 

 

 

 

四.数据库表结构设计

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `ssmnc4nx` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;USE `ssmnc4nx`;--
-- Table structure for table `banji`
--DROP TABLE IF EXISTS `banji`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `banji` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`banji` varchar(200) NOT NULL COMMENT '班级',PRIMARY KEY (`id`),UNIQUE KEY `banji` (`banji`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8 COMMENT='班级';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `banji`
--LOCK TABLES `banji` WRITE;
/*!40000 ALTER TABLE `banji` DISABLE KEYS */;
INSERT INTO `banji` VALUES (51,'2022-03-28 11:34:08','班级1'),(52,'2022-03-28 11:34:08','班级2'),(53,'2022-03-28 11:34:08','班级3'),(54,'2022-03-28 11:34:08','班级4'),(55,'2022-03-28 11:34:08','班级5'),(56,'2022-03-28 11:34:08','班级6');
/*!40000 ALTER TABLE `banji` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `config`
--DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `config` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`name` varchar(100) NOT NULL COMMENT '配置参数名称',`value` varchar(100) DEFAULT NULL COMMENT '配置参数值',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='配置文件';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `config`
--LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES (1,'picture1','upload/picture1.jpg'),(2,'picture2','upload/picture2.jpg'),(3,'picture3','upload/picture3.jpg');
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `jiaoshi`
--DROP TABLE IF EXISTS `jiaoshi`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `jiaoshi` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`jiaoshigonghao` varchar(200) NOT NULL COMMENT '教师工号',`mima` varchar(200) NOT NULL COMMENT '密码',`jiaoshixingming` varchar(200) NOT NULL COMMENT '教师姓名',`xingbie` varchar(200) DEFAULT NULL COMMENT '性别',`yuanxi` varchar(200) DEFAULT NULL COMMENT '院系',`zhuanye` varchar(200) NOT NULL COMMENT '专业',`zhicheng` varchar(200) DEFAULT NULL COMMENT '职称',`lianxidianhua` varchar(200) DEFAULT NULL COMMENT '联系电话',`jiaoshiyouxiang` varchar(200) DEFAULT NULL COMMENT '教师邮箱',PRIMARY KEY (`id`),UNIQUE KEY `jiaoshigonghao` (`jiaoshigonghao`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COMMENT='教师';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `jiaoshi`
--LOCK TABLES `jiaoshi` WRITE;
/*!40000 ALTER TABLE `jiaoshi` DISABLE KEYS */;
INSERT INTO `jiaoshi` VALUES (61,'2022-03-28 11:34:08','教师工号1','123456','教师姓名1','男','院系1','专业1','职称1','13823888881','773890001@qq.com'),(62,'2022-03-28 11:34:08','教师工号2','123456','教师姓名2','男','院系2','专业2','职称2','13823888882','773890002@qq.com'),(63,'2022-03-28 11:34:08','教师工号3','123456','教师姓名3','男','院系3','专业3','职称3','13823888883','773890003@qq.com'),(64,'2022-03-28 11:34:08','教师工号4','123456','教师姓名4','男','院系4','专业4','职称4','13823888884','773890004@qq.com'),(65,'2022-03-28 11:34:08','教师工号5','123456','教师姓名5','男','院系5','专业5','职称5','13823888885','773890005@qq.com'),(66,'2022-03-28 11:34:08','教师工号6','123456','教师姓名6','男','院系6','专业6','职称6','13823888886','773890006@qq.com');
/*!40000 ALTER TABLE `jiaoshi` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `jiaoshiziping`
--DROP TABLE IF EXISTS `jiaoshiziping`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `jiaoshiziping` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`kecheng` varchar(200) DEFAULT NULL COMMENT '课程',`quweixing` varchar(200) NOT NULL COMMENT '趣味性',`hudongxing` varchar(200) NOT NULL COMMENT '互动性',`kechengpingfen` int(11) NOT NULL COMMENT '课程评分',`zongtipingjia` varchar(200) NOT NULL COMMENT '总体评价',`pingjianeirong` longtext COMMENT '评价内容',`pingjiariqi` date DEFAULT NULL COMMENT '评价日期',`jiaoshigonghao` varchar(200) DEFAULT NULL COMMENT '教师工号',`crossuserid` bigint(20) DEFAULT NULL COMMENT '跨表用户id',`crossrefid` bigint(20) DEFAULT NULL COMMENT '跨表主键id',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8 COMMENT='教师自评';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `jiaoshiziping`
--LOCK TABLES `jiaoshiziping` WRITE;
/*!40000 ALTER TABLE `jiaoshiziping` DISABLE KEYS */;
INSERT INTO `jiaoshiziping` VALUES (101,'2022-03-28 11:34:08','课程1','1','1',1,'优秀','评价内容1','2022-03-28','教师工号1',1,1),(102,'2022-03-28 11:34:08','课程2','1','1',2,'优秀','评价内容2','2022-03-28','教师工号2',2,2),(103,'2022-03-28 11:34:08','课程3','1','1',3,'优秀','评价内容3','2022-03-28','教师工号3',3,3),(104,'2022-03-28 11:34:08','课程4','1','1',4,'优秀','评价内容4','2022-03-28','教师工号4',4,4),(105,'2022-03-28 11:34:08','课程5','1','1',5,'优秀','评价内容5','2022-03-28','教师工号5',5,5),(106,'2022-03-28 11:34:08','课程6','1','1',6,'优秀','评价内容6','2022-03-28','教师工号6',6,6);
/*!40000 ALTER TABLE `jiaoshiziping` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `kecheng`
--DROP TABLE IF EXISTS `kecheng`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `kecheng` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`kecheng` varchar(200) NOT NULL COMMENT '课程',PRIMARY KEY (`id`),UNIQUE KEY `kecheng` (`kecheng`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='课程';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `kecheng`
--LOCK TABLES `kecheng` WRITE;
/*!40000 ALTER TABLE `kecheng` DISABLE KEYS */;
INSERT INTO `kecheng` VALUES (21,'2022-03-28 11:34:08','课程1'),(22,'2022-03-28 11:34:08','课程2'),(23,'2022-03-28 11:34:08','课程3'),(24,'2022-03-28 11:34:08','课程4'),(25,'2022-03-28 11:34:08','课程5'),(26,'2022-03-28 11:34:08','课程6');
/*!40000 ALTER TABLE `kecheng` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `kechengxinxi`
--DROP TABLE IF EXISTS `kechengxinxi`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `kechengxinxi` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`mingcheng` varchar(200) NOT NULL COMMENT '名称',`kecheng` varchar(200) DEFAULT NULL COMMENT '课程',`banji` varchar(200) DEFAULT NULL COMMENT '班级',`kechengtupian` varchar(200) DEFAULT NULL COMMENT '课程图片',`jiaoxuedagang` varchar(200) DEFAULT NULL COMMENT '教学大纲',`kechengjindu` varchar(200) DEFAULT NULL COMMENT '课程进度',`kechengshipin` varchar(200) DEFAULT NULL COMMENT '课程视频',`kechengxiangqing` longtext COMMENT '课程详情',`jiaoshigonghao` varchar(200) DEFAULT NULL COMMENT '教师工号',`jiaoshixingming` varchar(200) DEFAULT NULL COMMENT '教师姓名',`lianxidianhua` varchar(200) DEFAULT NULL COMMENT '联系电话',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8 COMMENT='课程信息';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `kechengxinxi`
--LOCK TABLES `kechengxinxi` WRITE;
/*!40000 ALTER TABLE `kechengxinxi` DISABLE KEYS */;
INSERT INTO `kechengxinxi` VALUES (91,'2022-03-28 11:34:08','名称1','课程1','班级1','upload/kechengxinxi_kechengtupian1.jpg','教学大纲1','进行中','','课程详情1','教师工号1','教师姓名1','13823888881'),(92,'2022-03-28 11:34:08','名称2','课程2','班级2','upload/kechengxinxi_kechengtupian2.jpg','教学大纲2','进行中','','课程详情2','教师工号2','教师姓名2','13823888882'),(93,'2022-03-28 11:34:08','名称3','课程3','班级3','upload/kechengxinxi_kechengtupian3.jpg','教学大纲3','进行中','','课程详情3','教师工号3','教师姓名3','13823888883'),(94,'2022-03-28 11:34:08','名称4','课程4','班级4','upload/kechengxinxi_kechengtupian4.jpg','教学大纲4','进行中','','课程详情4','教师工号4','教师姓名4','13823888884'),(95,'2022-03-28 11:34:08','名称5','课程5','班级5','upload/kechengxinxi_kechengtupian5.jpg','教学大纲5','进行中','','课程详情5','教师工号5','教师姓名5','13823888885'),(96,'2022-03-28 11:34:08','名称6','课程6','班级6','upload/kechengxinxi_kechengtupian6.jpg','教学大纲6','进行中','','课程详情6','教师工号6','教师姓名6','13823888886');
/*!40000 ALTER TABLE `kechengxinxi` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `token`
--DROP TABLE IF EXISTS `token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `token` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`userid` bigint(20) NOT NULL COMMENT '用户id',`username` varchar(100) NOT NULL COMMENT '用户名',`tablename` varchar(100) DEFAULT NULL COMMENT '表名',`role` varchar(100) DEFAULT NULL COMMENT '角色',`token` varchar(200) NOT NULL COMMENT '密码',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',`expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='token表';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `token`
--LOCK TABLES `token` WRITE;
/*!40000 ALTER TABLE `token` DISABLE KEYS */;
INSERT INTO `token` VALUES (1,61,'教师工号1','jiaoshi','管理员','vpmgcrg9serfzovx026ga0ovj86o5kox','2022-03-28 11:37:49','2022-03-28 12:37:50');
/*!40000 ALTER TABLE `token` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `users`
--DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`username` varchar(100) NOT NULL COMMENT '用户名',`password` varchar(100) NOT NULL COMMENT '密码',`role` varchar(100) DEFAULT '管理员' COMMENT '角色',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='用户表';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `users`
--LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'abo','abo','管理员','2022-03-28 11:34:08');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `xuesheng`
--DROP TABLE IF EXISTS `xuesheng`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xuesheng` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`xuehao` varchar(200) NOT NULL COMMENT '学号',`mima` varchar(200) NOT NULL COMMENT '密码',`xingming` varchar(200) NOT NULL COMMENT '姓名',`xingbie` varchar(200) DEFAULT NULL COMMENT '性别',`shouji` varchar(200) DEFAULT NULL COMMENT '手机',`yuanxi` varchar(200) DEFAULT NULL COMMENT '院系',`zhuanye` varchar(200) DEFAULT NULL COMMENT '专业',`banji` varchar(200) DEFAULT NULL COMMENT '班级',`youxiang` varchar(200) DEFAULT NULL COMMENT '邮箱',PRIMARY KEY (`id`),UNIQUE KEY `xuehao` (`xuehao`)
) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8 COMMENT='学生';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `xuesheng`
--LOCK TABLES `xuesheng` WRITE;
/*!40000 ALTER TABLE `xuesheng` DISABLE KEYS */;
INSERT INTO `xuesheng` VALUES (81,'2022-03-28 11:34:08','学号1','123456','姓名1','男','13823888881','院系1','专业1','班级1','773890001@qq.com'),(82,'2022-03-28 11:34:08','学号2','123456','姓名2','男','13823888882','院系2','专业2','班级2','773890002@qq.com'),(83,'2022-03-28 11:34:08','学号3','123456','姓名3','男','13823888883','院系3','专业3','班级3','773890003@qq.com'),(84,'2022-03-28 11:34:08','学号4','123456','姓名4','男','13823888884','院系4','专业4','班级4','773890004@qq.com'),(85,'2022-03-28 11:34:08','学号5','123456','姓名5','男','13823888885','院系5','专业5','班级5','773890005@qq.com'),(86,'2022-03-28 11:34:08','学号6','123456','姓名6','男','13823888886','院系6','专业6','班级6','773890006@qq.com');
/*!40000 ALTER TABLE `xuesheng` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `xueshengpingjia`
--DROP TABLE IF EXISTS `xueshengpingjia`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xueshengpingjia` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`kecheng` varchar(200) DEFAULT NULL COMMENT '课程',`banji` varchar(200) DEFAULT NULL COMMENT '班级',`jiaoxuenengli` varchar(200) NOT NULL COMMENT '教学能力',`jiaoxuexiaoguo` varchar(200) NOT NULL COMMENT '教学效果',`quweixing` varchar(200) NOT NULL COMMENT '趣味性',`hudongxing` varchar(200) NOT NULL COMMENT '互动性',`jiaoxuepingfen` int(11) NOT NULL COMMENT '教学评分',`jiaoxuepingji` varchar(200) NOT NULL COMMENT '教学评级',`jiaoxuepingjia` longtext COMMENT '教学评价',`jiaoshigonghao` varchar(200) DEFAULT NULL COMMENT '教师工号',`xuehao` varchar(200) DEFAULT NULL COMMENT '学号',`xingming` varchar(200) DEFAULT NULL COMMENT '姓名',`crossuserid` bigint(20) DEFAULT NULL COMMENT '跨表用户id',`crossrefid` bigint(20) DEFAULT NULL COMMENT '跨表主键id',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8 COMMENT='学生评价';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `xueshengpingjia`
--LOCK TABLES `xueshengpingjia` WRITE;
/*!40000 ALTER TABLE `xueshengpingjia` DISABLE KEYS */;
INSERT INTO `xueshengpingjia` VALUES (121,'2022-03-28 11:34:08','课程1','班级1','1','1','1','1',1,'优秀','教学评价1','教师工号1','学号1','姓名1',1,1),(122,'2022-03-28 11:34:08','课程2','班级2','1','1','1','1',2,'优秀','教学评价2','教师工号2','学号2','姓名2',2,2),(123,'2022-03-28 11:34:08','课程3','班级3','1','1','1','1',3,'优秀','教学评价3','教师工号3','学号3','姓名3',3,3),(124,'2022-03-28 11:34:08','课程4','班级4','1','1','1','1',4,'优秀','教学评价4','教师工号4','学号4','姓名4',4,4),(125,'2022-03-28 11:34:08','课程5','班级5','1','1','1','1',5,'优秀','教学评价5','教师工号5','学号5','姓名5',5,5),(126,'2022-03-28 11:34:08','课程6','班级6','1','1','1','1',6,'优秀','教学评价6','教师工号6','学号6','姓名6',6,6);
/*!40000 ALTER TABLE `xueshengpingjia` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `yuanxi`
--DROP TABLE IF EXISTS `yuanxi`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yuanxi` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`yuanxi` varchar(200) NOT NULL COMMENT '院系',PRIMARY KEY (`id`),UNIQUE KEY `yuanxi` (`yuanxi`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='院系';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `yuanxi`
--LOCK TABLES `yuanxi` WRITE;
/*!40000 ALTER TABLE `yuanxi` DISABLE KEYS */;
INSERT INTO `yuanxi` VALUES (31,'2022-03-28 11:34:08','院系1'),(32,'2022-03-28 11:34:08','院系2'),(33,'2022-03-28 11:34:08','院系3'),(34,'2022-03-28 11:34:08','院系4'),(35,'2022-03-28 11:34:08','院系5'),(36,'2022-03-28 11:34:08','院系6');
/*!40000 ALTER TABLE `yuanxi` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `zhibiaoxinxi`
--DROP TABLE IF EXISTS `zhibiaoxinxi`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zhibiaoxinxi` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`zhibiaohao` varchar(200) DEFAULT NULL COMMENT '指标号',`zhibiaomingcheng` varchar(200) DEFAULT NULL COMMENT '指标名称',`zhibiaoquanzhong` varchar(200) DEFAULT NULL COMMENT '指标权重',`zhibiaoneirong` longtext COMMENT '指标内容',PRIMARY KEY (`id`),UNIQUE KEY `zhibiaohao` (`zhibiaohao`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='指标信息';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `zhibiaoxinxi`
--LOCK TABLES `zhibiaoxinxi` WRITE;
/*!40000 ALTER TABLE `zhibiaoxinxi` DISABLE KEYS */;
INSERT INTO `zhibiaoxinxi` VALUES (11,'2022-03-28 11:34:08','1111111111','指标名称1','指标权重1','指标内容1'),(12,'2022-03-28 11:34:08','2222222222','指标名称2','指标权重2','指标内容2'),(13,'2022-03-28 11:34:08','3333333333','指标名称3','指标权重3','指标内容3'),(14,'2022-03-28 11:34:08','4444444444','指标名称4','指标权重4','指标内容4'),(15,'2022-03-28 11:34:08','5555555555','指标名称5','指标权重5','指标内容5'),(16,'2022-03-28 11:34:08','6666666666','指标名称6','指标权重6','指标内容6');
/*!40000 ALTER TABLE `zhibiaoxinxi` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `zhuanjia`
--DROP TABLE IF EXISTS `zhuanjia`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zhuanjia` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`zhuanjiazhanghao` varchar(200) NOT NULL COMMENT '专家账号',`mima` varchar(200) NOT NULL COMMENT '密码',`zhuanjiaxingming` varchar(200) DEFAULT NULL COMMENT '专家姓名',`xingbie` varchar(200) DEFAULT NULL COMMENT '性别',`zhicheng` varchar(200) DEFAULT NULL COMMENT '职称',`dianhua` varchar(200) DEFAULT NULL COMMENT '电话',PRIMARY KEY (`id`),UNIQUE KEY `zhuanjiazhanghao` (`zhuanjiazhanghao`)
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8 COMMENT='专家';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `zhuanjia`
--LOCK TABLES `zhuanjia` WRITE;
/*!40000 ALTER TABLE `zhuanjia` DISABLE KEYS */;
INSERT INTO `zhuanjia` VALUES (71,'2022-03-28 11:34:08','专家账号1','123456','专家姓名1','男','职称1','13823888881'),(72,'2022-03-28 11:34:08','专家账号2','123456','专家姓名2','男','职称2','13823888882'),(73,'2022-03-28 11:34:08','专家账号3','123456','专家姓名3','男','职称3','13823888883'),(74,'2022-03-28 11:34:08','专家账号4','123456','专家姓名4','男','职称4','13823888884'),(75,'2022-03-28 11:34:08','专家账号5','123456','专家姓名5','男','职称5','13823888885'),(76,'2022-03-28 11:34:08','专家账号6','123456','专家姓名6','男','职称6','13823888886');
/*!40000 ALTER TABLE `zhuanjia` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `zhuanjiapingjia`
--DROP TABLE IF EXISTS `zhuanjiapingjia`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zhuanjiapingjia` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`kecheng` varchar(200) DEFAULT NULL COMMENT '课程',`jiaoxuenengli` varchar(200) NOT NULL COMMENT '教学能力',`jiaoxuexiaoguo` varchar(200) NOT NULL COMMENT '教学效果',`xueshengzhuangtai` varchar(200) NOT NULL COMMENT '学生状态',`jiaoxuepingfen` int(11) NOT NULL COMMENT '教学评分',`jiaoxuepingji` varchar(200) NOT NULL COMMENT '教学评级',`pingjianeirong` longtext NOT NULL COMMENT '评价内容',`jiaoshigonghao` varchar(200) DEFAULT NULL COMMENT '教师工号',`jiaoshixingming` varchar(200) DEFAULT NULL COMMENT '教师姓名',`pingjiariqi` date DEFAULT NULL COMMENT '评价日期',`zhuanjiazhanghao` varchar(200) DEFAULT NULL COMMENT '专家账号',`zhuanjiaxingming` varchar(200) DEFAULT NULL COMMENT '专家姓名',`crossuserid` bigint(20) DEFAULT NULL COMMENT '跨表用户id',`crossrefid` bigint(20) DEFAULT NULL COMMENT '跨表主键id',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=117 DEFAULT CHARSET=utf8 COMMENT='专家评价';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `zhuanjiapingjia`
--LOCK TABLES `zhuanjiapingjia` WRITE;
/*!40000 ALTER TABLE `zhuanjiapingjia` DISABLE KEYS */;
INSERT INTO `zhuanjiapingjia` VALUES (111,'2022-03-28 11:34:08','课程1','1','1','1',1,'优秀','评价内容1','教师工号1','教师姓名1','2022-03-28','专家账号1','专家姓名1',1,1),(112,'2022-03-28 11:34:08','课程2','1','1','1',2,'优秀','评价内容2','教师工号2','教师姓名2','2022-03-28','专家账号2','专家姓名2',2,2),(113,'2022-03-28 11:34:08','课程3','1','1','1',3,'优秀','评价内容3','教师工号3','教师姓名3','2022-03-28','专家账号3','专家姓名3',3,3),(114,'2022-03-28 11:34:08','课程4','1','1','1',4,'优秀','评价内容4','教师工号4','教师姓名4','2022-03-28','专家账号4','专家姓名4',4,4),(115,'2022-03-28 11:34:08','课程5','1','1','1',5,'优秀','评价内容5','教师工号5','教师姓名5','2022-03-28','专家账号5','专家姓名5',5,5),(116,'2022-03-28 11:34:08','课程6','1','1','1',6,'优秀','评价内容6','教师工号6','教师姓名6','2022-03-28','专家账号6','专家姓名6',6,6);
/*!40000 ALTER TABLE `zhuanjiapingjia` ENABLE KEYS */;
UNLOCK TABLES;--
-- Table structure for table `zhuanye`
--DROP TABLE IF EXISTS `zhuanye`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `zhuanye` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`zhuanye` varchar(200) NOT NULL COMMENT '专业',PRIMARY KEY (`id`),UNIQUE KEY `zhuanye` (`zhuanye`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8 COMMENT='专业';
/*!40101 SET character_set_client = @saved_cs_client */;--
-- Dumping data for table `zhuanye`
--LOCK TABLES `zhuanye` WRITE;
/*!40000 ALTER TABLE `zhuanye` DISABLE KEYS */;
INSERT INTO `zhuanye` VALUES (41,'2022-03-28 11:34:08','专业1'),(42,'2022-03-28 11:34:08','专业2'),(43,'2022-03-28 11:34:08','专业3'),(44,'2022-03-28 11:34:08','专业4'),(45,'2022-03-28 11:34:08','专业5'),(46,'2022-03-28 11:34:08','专业6');
/*!40000 ALTER TABLE `zhuanye` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;-- Dump completed on 2022-03-28 21:20:45

五.关键代码

package com.controller;import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.TokenEntity;
import com.entity.UserEntity;
import com.service.TokenService;
import com.service.UserService;
import com.utils.CommonUtil;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.ValidatorUtils;/*** 登录相关*/
@RequestMapping("users")
@RestController
public class UserController{@Autowiredprivate UserService userService;@Autowiredprivate TokenService tokenService;/*** 登录*/@IgnoreAuth@PostMapping(value = "/login")public R login(String username, String password, String captcha, HttpServletRequest request) {UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null || !user.getPassword().equals(password)) {return R.error("账号或密码不正确");}String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());return R.ok().put("token", token);}/*** 注册*/@IgnoreAuth@PostMapping(value = "/register")public R register(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用户已存在");}userService.insert(user);return R.ok();}/*** 退出*/@GetMapping(value = "logout")public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok("退出成功");}/*** 密码重置*/@IgnoreAuth@RequestMapping(value = "/resetPass")public R resetPass(String username, HttpServletRequest request){UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));if(user==null) {return R.error("账号不存在");}user.setPassword("123456");userService.update(user,null);return R.ok("密码已重置为:123456");}/*** 列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/list")public R list( UserEntity user){EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>();ew.allEq(MPUtil.allEQMapPre( user, "user")); return R.ok().put("data", userService.selectListView(ew));}/*** 信息*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") String id){UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 获取用户的session用户信息*/@RequestMapping("/session")public R getCurrUser(HttpServletRequest request){Long id = (Long)request.getSession().getAttribute("userId");UserEntity user = userService.selectById(id);return R.ok().put("data", user);}/*** 保存*/@PostMapping("/save")public R save(@RequestBody UserEntity user){
//    	ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {return R.error("用户已存在");}userService.insert(user);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody UserEntity user){
//        ValidatorUtils.validateEntity(user);UserEntity u = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername()));if(u!=null && u.getId()!=user.getId() && u.getUsername().equals(user.getUsername())) {return R.error("用户名已存在。");}userService.updateById(user);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();}
}

六.论文目录参考

七.源码获取

感谢大家的阅读,如有不懂的问题可以评论区交流或私聊!

喜欢文章可以点赞、收藏、关注、评论啦 、👇🏻获取源码+V:jsjbysj88👇🏻

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/107279.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【大数据Hive】hive 加载数据常用方案使用详解

目录 一、前言 二、load 命令使用 2.1 load 概述 2.1.1 load 语法规则 2.1.2 load语法规则重要参数说明 2.2 load 数据加载操作演示 2.2.1 前置准备 2.2.2 加载本地数据 2.2.3 HDFS加载数据 2.2.4 从HDFS加载数据到分区表中并指定分区 2.3 hive3.0 load 命令新特性 …

MySQL使用Xtrabackup备份到AWS存储桶

1.安装Xtrabackup cd /tmp wget https://downloads.percona.com/downloads/Percona-XtraBackup-8.0/Percona-XtraBackup-8.0.33-28/binary/redhat/7/x86_64/percona-xtrabackup-80-8.0.33-28.1.el7.x86_64.rpm yum -y localinstall percona-xtrabackup-80-8.0.33-28.1.el7.x86…

论文阅读:SERE: Exploring Feature Self-relation for Self-supervised Transformer

Related Work Self-supervised 学习目的是在无人工标注的情况下通过自定制的任务&#xff08;hand-crafted pretext tasks&#xff09;学习丰富的表示。 Abstract 使用自监督学习为卷积网络&#xff08;CNN&#xff09;学习表示已经被验证对视觉任务有效。作为CNN的一种替代…

力扣刷题-移除指定值的链表元素

力扣203移除元素 题目来源&#xff1a; 力扣203 题目描述&#xff1a; 非常简单的一道题&#xff0c;主要强调两点 链表删除要记录删除位置的前驱节点 头节点没有前驱 因此直接headhead.next为了保持与后两种一致&#xff0c;加上虚拟节点&#xff0c;下一节点指向头节点 /***…

vscode开发油猴插件环境配置指南

文章目录 一、环境配置1.1油猴插件开始编写代码1.2油猴插件配置1.2.1浏览器插件权限1.2.2插件自身权限 2. 油猴脚本API学习2.1 头文件2.2 油猴API 一、环境配置 1.1油猴插件开始编写代码 在vscode 中写入如下代码‘ // UserScript // name cds_test // namespace …

性能测试度量指标

1-响应时间 响应时间指从用户或事务在客户端发起一个请求开始&#xff0c;到客户端接收到从服务器端返回的响应结束&#xff0c;这整个过程所消耗的时间 在性能测试实践中&#xff0c;为了使响应时间更具代表性&#xff0c;响应时间通常是指事务的平均响应时间ART 在实践中要…

2002-2020年地级市各类制造业企业进入数量数据

2002-2020年地级市各类制造业企业进入数量数据 1、时间&#xff1a;2002-2020年 2、指标&#xff1a;地区、年份、城市代码、所属省份、省份代码、高技术行业企业数量、中高技术行业企业数量、中低技术行业企业数量、低技术行业企业数量 3、样本量&#xff1a;1万多条 4、来…

Android 文字转语音播放实现

1&#xff0c;TextToSpeech类是android自带的&#xff0c;但是部分设备需要支持TTS需要增加语音库&#xff0c;我使用的是讯飞语音&#xff08;离线的哦&#xff09;。请自行下载并安装讯飞语音APK&#xff0c;然后到系统设置中设置TTS功能默认使用该选项。有自带TTS库的可以省…

Spring-MVC的文件上传下载,及插件的使用(让项目开发更节省时间)

目录 一、概述 ( 1 ) 介绍 ( 2 ) 讲述 二、上传 三、下载 四、jrebel的使用 五、多文件上传 给我们带来什么收获 一、概述 ( 1 ) 介绍 Spring MVC的文件上传下载是指在Spring MVC框架中实现文件的上传和下载功能。文件上传是指将本地计算机上的文件上传到服务器端…

圆的反演 hdu 4773

欢迎关注更多精彩 关注我&#xff0c;学习常用算法与数据结构&#xff0c;一题多解&#xff0c;降维打击。 题目大意 http://acm.hdu.edu.cn/showproblem.php?pid4773 给定2个不相交的圆以及圆外1点P。求过P并且与另两个圆相切&#xff08;外切&#xff09;的圆&#xff0c…

解决2K/4K高分屏下Vmware等虚拟机下Kail Linux界面显示问题

问题现象 在我们日常使用VirtualBox、Vmware workstation、Hyper-V等虚拟机安装使用Kali系统&#xff0c;在2K/4K高分辨率电脑下Kali系统界面显示太小&#xff0c;包括各种软件及命令终端字体均无法很直观的看出&#xff0c;影响我们的正常测试及使用。 常规处理思路 很多人…

软件设计师_计算机组成与体系结构

计算机组成与体系结构 文章目录 1.1 数据的表示1.1.1 进制的转换1.1.2 原码 反码 补码 移码1.1.3 浮点数运算 1.2 计算机结构1.3 Flynn分类法1.4 CISC和RISC1.5 流水线技术1.6 存储系统1.7 总线系统1.8 可靠性1.9 校验码 1.1 数据的表示 1.1.1 进制的转换 R进制转十进制 --&g…