计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解

博主介绍:✌从事软件开发10年之余,专注于Java技术领域、Python人工智能及数据挖掘、小程序项目开发和Android项目开发等。CSDN、掘金、华为云、InfoQ、阿里云等平台优质作者✌
文末获取源码联系
精彩专栏推荐订阅 不然下次找不到哟
————————————————
计算机毕业设计《1000套》✌

1、项目介绍及开发技术

1.1 项目介绍

如今社会上各行各业,都喜欢用自己行业的专属软件工作,互联网发展到这个时候,人们已经发现离不开了互联网。新技术的产生,往往能解决一些老技术的弊端问题。因为传统党员学习交流平台信息管理难度大,容错率低,管理人员处理数据费工费时,所以专门为解决这个难题开发了一个党员学习交流平台管理系统,可以解决许多问题。

党员学习交流平台管理系统按照操作主体分为管理员和用户。管理员的功能包括管理作业,管理党员学习交流平台信息,包括试卷管理,课程,试题管理,作业提交等,可以管理课程。用户的功能包括管理部门以及部门岗位信息,管理试卷信息,培训信息,薪资信息等。

党员学习交流平台管理系统可以提高党员学习交流平台信息管理问题的解决效率,优化党员学习交流平台信息处理流程,保证党员学习交流平台信息数据的安全,它是一个非常可靠,非常安全的应用程序。

1.2 开发技术

Java开发语言、SpringBoot、MyBatisPlus、MySQL数据库、Maven、IDEA开发工具、JDK1.8+、Vue、HTML、CSS、JS。

2、系统功能设计结构图

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第1张图片

3、功能截图

3.1 前台功能

试卷:用户在这里进行课程的相关考试和学习。

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第2张图片

课程:用户可以对各个课程进行观看学习。

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第3张图片

作业: 用户在作业提交界面中编辑作业信息。

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第4张图片

3.2 后台功能

试卷管理:管理员在试卷管理界面中可以对界面中显示的所有数据进行导出,可以对试卷信息的试卷状态进行查看,可以添加新的试卷信息等。

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第5张图片

 试题管理:管理员在试题管理界面中新增试题信息等。

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第6张图片

课程管理: 管理员在课程管理界面中新增课程,并设置课程的角色,可以删除课程。

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第7张图片

作业管理: 管理员在作业管理界面查看作业的工作状态为已批改还是未批改,可以添加新作业的信息,可以编辑作业信息,删除作业信息。

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第8张图片

4、数据库表结构设计

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='配置文件';

/*Data for the table `config` */

insert  into `config`(`id`,`name`,`value`) values (1,'轮播图1','upload/config1.jpg'),(2,'轮播图2','upload/config2.jpg'),(3,'轮播图3','upload/config3.jpg');

/*Table structure for table `dictionary` */

DROP TABLE IF EXISTS `dictionary`;

CREATE TABLE `dictionary` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `dic_code` varchar(200) DEFAULT NULL COMMENT '字段',
  `dic_name` varchar(200) DEFAULT NULL COMMENT '字段名',
  `code_index` int(11) DEFAULT NULL COMMENT '编码',
  `index_name` varchar(200) DEFAULT NULL COMMENT '编码名字  Search111 ',
  `super_id` int(11) DEFAULT NULL COMMENT '父字段id',
  `beizhu` varchar(200) DEFAULT NULL COMMENT '备注',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='字典';

/*Data for the table `dictionary` */

insert  into `dictionary`(`id`,`dic_code`,`dic_name`,`code_index`,`index_name`,`super_id`,`beizhu`,`create_time`) values (1,'sex_types','性别类型',1,'男',NULL,NULL,'2023-03-08 13:31:31'),(2,'sex_types','性别类型',2,'女',NULL,NULL,'2023-03-08 13:31:31'),(3,'zujuan_types','组卷方式',1,'自动组卷',NULL,NULL,'2023-03-08 13:31:31'),(4,'zujuan_types','组卷方式',2,'手动组卷',NULL,NULL,'2023-03-08 13:31:31'),(5,'kemu_types','科目',1,'语文',NULL,NULL,'2023-03-08 13:31:31'),(6,'kemu_types','科目',2,'数学',NULL,NULL,'2023-03-08 13:31:31'),(7,'exampaper_types','试卷状态',1,'启用',NULL,NULL,'2023-03-08 13:31:31'),(8,'exampaper_types','试卷状态',2,'禁用',NULL,NULL,'2023-03-08 13:31:31'),(9,'examquestion_types','试题类型',1,'单选题',NULL,NULL,'2023-03-08 13:31:31'),(10,'examquestion_types','试题类型',2,'多选题',NULL,NULL,'2023-03-08 13:31:31'),(11,'examquestion_types','试题类型',3,'判断题',NULL,NULL,'2023-03-08 13:31:31'),(12,'examquestion_types','试题类型',4,'填空题',NULL,NULL,'2023-03-08 13:31:31'),(13,'kecheng_types','课程类型',1,'课程类型1',NULL,NULL,'2023-03-08 13:31:31'),(14,'kecheng_types','课程类型',2,'课程类型2',NULL,NULL,'2023-03-08 13:31:31'),(15,'kecheng_types','课程类型',3,'课程类型3',NULL,NULL,'2023-03-08 13:31:31'),(16,'kecheng_types','课程类型',4,'课程类型4',NULL,NULL,'2023-03-08 13:31:31'),(17,'ziliao_types','资料信息类型',1,'资料信息类型1',NULL,NULL,'2023-03-08 13:31:31'),(18,'ziliao_types','资料信息类型',2,'资料信息类型2',NULL,NULL,'2023-03-08 13:31:31'),(19,'ziliao_types','资料信息类型',3,'资料信息类型3',NULL,NULL,'2023-03-08 13:31:31'),(20,'ziliao_types','资料信息类型',4,'资料信息类型4',NULL,NULL,'2023-03-08 13:31:31'),(21,'zuoye_types','作业类型',1,'作业类型1',NULL,NULL,'2023-03-08 13:31:31'),(22,'zuoye_types','作业类型',2,'作业类型2',NULL,NULL,'2023-03-08 13:31:31'),(23,'zuoye_types','作业类型',3,'作业类型3',NULL,NULL,'2023-03-08 13:31:31'),(24,'zuoye_types','作业类型',4,'作业类型4',NULL,NULL,'2023-03-08 13:31:31'),(25,'zuoye_tijiao_yesno_types','提交状态',1,'待审批',NULL,NULL,'2023-03-08 13:31:31'),(26,'zuoye_tijiao_yesno_types','提交状态',2,'已批改',NULL,NULL,'2023-03-08 13:31:31'),(27,'zuoye_tijiao_yesno_types','提交状态',3,'未批改',NULL,NULL,'2023-03-08 13:31:31'),(28,'gonggao_types','公告类型',1,'公告类型1',NULL,NULL,'2023-03-08 13:31:31'),(29,'gonggao_types','公告类型',2,'公告类型2',NULL,NULL,'2023-03-08 13:31:31'),(30,'forum_state_types','帖子状态',1,'发帖',NULL,NULL,'2023-03-08 13:31:31'),(31,'forum_state_types','帖子状态',2,'回帖',NULL,NULL,'2023-03-08 13:31:31');

/*Table structure for table `exampaper` */

DROP TABLE IF EXISTS `exampaper`;

CREATE TABLE `exampaper` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `exampaper_name` varchar(200) NOT NULL COMMENT '试卷名称 Search111',
  `exampaper_date` int(11) DEFAULT NULL COMMENT '考试时长(分钟)',
  `exampaper_myscore` int(20) NOT NULL DEFAULT '0' COMMENT '试卷总分数',
  `kemu_types` int(11) DEFAULT NULL COMMENT '科目 Search111',
  `exampaper_types` int(11) NOT NULL DEFAULT '0' COMMENT '试卷状态 Search111',
  `zujuan_types` int(11) DEFAULT NULL COMMENT '组卷方式',
  `exampaper_delete` int(255) DEFAULT '0' COMMENT '逻辑删除(1代表未删除 2代表已删除)',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间 show2 photoShow',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='试卷';

/*Data for the table `exampaper` */

insert  into `exampaper`(`id`,`exampaper_name`,`exampaper_date`,`exampaper_myscore`,`kemu_types`,`exampaper_types`,`zujuan_types`,`exampaper_delete`,`create_time`) values (1,'测试试卷1',60,100,2,1,2,1,'2023-03-08 13:31:31'),(2,'测试试卷2',180,100,2,1,1,1,'2023-03-08 13:31:31');

/*Table structure for table `exampapertopic` */

DROP TABLE IF EXISTS `exampapertopic`;

CREATE TABLE `exampapertopic` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `exampaper_id` int(20) NOT NULL COMMENT '试卷',
  `examquestion_id` int(20) NOT NULL COMMENT '试题',
  `exampapertopic_number` int(20) NOT NULL COMMENT '试题分数',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COMMENT='试卷选题';

/*Data for the table `exampapertopic` */

insert  into `exampapertopic`(`id`,`exampaper_id`,`examquestion_id`,`exampapertopic_number`,`create_time`) values (7,1,5,10,'2023-03-08 13:31:31'),(8,1,4,10,'2023-03-08 13:31:31'),(9,1,6,70,'2023-03-08 13:31:31'),(18,2,5,15,'2023-03-08 13:31:31'),(19,2,11,15,'2023-03-08 13:31:31'),(20,2,9,15,'2023-03-08 13:31:31'),(21,2,1,15,'2023-03-08 13:31:31'),(22,2,10,20,'2023-03-08 13:31:31'),(23,2,3,20,'2023-03-08 13:31:31'),(31,1,7,10,'2023-03-08 13:31:31'),(33,1,9,0,'2023-03-08 13:31:31'),(34,1,12,0,'2023-03-08 13:31:31');

/*Table structure for table `examquestion` */

DROP TABLE IF EXISTS `examquestion`;

CREATE TABLE `examquestion` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `examquestion_name` varchar(200) DEFAULT NULL COMMENT '试题名称 Search111',
  `kemu_types` int(11) DEFAULT NULL COMMENT '科目 Search111',
  `examquestion_options` longtext COMMENT '选项,json字符串',
  `examquestion_answer` varchar(200) DEFAULT NULL COMMENT '正确答案',
  `examquestion_analysis` longtext COMMENT '答案解析',
  `examquestion_types` int(20) DEFAULT '0' COMMENT '试题类型 Search111',
  `examquestion_sequence` int(20) DEFAULT '100' COMMENT '试题排序,值越大排越前面',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='试题表';

/*Data for the table `examquestion` */

insert  into `examquestion`(`id`,`examquestion_name`,`kemu_types`,`examquestion_options`,`examquestion_answer`,`examquestion_analysis`,`examquestion_types`,`examquestion_sequence`,`create_time`) values (1,'1-1=1',2,'[{\"text\":\"对\",\"code\":\"A\"},{\"text\":\"错\",\"code\":\"B\"}]','B','1-1=0',3,1,'2023-03-08 13:31:31'),(2,'1+1=?',2,'[{\"text\":\"1\",\"code\":\"A\"},{\"text\":\"2\",\"code\":\"B\"},{\"text\":\"3\",\"code\":\"C\"},{\"text\":\"4\",\"code\":\"D\"}]','B','1+1=2',1,2,'2023-03-08 13:31:31'),(3,'1+1-1=?',2,'[]','1','1+1-1=1',4,3,'2023-03-08 13:31:31'),(4,'2+2=?',2,'[]','4','2+2=4',4,4,'2023-03-08 13:31:31'),(5,'1-1-1+6=?',2,'[{\"text\":\"4\",\"code\":\"A\"},{\"text\":\"5\",\"code\":\"B\"},{\"text\":\"6\",\"code\":\"C\"},{\"text\":\"3\",\"code\":\"D\"}]','B','1-1-1+6=5',1,5,'2023-03-08 13:31:31'),(6,'3+3=9',2,'[{\"text\":\"对\",\"code\":\"A\"},{\"text\":\"错\",\"code\":\"B\"}]','B','3+3=6',3,6,'2023-03-08 13:31:31'),(7,'试题名称1',2,'[{\"text\":\"内容1\",\"code\":\"A\"},{\"text\":\"内容2\",\"code\":\"B\"},{\"text\":\"内容3\",\"code\":\"C\"},{\"text\":\"内容4\",\"code\":\"D\"}]','A,B,C','答案解析1',2,7,'2023-03-08 13:31:31'),(8,'试题名称2',2,'[]','正确答案2','答案解析2',4,8,'2023-03-08 13:31:31'),(9,'试题名称3',2,'[{\"text\":\"对\",\"code\":\"A\"},{\"text\":\"错\",\"code\":\"B\"}]','A','答案解析3',3,9,'2023-03-08 13:31:31'),(10,'试题名称4',2,'[]','正确答案4','答案解析4',4,10,'2023-03-08 13:31:31'),(11,'试题名称5',2,'[{\"text\":\"内容1\",\"code\":\"A\"},{\"text\":\"内容2\",\"code\":\"B\"},{\"text\":\"内容3\",\"code\":\"C\"},{\"text\":\"内容4\",\"code\":\"D\"}]','B','答案解析5',1,11,'2023-03-08 13:31:31'),(12,'试题名称6',2,'[{\"text\":\"内容1\",\"code\":\"A\"},{\"text\":\"内容2\",\"code\":\"B\"},{\"text\":\"内容3\",\"code\":\"C\"},{\"text\":\"内容4\",\"code\":\"D\"}]','A','答案解析6',1,12,'2023-03-08 13:31:31');

/*Table structure for table `examrecord` */

DROP TABLE IF EXISTS `examrecord`;

CREATE TABLE `examrecord` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `examrecord_uuid_number` varchar(200) DEFAULT NULL COMMENT '考试编号',
  `yonghu_id` int(20) NOT NULL COMMENT '考试用户',
  `exampaper_id` int(20) NOT NULL COMMENT '所属试卷id(外键)',
  `total_score` int(200) DEFAULT NULL COMMENT '所得总分',
  `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '考试时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考试记录表';

/*Data for the table `examrecord` */

/*Table structure for table `examredetails` */

DROP TABLE IF EXISTS `examredetails`;

CREATE TABLE `examredetails` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `examredetails_uuid_number` varchar(200) DEFAULT NULL COMMENT '试卷编号',
  `yonghu_id` int(20) NOT NULL COMMENT '用户id',
  `examquestion_id` int(20) NOT NULL COMMENT '试题id(外键)',
  `examredetails_myanswer` varchar(200) DEFAULT NULL COMMENT '考生答案',
  `examredetails_myscore` int(20) NOT NULL DEFAULT '0' COMMENT '试题得分',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='答题详情表';

/*Data for the table `examredetails` */

/*Table structure for table `examrewrongquestion` */

DROP TABLE IF EXISTS `examrewrongquestion`;

CREATE TABLE `examrewrongquestion` (
  `id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `yonghu_id` int(20) NOT NULL COMMENT '用户id',
  `exampaper_id` int(20) NOT NULL COMMENT '试卷(外键)',
  `examquestion_id` int(20) NOT NULL COMMENT '试题id(外键)',
  `examredetails_myanswer` varchar(200) DEFAULT NULL COMMENT '考生作答',
  `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录时间',
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间 show3',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='错题表';

/*Data for the table `examrewrongquestion` */

/*Table structure for table `forum` */

DROP TABLE IF EXISTS `forum`;

CREATE TABLE `forum` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `forum_name` varchar(200) DEFAULT NULL COMMENT '帖子标题  Search111 ',
  `yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
  `users_id` int(11) DEFAULT NULL COMMENT '管理员',
  `forum_content` text COMMENT '发布内容',
  `super_ids` int(11) DEFAULT NULL COMMENT '父id',
  `forum_state_types` int(11) DEFAULT NULL COMMENT '帖子状态',
  `insert_time` timestamp NULL DEFAULT NULL COMMENT '发帖时间',
  `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show2',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='论坛';

/*Data for the table `forum` */

insert  into `forum`(`id`,`forum_name`,`yonghu_id`,`users_id`,`forum_content`,`super_ids`,`forum_state_types`,`insert_time`,`update_time`,`create_time`) values (1,'帖子标题1',3,NULL,'发布内容1',241,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(2,'帖子标题2',2,NULL,'发布内容2',28,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(3,'帖子标题3',2,NULL,'发布内容3',411,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(4,'帖子标题4',3,NULL,'发布内容4',203,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(5,'帖子标题5',2,NULL,'发布内容5',183,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(6,'帖子标题6',3,NULL,'发布内容6',440,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(7,'帖子标题7',3,NULL,'发布内容7',18,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(8,'帖子标题8',1,NULL,'发布内容8',74,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(9,'帖子标题9',1,NULL,'发布内容9',284,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(10,'帖子标题10',2,NULL,'发布内容10',269,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(11,'帖子标题11',2,NULL,'发布内容11',4,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(12,'帖子标题12',3,NULL,'发布内容12',160,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(13,'帖子标题13',1,NULL,'发布内容13',308,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(14,'帖子标题14',2,NULL,'发布内容14',307,1,'2023-03-08 13:32:00','2023-03-08 13:32:00','2023-03-08 13:32:00'),(15,'手打是',1,NULL,'

手打手打

',NULL,1,'2023-03-08 13:54:41',NULL,'2023-03-08 13:54:41'),(16,'手打的',1,NULL,'

的打的 

',NULL,1,'2023-03-08 13:54:58',NULL,'2023-03-08 13:54:58'); /*Table structure for table `gonggao` */ DROP TABLE IF EXISTS `gonggao`; CREATE TABLE `gonggao` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ', `gonggao_name` varchar(200) DEFAULT NULL COMMENT '公告名称 Search111 ', `gonggao_photo` varchar(200) DEFAULT NULL COMMENT '公告图片 ', `gonggao_types` int(11) NOT NULL COMMENT '公告类型 Search111 ', `insert_time` timestamp NULL DEFAULT NULL COMMENT '公告发布时间 ', `gonggao_content` text COMMENT '公告详情 ', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 nameShow', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='公告'; /*Data for the table `gonggao` */ insert into `gonggao`(`id`,`gonggao_name`,`gonggao_photo`,`gonggao_types`,`insert_time`,`gonggao_content`,`create_time`) values (1,'公告名称1','/upload/1678255158088.jpg',2,'2023-03-08 13:32:00','

公告详情1

','2023-03-08 13:32:00'),(2,'公告名称2','/upload/1678255145846.jpg',2,'2023-03-08 13:32:00','

公告详情2

','2023-03-08 13:32:00'),(3,'公告名称3','/upload/1678255132407.jpg',2,'2023-03-08 13:32:00','

公告详情3

','2023-03-08 13:32:00'),(4,'公告名称4','/upload/1678255118387.jpg',2,'2023-03-08 13:32:00','

公告详情4

','2023-03-08 13:32:00'),(5,'公告名称5','/upload/1678255106370.jpg',2,'2023-03-08 13:32:00','

公告详情5

','2023-03-08 13:32:00'),(6,'公告名称6','/upload/1678255082707.jpg',1,'2023-03-08 13:32:00','

公告详情6

','2023-03-08 13:32:00'),(7,'公告名称7','/upload/1678255072095.jpg',1,'2023-03-08 13:32:00','

公告详情7

','2023-03-08 13:32:00'),(8,'公告名称8','/upload/1678255062008.jpg',2,'2023-03-08 13:32:00','

公告详情8

','2023-03-08 13:32:00'),(9,'公告名称9','/upload/1678255041231.jpg',1,'2023-03-08 13:32:00','

公告详情9

','2023-03-08 13:32:00'),(10,'公告名称10','/upload/1678255051989.jpg',2,'2023-03-08 13:32:00','

公告详情10

','2023-03-08 13:32:00'),(11,'公告名称11','/upload/1678255030046.jpg',1,'2023-03-08 13:32:00','

公告详情11

','2023-03-08 13:32:00'),(12,'公告名称12','/upload/1678255012073.jpg',2,'2023-03-08 13:32:00','

公告详情12

','2023-03-08 13:32:00'),(13,'公告名称13','/upload/1678255001565.jpg',2,'2023-03-08 13:32:00','

公告详情13

','2023-03-08 13:32:00'),(14,'公告名称14','/upload/1678254991710.jpg',2,'2023-03-08 13:32:00','

公告详情14

','2023-03-08 13:32:00'); /*Table structure for table `kecheng` */ DROP TABLE IF EXISTS `kecheng`; CREATE TABLE `kecheng` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ', `laoshi_id` int(11) DEFAULT NULL COMMENT '老师', `kecheng_name` varchar(200) DEFAULT NULL COMMENT '课程名称 Search111 ', `kecheng_uuid_number` varchar(200) DEFAULT NULL COMMENT '课程编号', `kecheng_photo` varchar(200) DEFAULT NULL COMMENT '课程照片', `kecheng_types` int(11) DEFAULT NULL COMMENT '课程类型 Search111', `kechengkaishi_time` timestamp NULL DEFAULT NULL COMMENT '开始时间', `kecheng_video` varchar(200) DEFAULT NULL COMMENT '课程视频', `kecheng_content` text COMMENT '课程介绍 ', `kecheng_delete` int(11) DEFAULT NULL COMMENT '逻辑删除', `insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 photoShow', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='课程'; /*Data for the table `kecheng` */ insert into `kecheng`(`id`,`laoshi_id`,`kecheng_name`,`kecheng_uuid_number`,`kecheng_photo`,`kecheng_types`,`kechengkaishi_time`,`kecheng_video`,`kecheng_content`,`kecheng_delete`,`insert_time`,`create_time`) values (1,1,'课程名称1','1678253520231','upload/kecheng1.jpg',2,'2023-03-08 13:32:00','upload/video.mp4','课程介绍1',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(2,1,'课程名称2','1678253520177','upload/kecheng2.jpg',2,'2023-03-08 13:32:00','upload/video.mp4','课程介绍2',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(3,3,'课程名称3','1678253520197','upload/kecheng3.jpg',1,'2023-03-08 13:32:00','upload/video.mp4','课程介绍3',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(4,2,'课程名称4','1678253520207','upload/kecheng4.jpg',1,'2023-03-08 13:32:00','upload/video.mp4','课程介绍4',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(5,2,'课程名称5','1678253520223','upload/kecheng5.jpg',1,'2023-03-08 13:32:00','upload/video.mp4','课程介绍5',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(6,3,'课程名称6','1678253520231','upload/kecheng6.jpg',4,'2023-03-08 13:32:00','upload/video.mp4','课程介绍6',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(7,3,'课程名称7','1678253520187','upload/kecheng7.jpg',2,'2023-03-08 13:32:00','upload/video.mp4','课程介绍7',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(8,1,'课程名称8','1678253520236','upload/kecheng8.jpg',4,'2023-03-08 13:32:00','upload/video.mp4','课程介绍8',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(9,1,'课程名称9','1678253520262','upload/kecheng9.jpg',3,'2023-03-08 13:32:00','upload/video.mp4','课程介绍9',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(10,1,'课程名称10','1678253520257','upload/kecheng10.jpg',4,'2023-03-08 13:32:00','upload/video.mp4','课程介绍10',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(11,3,'课程名称11','1678253520208','upload/kecheng11.jpg',3,'2023-03-08 13:32:00','upload/video.mp4','课程介绍11',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(12,3,'课程名称12','1678253520218','upload/kecheng12.jpg',4,'2023-03-08 13:32:00','upload/video.mp4','课程介绍12',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(13,2,'课程名称13','1678253520229','upload/kecheng13.jpg',3,'2023-03-08 13:32:00','upload/video.mp4','课程介绍13',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(14,3,'课程名称14','1678253520201','upload/kecheng14.jpg',3,'2023-03-08 13:32:00','upload/video.mp4','课程介绍14',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'); /*Table structure for table `laoshi` */ DROP TABLE IF EXISTS `laoshi`; CREATE TABLE `laoshi` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `username` varchar(200) DEFAULT NULL COMMENT '账户', `password` varchar(200) DEFAULT NULL COMMENT '密码', `laoshi_name` varchar(200) DEFAULT NULL COMMENT '老师姓名 Search111 ', `laoshi_phone` varchar(200) DEFAULT NULL COMMENT '老师手机号', `laoshi_id_number` varchar(200) DEFAULT NULL COMMENT '老师身份证号', `laoshi_photo` varchar(200) DEFAULT NULL COMMENT '老师头像', `sex_types` int(11) DEFAULT NULL COMMENT '性别', `laoshi_email` varchar(200) DEFAULT NULL COMMENT '电子邮箱', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='老师'; /*Data for the table `laoshi` */ insert into `laoshi`(`id`,`username`,`password`,`laoshi_name`,`laoshi_phone`,`laoshi_id_number`,`laoshi_photo`,`sex_types`,`laoshi_email`,`create_time`) values (1,'a1','123456','老师姓名1','17703786901','410224199010102001','upload/laoshi1.jpg',1,'[email protected]','2023-03-08 13:32:00'),(2,'a2','123456','老师姓名2','17703786902','410224199010102002','upload/laoshi2.jpg',1,'[email protected]','2023-03-08 13:32:00'),(3,'a3','123456','老师姓名3','17703786903','410224199010102003','upload/laoshi3.jpg',2,'[email protected]','2023-03-08 13:32:00'); /*Table structure for table `qiandao` */ DROP TABLE IF EXISTS `qiandao`; CREATE TABLE `qiandao` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `yonghu_id` int(11) DEFAULT NULL COMMENT '用户', `qiandao_text` text COMMENT '内容', `qiandao_beizhu` text COMMENT '备注', `insert_time` timestamp NULL DEFAULT NULL COMMENT '签到时间', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='签到'; /*Data for the table `qiandao` */ insert into `qiandao`(`id`,`yonghu_id`,`qiandao_text`,`qiandao_beizhu`,`insert_time`,`create_time`) values (1,2,'内容1','备注1','2023-03-08 13:32:00','2023-03-08 13:32:00'),(2,2,'内容2','备注2','2023-03-08 13:32:00','2023-03-08 13:32:00'),(3,1,'内容3','备注3','2023-03-08 13:32:00','2023-03-08 13:32:00'),(4,1,'内容4','备注4','2023-03-08 13:32:00','2023-03-08 13:32:00'),(5,1,'内容5','备注5','2023-03-08 13:32:00','2023-03-08 13:32:00'),(6,2,'内容6','备注6','2023-03-08 13:32:00','2023-03-08 13:32:00'),(7,3,'内容7','备注7','2023-03-08 13:32:00','2023-03-08 13:32:00'),(8,1,'内容8','备注8','2023-03-08 13:32:00','2023-03-08 13:32:00'),(9,3,'内容9','备注9','2023-03-08 13:32:00','2023-03-08 13:32:00'),(10,2,'内容10','备注10','2023-03-08 13:32:00','2023-03-08 13:32:00'),(11,3,'内容11','备注11','2023-03-08 13:32:00','2023-03-08 13:32:00'),(12,2,'内容12','备注12','2023-03-08 13:32:00','2023-03-08 13:32:00'),(13,1,'内容13','备注13','2023-03-08 13:32:00','2023-03-08 13:32:00'),(14,2,'内容14','备注14','2023-03-08 13:32:00','2023-03-08 13:32:00'); /*Table structure for table `token` */ DROP TABLE IF EXISTS `token`; 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=4 DEFAULT CHARSET=utf8 COMMENT='token表'; /*Data for the table `token` */ insert into `token`(`id`,`userid`,`username`,`tablename`,`role`,`token`,`addtime`,`expiratedtime`) values (1,1,'a1','yonghu','用户','opd8p8t2kvn08sfl05bm91443yywuawn','2023-03-08 13:37:42','2023-03-08 14:37:42'),(2,1,'admin','users','管理员','e704uq6gyhl13qz3kuoyw8ujpx7m7xth','2023-03-08 13:50:41','2023-03-08 14:55:56'),(3,1,'a1','laoshi','老师','3kevool05v8i6yhorx3pvssizy7801rb','2023-03-08 13:55:14','2023-03-08 15:00:10'); /*Table structure for table `users` */ DROP TABLE IF EXISTS `users`; 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='管理员'; /*Data for the table `users` */ insert into `users`(`id`,`username`,`password`,`role`,`addtime`) values (1,'admin','admin','管理员','2023-03-08 13:31:30'); /*Table structure for table `yonghu` */ DROP TABLE IF EXISTS `yonghu`; CREATE TABLE `yonghu` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `username` varchar(200) DEFAULT NULL COMMENT '账户', `password` varchar(200) DEFAULT NULL COMMENT '密码', `yonghu_name` varchar(200) DEFAULT NULL COMMENT '用户姓名 Search111 ', `yonghu_phone` varchar(200) DEFAULT NULL COMMENT '用户手机号', `yonghu_id_number` varchar(200) DEFAULT NULL COMMENT '用户身份证号', `yonghu_photo` varchar(200) DEFAULT NULL COMMENT '用户头像', `sex_types` int(11) DEFAULT NULL COMMENT '性别', `yonghu_email` varchar(200) DEFAULT NULL COMMENT '电子邮箱', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户'; /*Data for the table `yonghu` */ insert into `yonghu`(`id`,`username`,`password`,`yonghu_name`,`yonghu_phone`,`yonghu_id_number`,`yonghu_photo`,`sex_types`,`yonghu_email`,`create_time`) values (1,'a1','123456','用户姓名1','17703786901','410224199010102001','upload/yonghu1.jpg',1,'[email protected]','2023-03-08 13:32:00'),(2,'a2','123456','用户姓名2','17703786902','410224199010102002','upload/yonghu2.jpg',2,'[email protected]','2023-03-08 13:32:00'),(3,'a3','123456','用户姓名3','17703786903','410224199010102003','upload/yonghu3.jpg',1,'[email protected]','2023-03-08 13:32:00'); /*Table structure for table `ziliao` */ DROP TABLE IF EXISTS `ziliao`; CREATE TABLE `ziliao` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ', `laoshi_id` int(11) DEFAULT NULL COMMENT '老师', `ziliao_name` varchar(200) DEFAULT NULL COMMENT '资料信息名称 Search111 ', `ziliao_uuid_number` varchar(200) DEFAULT NULL COMMENT '资料信息编号', `ziliao_photo` varchar(200) DEFAULT NULL COMMENT '资料信息封面', `ziliao_types` int(11) DEFAULT NULL COMMENT '资料信息类型 Search111', `ziliao_file` varchar(200) DEFAULT NULL COMMENT '资料信息下载', `ziliao_content` text COMMENT '资料信息介绍 ', `ziliao_delete` int(11) DEFAULT NULL COMMENT '逻辑删除', `insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show1 show2 photoShow', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='资料信息'; /*Data for the table `ziliao` */ insert into `ziliao`(`id`,`laoshi_id`,`ziliao_name`,`ziliao_uuid_number`,`ziliao_photo`,`ziliao_types`,`ziliao_file`,`ziliao_content`,`ziliao_delete`,`insert_time`,`create_time`) values (1,1,'资料信息名称1','1678253520215','upload/ziliao1.jpg',4,'upload/file.rar','资料信息介绍1',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(2,2,'资料信息名称2','1678253520190','upload/ziliao2.jpg',1,'upload/file.rar','资料信息介绍2',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(3,1,'资料信息名称3','1678253520202','upload/ziliao3.jpg',3,'upload/file.rar','资料信息介绍3',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(4,2,'资料信息名称4','1678253520267','upload/ziliao4.jpg',4,'upload/file.rar','资料信息介绍4',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(5,1,'资料信息名称5','1678253520211','upload/ziliao5.jpg',1,'upload/file.rar','资料信息介绍5',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(6,1,'资料信息名称6','1678253520263','upload/ziliao6.jpg',4,'upload/file.rar','资料信息介绍6',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(7,2,'资料信息名称7','1678253520221','upload/ziliao7.jpg',1,'upload/file.rar','资料信息介绍7',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(8,3,'资料信息名称8','1678253520235','upload/ziliao8.jpg',2,'upload/file.rar','资料信息介绍8',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(9,1,'资料信息名称9','1678253520212','upload/ziliao9.jpg',2,'upload/file.rar','资料信息介绍9',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(10,1,'资料信息名称10','1678253520208','upload/ziliao10.jpg',3,'upload/file.rar','资料信息介绍10',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(11,1,'资料信息名称11','1678253520266','upload/ziliao11.jpg',2,'upload/file.rar','资料信息介绍11',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(12,1,'资料信息名称12','1678253520179','upload/ziliao12.jpg',3,'upload/file.rar','资料信息介绍12',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(13,3,'资料信息名称13','1678253520267','upload/ziliao13.jpg',2,'upload/file.rar','资料信息介绍13',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(14,3,'资料信息名称14','1678253520178','upload/ziliao14.jpg',3,'upload/file.rar','资料信息介绍14',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'); /*Table structure for table `zuoye` */ DROP TABLE IF EXISTS `zuoye`; CREATE TABLE `zuoye` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ', `laoshi_id` int(11) DEFAULT NULL COMMENT '老师', `zuoye_name` varchar(200) DEFAULT NULL COMMENT '作业名称 Search111 ', `zuoye_uuid_number` varchar(200) DEFAULT NULL COMMENT '作业编号', `zuoye_photo` varchar(200) DEFAULT NULL COMMENT '作业封面', `zuoye_types` int(11) DEFAULT NULL COMMENT '作业类型 Search111', `zuoye_file` varchar(200) DEFAULT NULL COMMENT '作业下载', `zuoye_content` text COMMENT '作业介绍 ', `zuoye_delete` int(11) DEFAULT NULL COMMENT '逻辑删除', `insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show2 photoShow', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='作业'; /*Data for the table `zuoye` */ insert into `zuoye`(`id`,`laoshi_id`,`zuoye_name`,`zuoye_uuid_number`,`zuoye_photo`,`zuoye_types`,`zuoye_file`,`zuoye_content`,`zuoye_delete`,`insert_time`,`create_time`) values (1,1,'作业名称1','1678253520176','upload/zuoye1.jpg',3,'upload/file.rar','作业介绍1',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(2,1,'作业名称2','1678253520245','upload/zuoye2.jpg',4,'upload/file.rar','作业介绍2',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(3,2,'作业名称3','1678253520241','upload/zuoye3.jpg',1,'upload/file.rar','作业介绍3',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(4,1,'作业名称4','1678253520258','upload/zuoye4.jpg',1,'upload/file.rar','作业介绍4',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(5,3,'作业名称5','1678253520257','upload/zuoye5.jpg',4,'upload/file.rar','作业介绍5',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(6,2,'作业名称6','1678253520226','upload/zuoye6.jpg',4,'upload/file.rar','作业介绍6',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(7,2,'作业名称7','1678253520239','upload/zuoye7.jpg',1,'upload/file.rar','作业介绍7',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(8,1,'作业名称8','1678253520184','upload/zuoye8.jpg',1,'upload/file.rar','作业介绍8',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(9,2,'作业名称9','1678253520191','upload/zuoye9.jpg',4,'upload/file.rar','作业介绍9',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(10,1,'作业名称10','1678253520256','upload/zuoye10.jpg',4,'upload/file.rar','作业介绍10',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(11,3,'作业名称11','1678253520269','upload/zuoye11.jpg',3,'upload/file.rar','作业介绍11',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(12,1,'作业名称12','1678253520173','upload/zuoye12.jpg',1,'upload/file.rar','作业介绍12',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(13,2,'作业名称13','1678253520265','upload/zuoye13.jpg',1,'upload/file.rar','作业介绍13',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(14,3,'作业名称14','1678253520238','upload/zuoye14.jpg',4,'upload/file.rar','作业介绍14',1,'2023-03-08 13:32:00','2023-03-08 13:32:00'); /*Table structure for table `zuoye_tijiao` */ DROP TABLE IF EXISTS `zuoye_tijiao`; CREATE TABLE `zuoye_tijiao` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `zuoye_tijiao_uuid_number` varchar(200) DEFAULT NULL COMMENT '报名唯一编号 Search111 ', `zuoye_id` int(11) DEFAULT NULL COMMENT '作业', `laoshi_id` int(11) DEFAULT NULL COMMENT '老师', `yonghu_id` int(11) DEFAULT NULL COMMENT '用户', `zuoye_tijiao_text` text COMMENT '内容', `zuoye_shangchuan_file` varchar(200) DEFAULT NULL COMMENT '作业上传', `zuoye_tijiao_yesno_types` int(11) DEFAULT NULL COMMENT '提交状态 Search111 ', `zuoye_tijiao_pigai` int(11) DEFAULT NULL COMMENT '批改分数', `insert_time` timestamp NULL DEFAULT NULL COMMENT '作业提交时间', `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='作业提交'; /*Data for the table `zuoye_tijiao` */ insert into `zuoye_tijiao`(`id`,`zuoye_tijiao_uuid_number`,`zuoye_id`,`laoshi_id`,`yonghu_id`,`zuoye_tijiao_text`,`zuoye_shangchuan_file`,`zuoye_tijiao_yesno_types`,`zuoye_tijiao_pigai`,`insert_time`,`create_time`) values (1,'1678253520199',1,2,3,'内容1','upload/file.rar',1,288,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(2,'1678253520202',2,1,2,'内容2','upload/file.rar',1,200,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(3,'1678253520185',3,3,2,'内容3','upload/file.rar',1,457,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(4,'1678253520177',4,2,1,'内容4','upload/file.rar',1,317,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(5,'1678253520182',5,2,1,'内容5','upload/file.rar',1,354,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(6,'1678253520243',6,2,3,'内容6','upload/file.rar',1,156,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(7,'1678253520202',7,1,3,'内容7','upload/file.rar',1,386,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(8,'1678253520216',8,2,3,'内容8','upload/file.rar',1,305,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(9,'1678253520194',9,2,3,'内容9','upload/file.rar',1,63,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(10,'1678253520272',10,3,3,'内容10','upload/file.rar',1,413,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(11,'1678253520190',11,1,3,'内容11','upload/file.rar',1,172,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(12,'1678253520258',12,1,1,'内容12','upload/file.rar',1,205,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(13,'1678253520232',13,2,3,'内容13','upload/file.rar',1,168,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(14,'1678253520190',14,3,2,'内容14','upload/file.rar',1,285,'2023-03-08 13:32:00','2023-03-08 13:32:00'),(15,'1678255189056',9,1,1,'6666','upload/1678255198486.jpg',1,NULL,'2023-03-08 14:00:00','2023-03-08 14:00:00'); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

5、关键代码

5.1签到Controller模块 

/**
 * 签到
 * 后端接口
 * @author 学长编程
 * @email
 * WeChat  jsjbysj88
*/
@RestController
@Controller
@RequestMapping("/qiandao")
public class QiandaoController {
    private static final Logger logger = LoggerFactory.getLogger(QiandaoController.class);

    private static final String TABLE_NAME = "qiandao";

    @Autowired
    private QiandaoService qiandaoService;

    @Autowired
    private TokenService tokenService;

    @Autowired
    private DictionaryService dictionaryService;//字典
    @Autowired
    private ExampaperService exampaperService;//试卷
    @Autowired
    private ExampapertopicService exampapertopicService;//试卷选题
    @Autowired
    private ExamquestionService examquestionService;//试题表
    @Autowired
    private ExamrecordService examrecordService;//考试记录表
    @Autowired
    private ExamredetailsService examredetailsService;//答题详情表
    @Autowired
    private ExamrewrongquestionService examrewrongquestionService;//错题表
    @Autowired
    private KechengService kechengService;//课程
    @Autowired
    private LaoshiService laoshiService;//老师
    @Autowired
    private YonghuService yonghuService;//用户
    @Autowired
    private ZiliaoService ziliaoService;//资料信息
    @Autowired
    private ZuoyeService zuoyeService;//作业
    @Autowired
    private ZuoyeTijiaoService zuoyeTijiaoService;//作业提交
    @Autowired
    private UsersService usersService;//管理员

    /**
    * 后端列表
    */
    @RequestMapping("/page")
    public R page(@RequestParam Map params, HttpServletRequest request){
        logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
        String role = String.valueOf(request.getSession().getAttribute("role"));
        if(false)
            return R.error(511,"永不会进入");
        else if("用户".equals(role))
            params.put("yonghuId",request.getSession().getAttribute("userId"));
        else if("老师".equals(role))
            params.put("laoshiId",request.getSession().getAttribute("userId"));
        CommonUtil.checkMap(params);
        PageUtils page = qiandaoService.queryPage(params);

        //字典表数据转换
        List list =(List)page.getList();
        for(QiandaoView c:list){
            //修改对应字典表字段
            dictionaryService.dictionaryConvert(c, request);
        }
        return R.ok().put("data", page);
    }

    /**
    * 后端详情
    */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id, HttpServletRequest request){
        logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
        QiandaoEntity qiandao = qiandaoService.selectById(id);
        if(qiandao !=null){
            //entity转view
            QiandaoView view = new QiandaoView();
            BeanUtils.copyProperties( qiandao , view );//把实体数据重构到view中
            //级联表 用户
            //级联表
            YonghuEntity yonghu = yonghuService.selectById(qiandao.getYonghuId());
            if(yonghu != null){
            BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "yonghuId"});//把级联的数据添加到view中,并排除id和创建时间字段,当前表的级联注册表
            view.setYonghuId(yonghu.getId());
            }
            //修改对应字典表字段
            dictionaryService.dictionaryConvert(view, request);
            return R.ok().put("data", view);
        }else {
            return R.error(511,"查不到数据");
        }

    }

    /**
    * 后端保存
    */
    @RequestMapping("/save")
    public R save(@RequestBody QiandaoEntity qiandao, HttpServletRequest request){
        logger.debug("save方法:,,Controller:{},,qiandao:{}",this.getClass().getName(),qiandao.toString());

        String role = String.valueOf(request.getSession().getAttribute("role"));
        if(false)
            return R.error(511,"永远不会进入");
        else if("用户".equals(role))
            qiandao.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));

        Wrapper queryWrapper = new EntityWrapper()
            .eq("yonghu_id", qiandao.getYonghuId())
            .eq("qiandao_beizhu", qiandao.getQiandaoBeizhu())
            ;

        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        QiandaoEntity qiandaoEntity = qiandaoService.selectOne(queryWrapper);
        if(qiandaoEntity==null){
            qiandao.setInsertTime(new Date());
            qiandao.setCreateTime(new Date());
            qiandaoService.insert(qiandao);
            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }

    /**
    * 后端修改
    */
    @RequestMapping("/update")
    public R update(@RequestBody QiandaoEntity qiandao, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {
        logger.debug("update方法:,,Controller:{},,qiandao:{}",this.getClass().getName(),qiandao.toString());
        QiandaoEntity oldQiandaoEntity = qiandaoService.selectById(qiandao.getId());//查询原先数据

        String role = String.valueOf(request.getSession().getAttribute("role"));
//        if(false)
//            return R.error(511,"永远不会进入");
//        else if("用户".equals(role))
//            qiandao.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));

            qiandaoService.updateById(qiandao);//根据id更新
            return R.ok();
    }

    /**
    * 删除
    */
    @RequestMapping("/delete")
    public R delete(@RequestBody Integer[] ids, HttpServletRequest request){
        logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
        List oldQiandaoList =qiandaoService.selectBatchIds(Arrays.asList(ids));//要删除的数据
        qiandaoService.deleteBatchIds(Arrays.asList(ids));

        return R.ok();
    }

    /**
     * 批量上传
     */
    @RequestMapping("/batchInsert")
    public R save( String fileName, HttpServletRequest request){
        logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);
        Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        try {
            List qiandaoList = new ArrayList<>();//上传的东西
            Map> seachFields= new HashMap<>();//要查询的字段
            Date date = new Date();
            int lastIndexOf = fileName.lastIndexOf(".");
            if(lastIndexOf == -1){
                return R.error(511,"该文件没有后缀");
            }else{
                String suffix = fileName.substring(lastIndexOf);
                if(!".xls".equals(suffix)){
                    return R.error(511,"只支持后缀为xls的excel文件");
                }else{
                    URL resource = this.getClass().getClassLoader().getResource("static/upload/" + fileName);//获取文件路径
                    File file = new File(resource.getFile());
                    if(!file.exists()){
                        return R.error(511,"找不到上传文件,请联系管理员");
                    }else{
                        List> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件
                        dataList.remove(0);//删除第一行,因为第一行是提示
                        for(List data:dataList){
                            //循环
                            QiandaoEntity qiandaoEntity = new QiandaoEntity();
//                            qiandaoEntity.setYonghuId(Integer.valueOf(data.get(0)));   //用户 要改的
//                            qiandaoEntity.setQiandaoText(data.get(0));                    //内容 要改的
//                            qiandaoEntity.setQiandaoBeizhu(data.get(0));                    //备注 要改的
//                            qiandaoEntity.setInsertTime(date);//时间
//                            qiandaoEntity.setCreateTime(date);//时间
                            qiandaoList.add(qiandaoEntity);


                            //把要查询是否重复的字段放入map中
                        }

                        //查询是否重复
                        qiandaoService.insertBatch(qiandaoList);
                        return R.ok();
                    }
                }
            }
        }catch (Exception e){
            e.printStackTrace();
            return R.error(511,"批量插入数据异常,请联系管理员");
        }
    }

    /**
    * 前端列表
    */
    @IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map params, HttpServletRequest request){
        logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));

        CommonUtil.checkMap(params);
        PageUtils page = qiandaoService.queryPage(params);

        //字典表数据转换
        List list =(List)page.getList();
        for(QiandaoView c:list)
            dictionaryService.dictionaryConvert(c, request); //修改对应字典表字段

        return R.ok().put("data", page);
    }

    /**
    * 前端详情
    */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id, HttpServletRequest request){
        logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
        QiandaoEntity qiandao = qiandaoService.selectById(id);
            if(qiandao !=null){


                //entity转view
                QiandaoView view = new QiandaoView();
                BeanUtils.copyProperties( qiandao , view );//把实体数据重构到view中

                //级联表
                    YonghuEntity yonghu = yonghuService.selectById(qiandao.getYonghuId());
                if(yonghu != null){
                    BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段
                    view.setYonghuId(yonghu.getId());
                }
                //修改对应字典表字段
                dictionaryService.dictionaryConvert(view, request);
                return R.ok().put("data", view);
            }else {
                return R.error(511,"查不到数据");
            }
    }

    /**
    * 前端保存
    */
    @RequestMapping("/add")
    public R add(@RequestBody QiandaoEntity qiandao, HttpServletRequest request){
        logger.debug("add方法:,,Controller:{},,qiandao:{}",this.getClass().getName(),qiandao.toString());
        Wrapper queryWrapper = new EntityWrapper()
            .eq("yonghu_id", qiandao.getYonghuId())
            .eq("qiandao_text", qiandao.getQiandaoText())
            .eq("qiandao_beizhu", qiandao.getQiandaoBeizhu())
//            .notIn("qiandao_types", new Integer[]{102})
            ;
        logger.info("sql语句:"+queryWrapper.getSqlSegment());
        QiandaoEntity qiandaoEntity = qiandaoService.selectOne(queryWrapper);
        if(qiandaoEntity==null){
            qiandao.setInsertTime(new Date());
            qiandao.setCreateTime(new Date());
        qiandaoService.insert(qiandao);

            return R.ok();
        }else {
            return R.error(511,"表中有相同数据");
        }
    }

}

5.2 签到Service模块 

package com.service;

import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.QiandaoEntity;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import java.util.List;

/**
 * 签到 服务类
 */
public interface QiandaoService extends IService {

    /**
    * @param params 查询参数
    * @return 带分页的查询出来的数据
    */
     PageUtils queryPage(Map params);
}

5.3 签到ServiceImpl模块

package com.service.impl;

import com.utils.StringUtil;
import com.service.DictionaryService;
import com.utils.ClazzDiff;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.Field;
import java.util.*;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import com.utils.PageUtils;
import com.utils.Query;
import org.springframework.web.context.ContextLoader;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import com.dao.QiandaoDao;
import com.entity.QiandaoEntity;
import com.service.QiandaoService;
import com.entity.view.QiandaoView;

/**
 * 签到 服务实现类
 */
@Service("qiandaoService")
@Transactional
public class QiandaoServiceImpl extends ServiceImpl implements QiandaoService {

    @Override
    public PageUtils queryPage(Map params) {
        Page page =new Query(params).getPage();
        page.setRecords(baseMapper.selectListView(page,params));
        return new PageUtils(page);
    }

}

5.4  签到Dao模块

package com.dao;

import com.entity.QiandaoEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import org.apache.ibatis.annotations.Param;
import com.entity.view.QiandaoView;

/**
 * 签到 Dao 接口
 *
 * @author 学长编程
 * WeChat  jsjbysj88
*/
public interface QiandaoDao extends BaseMapper {

   List selectListView(Pagination page,@Param("params")Map params);
}

6、论文目录结构

计算机毕业设计 基于SpringBoot的党员学习交流平台(系统)的设计与实现 Java实战项目 附源码+文档+视频讲解_第9张图片

7、源码获取

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

喜欢文章可以点赞、收藏、关注、评论

获取源码请私信

你可能感兴趣的:(毕业设计,毕业论文,课程设计,spring,boot,Java,Vue)