博主介绍:✌从事软件开发10年之余,专注于Java技术领域、Python人工智能及数据挖掘、小程序项目开发和Android项目开发等。CSDN、掘金、华为云、InfoQ、阿里云等平台优质作者✌
🍅文末获取源码联系🍅
👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟
————————————————
计算机毕业设计《1000套》✌
目录
1、项目介绍及开发技术
1.1 项目介绍
1.2 开发技术
2、系统功能设计结构图
3、功能截图
4、数据库表结构设计
5、关键代码
5.1 交流申请Controller模块
5.2 交流申请Service模块
5.3 交流申请ServiceImpl模块
5.4 交流申请Dao模块
6、论文目录结构
7、源码获取
1、项目介绍及开发技术
1.1 项目介绍
当前的网络技术,软件技术等都具备成熟的理论基础,市场上也出现各种技术开发的软件,这些软件都被用于各个领域,包括生活和工作的领域。随着电脑和笔记本的广泛运用,以及各种计算机硬件的完善和升级,市面上的电脑和笔记本的性能都得到提升,可以支持的软件也逐渐增多,因此,在计算机上安装软件来发挥其高效地信息处理的作用,则很受人们的青睐。对于学生交流培养管理平台信息来讲,通过手工形式处理,在面对庞大的信息数量时,就显得不适宜了,首先需要花费的时间比较多,其次数据出错率比较高,而且对错误的数据进行更改也比较困难,最后,检索数据费事费力。因此,为了解决上述问题,有必要建立学生交流培养管理平台,来规范学生交流培养管理平台信息管理流程,让管理工作可以系统化和程序化,同时,学生交流培养管理平台的有效运用可以帮助管理人员准确快速地处理信息。
本平台在对开发工具的选择上也很慎重,为了便于开发实现,选择的开发工具为Eclipse,选择的数据库工具为Mysql。以此搭建开发环境实现学生交流培养管理平台的功能。其中管理员管理用户,新闻公告。学生交流培养管理平台是一款运用软件开发技术设计实现的应用系统,在信息处理上可以达到快速的目的,不管是针对数据添加,数据维护和统计,以及数据查询等处理要求,学生交流培养管理平台都可以轻松应对。
1.2 开发技术
Java开发语言、SpringBoot、MyBatisPlus、MySQL数据库、Maven、IDEA开发工具、JDK1.8+、Vue、HTML、CSS、JS。
2、系统功能设计结构图
3、功能截图
学生信息管理:可以对学生信息进行查询管理,可以删除学生信息、修改学生信息、新增学生信息,还可以对用户名称的进行模糊查询。
课程信息管理: 可以查看已发布的课程信息数据,修改课程信息,课程信息作废,即可删除,还进行了对课程信息名称的模糊查询、课程信息信息的类型查询等等一些条件。
教师信息管理:根据教师信息进行条件查询,还可以对教师信息进行新增、修改、查询操作等等。
公告信息管理: 可以根据公告信息进行新增、修改、查询操作等等。
4、数据库表结构设计
CREATE DATABASE /*!32312 IF NOT EXISTS*/`benkeshengjiaoliuguanli` /*!40100 DEFAULT CHARACTER SET utf8 */;USE `benkeshengjiaoliuguanli`;/*Table structure for table `chengji` */DROP TABLE IF EXISTS `chengji`;CREATE TABLE `chengji` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`chengji_name` varchar(200) DEFAULT NULL COMMENT '成绩标题 Search111',`chengji_types` int(11) DEFAULT NULL COMMENT '成绩类型 Search111',`xuenfen_number` int(11) DEFAULT NULL COMMENT '成绩',`chengji_content` text COMMENT '备注',`yonghu_id` int(11) DEFAULT NULL COMMENT '学生',`chengji_delete` int(11) DEFAULT '1' COMMENT '假删',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='学生成绩';/*Data for the table `chengji` */insert into `chengji`(`id`,`chengji_name`,`chengji_types`,`xuenfen_number`,`chengji_content`,`yonghu_id`,`chengji_delete`,`create_time`) values (1,'成绩标题1',1,327,'备注1',2,1,'2023-04-26 12:05:23'),(2,'成绩标题2',2,163,'备注2',3,1,'2023-04-26 12:05:23'),(3,'成绩标题3',1,481,'备注3',2,1,'2023-04-26 12:05:23'),(4,'成绩标题4',2,263,'备注4',1,1,'2023-04-26 12:05:23'),(5,'成绩标题5',2,477,'备注5',1,1,'2023-04-26 12:05:23'),(6,'成绩标题6',3,274,'备注6',2,1,'2023-04-26 12:05:23'),(7,'成绩标题7',1,482,'备注7',1,1,'2023-04-26 12:05:23'),(8,'成绩标题8',2,15,'备注8',3,1,'2023-04-26 12:05:23'),(9,'成绩标题9',3,491,'备注9',2,1,'2023-04-26 12:05:23'),(10,'成绩标题10',1,278,'备注10',3,1,'2023-04-26 12:05:23'),(11,'成绩标题11',3,420,'备注11',2,1,'2023-04-26 12:05:23'),(12,'成绩标题12',3,125,'备注12',2,1,'2023-04-26 12:05:23'),(13,'成绩标题13',2,401,'备注13',3,1,'2023-04-26 12:05:23'),(14,'成绩标题14',1,242,'备注14',1,1,'2023-04-26 12:05:23');/*Table structure for table `config` */DROP TABLE IF EXISTS `config`;CREATE TABLE `config` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`name` varchar(100) DEFAULT 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=43 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,'news_types','公告类型',1,'公告类型1',NULL,NULL,'2023-04-26 12:05:16'),(2,'news_types','公告类型',2,'公告类型2',NULL,NULL,'2023-04-26 12:05:16'),(3,'news_types','公告类型',3,'公告类型3',NULL,NULL,'2023-04-26 12:05:16'),(4,'ziliao_types','资料类型',1,'资料类型1',NULL,NULL,'2023-04-26 12:05:16'),(5,'ziliao_types','资料类型',2,'资料类型2',NULL,NULL,'2023-04-26 12:05:16'),(6,'ziliao_types','资料类型',3,'资料类型3',NULL,NULL,'2023-04-26 12:05:16'),(7,'qingjia_types','请假类型',1,'生病',NULL,NULL,'2023-04-26 12:05:16'),(8,'qingjia_types','请假类型',2,'有事',NULL,NULL,'2023-04-26 12:05:16'),(9,'qingjia_yesno_types','申请状态',1,'待审核',NULL,NULL,'2023-04-26 12:05:16'),(10,'qingjia_yesno_types','申请状态',2,'同意',NULL,NULL,'2023-04-26 12:05:16'),(11,'qingjia_yesno_types','申请状态',3,'拒绝',NULL,NULL,'2023-04-26 12:05:16'),(12,'qingjia_yesno_types','申请状态',4,'已销假',NULL,NULL,'2023-04-26 12:05:16'),(13,'huoodngbaoming_types','活动类型',1,'活动类型1',NULL,NULL,'2023-04-26 12:05:16'),(14,'huoodngbaoming_types','活动类型',2,'活动类型2',NULL,NULL,'2023-04-26 12:05:16'),(15,'huoodngbaoming_types','活动类型',3,'活动类型3',NULL,NULL,'2023-04-26 12:05:16'),(16,'huoodngbaoming_yesno_types','报名状态',1,'待审核',NULL,NULL,'2023-04-26 12:05:16'),(17,'huoodngbaoming_yesno_types','报名状态',2,'同意',NULL,NULL,'2023-04-26 12:05:16'),(18,'huoodngbaoming_yesno_types','报名状态',3,'拒绝',NULL,NULL,'2023-04-26 12:05:16'),(19,'jiaoliushenqing_yesno_types','申请状态',1,'待审核',NULL,NULL,'2023-04-26 12:05:16'),(20,'jiaoliushenqing_yesno_types','申请状态',2,'同意',NULL,NULL,'2023-04-26 12:05:16'),(21,'jiaoliushenqing_yesno_types','申请状态',3,'拒绝',NULL,NULL,'2023-04-26 12:05:16'),(22,'chengji_types','成绩类型',1,'成绩类型1',NULL,NULL,'2023-04-26 12:05:16'),(23,'chengji_types','成绩类型',2,'成绩类型2',NULL,NULL,'2023-04-26 12:05:16'),(24,'chengji_types','成绩类型',3,'成绩类型3',NULL,NULL,'2023-04-26 12:05:16'),(25,'kecheng_types','课程类型',1,'课程类型1',NULL,NULL,'2023-04-26 12:05:16'),(26,'kecheng_types','课程类型',2,'课程类型2',NULL,NULL,'2023-04-26 12:05:16'),(27,'kecheng_types','课程类型',3,'课程类型3',NULL,NULL,'2023-04-26 12:05:16'),(28,'sex_types','性别类型',1,'男',NULL,NULL,'2023-04-26 12:05:17'),(29,'sex_types','性别类型',2,'女',NULL,NULL,'2023-04-26 12:05:17'),(30,'jiaoshi_types','教师类型',1,'教师类型1',NULL,NULL,'2023-04-26 12:05:17'),(31,'jiaoshi_types','教师类型',2,'教师类型2',NULL,NULL,'2023-04-26 12:05:17'),(32,'jiaoshi_types','教师类型',3,'教师类型3',NULL,NULL,'2023-04-26 12:05:17'),(33,'forum_types','帖子类型',1,'课程选择',NULL,NULL,'2023-04-26 12:05:17'),(34,'forum_types','帖子类型',2,'成绩查询',NULL,NULL,'2023-04-26 12:05:17'),(35,'forum_types','帖子类型',3,'学分置换',NULL,NULL,'2023-04-26 12:05:17'),(36,'forum_state_types','帖子状态',1,'发帖',NULL,NULL,'2023-04-26 12:05:17'),(37,'forum_state_types','帖子状态',2,'回帖',NULL,NULL,'2023-04-26 12:05:17'),(38,'forum_types','帖子类型',1,'课程选择',NULL,NULL,'2023-04-26 12:05:17'),(39,'forum_types','帖子类型',2,'成绩查询',NULL,NULL,'2023-04-26 12:05:17'),(40,'forum_types','帖子类型',3,'学分置换',NULL,NULL,'2023-04-26 12:05:17'),(41,'forum_state_types','帖子状态',1,'发帖',NULL,NULL,'2023-04-26 12:05:17'),(42,'forum_state_types','帖子状态',2,'回帖',NULL,NULL,'2023-04-26 12:05:17');/*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 '学生',`jiaoshi_id` int(11) DEFAULT NULL COMMENT '教师',`users_id` int(11) DEFAULT NULL COMMENT '管理员',`forum_content` longtext COMMENT '发布内容',`super_ids` int(11) DEFAULT NULL COMMENT '父id',`forum_types` int(11) DEFAULT NULL COMMENT '帖子类型 Search111 ',`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=15 DEFAULT CHARSET=utf8 COMMENT='论坛';/*Data for the table `forum` */insert into `forum`(`id`,`forum_name`,`yonghu_id`,`jiaoshi_id`,`users_id`,`forum_content`,`super_ids`,`forum_types`,`forum_state_types`,`insert_time`,`update_time`,`create_time`) values (1,'帖子标题1',1,NULL,NULL,'发布内容1',414,2,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(2,'帖子标题2',3,NULL,NULL,'发布内容2',170,3,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(3,'帖子标题3',1,NULL,NULL,'发布内容3',74,1,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(4,'帖子标题4',3,NULL,NULL,'发布内容4',298,3,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(5,'帖子标题5',2,NULL,NULL,'发布内容5',301,2,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(6,'帖子标题6',2,NULL,NULL,'发布内容6',323,1,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(7,'帖子标题7',2,NULL,NULL,'发布内容7',36,3,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(8,'帖子标题8',2,NULL,NULL,'发布内容8',290,3,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(9,'帖子标题9',1,NULL,NULL,'发布内容9',333,2,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(10,'帖子标题10',1,NULL,NULL,'发布内容10',335,1,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(11,'帖子标题11',3,NULL,NULL,'发布内容11',166,3,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(12,'帖子标题12',1,NULL,NULL,'发布内容12',306,2,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(13,'帖子标题13',2,NULL,NULL,'发布内容13',404,3,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23'),(14,'帖子标题14',1,NULL,NULL,'发布内容14',25,1,1,'2023-04-26 12:05:23','2023-04-26 12:05:23','2023-04-26 12:05:23');/*Table structure for table `huoodngbaoming` */DROP TABLE IF EXISTS `huoodngbaoming`;CREATE TABLE `huoodngbaoming` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`huoodngbaoming_uuid_number` varchar(200) DEFAULT NULL COMMENT '报名编号 Search111 ',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`huoodngbaoming_name` varchar(200) DEFAULT NULL COMMENT '报名活动 Search111',`huoodngbaoming_types` int(200) DEFAULT NULL COMMENT '活动类型 Search111',`huoodngbaoming_text` longtext COMMENT '报名理由',`insert_time` timestamp NULL DEFAULT NULL COMMENT '活动报名时间',`huoodngbaoming_yesno_types` int(11) DEFAULT NULL COMMENT '报名状态 Search111 ',`huoodngbaoming_yesno_text` longtext 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 `huoodngbaoming` */insert into `huoodngbaoming`(`id`,`huoodngbaoming_uuid_number`,`yonghu_id`,`huoodngbaoming_name`,`huoodngbaoming_types`,`huoodngbaoming_text`,`insert_time`,`huoodngbaoming_yesno_types`,`huoodngbaoming_yesno_text`,`create_time`) values (1,'1682481923818',2,'报名活动1',1,'报名理由1','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(2,'1682481923813',1,'报名活动2',1,'报名理由2','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(3,'1682481923761',3,'报名活动3',3,'报名理由3','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(4,'1682481923829',3,'报名活动4',2,'报名理由4','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(5,'1682481923840',1,'报名活动5',2,'报名理由5','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(6,'1682481923746',2,'报名活动6',2,'报名理由6','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(7,'1682481923778',3,'报名活动7',1,'报名理由7','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(8,'1682481923763',1,'报名活动8',1,'报名理由8','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(9,'1682481923833',3,'报名活动9',3,'报名理由9','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(10,'1682481923833',2,'报名活动10',2,'报名理由10','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(11,'1682481923752',2,'报名活动11',2,'报名理由11','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(12,'1682481923822',2,'报名活动12',3,'报名理由12','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(13,'1682481923844',3,'报名活动13',1,'报名理由13','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23'),(14,'1682481923792',3,'报名活动14',2,'报名理由14','2023-04-26 12:05:23',1,NULL,'2023-04-26 12:05:23');/*Table structure for table `jiaoliushenqing` */DROP TABLE IF EXISTS `jiaoliushenqing`;CREATE TABLE `jiaoliushenqing` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`jiaoliushenqing_name` varchar(200) DEFAULT NULL COMMENT '标题 Search111',`jiaoliushenqing_huojiang` varchar(200) DEFAULT NULL COMMENT '获奖经历',`jiaoliushenqing_jingsai` varchar(200) DEFAULT NULL COMMENT '活动竞赛经历',`jiaoliushenqing_file` varchar(200) DEFAULT NULL COMMENT '附件',`jiaoliushenqing_text` longtext COMMENT '详情信息',`jiaoliushenqing_yesno_types` int(11) DEFAULT NULL COMMENT '申请状态 Search111 ',`jiaoliushenqing_yesno_text` longtext COMMENT '审核回复',`insert_time` timestamp NULL DEFAULT NULL COMMENT '申请时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='交流申请';/*Data for the table `jiaoliushenqing` */insert into `jiaoliushenqing`(`id`,`yonghu_id`,`jiaoliushenqing_name`,`jiaoliushenqing_huojiang`,`jiaoliushenqing_jingsai`,`jiaoliushenqing_file`,`jiaoliushenqing_text`,`jiaoliushenqing_yesno_types`,`jiaoliushenqing_yesno_text`,`insert_time`,`create_time`) values (1,1,'标题1','获奖经历1','活动竞赛经历1','upload/file.rar','详情信息1',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(2,1,'标题2','获奖经历2','活动竞赛经历2','upload/file.rar','详情信息2',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(3,3,'标题3','获奖经历3','活动竞赛经历3','upload/file.rar','详情信息3',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(4,1,'标题4','获奖经历4','活动竞赛经历4','upload/file.rar','详情信息4',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(5,3,'标题5','获奖经历5','活动竞赛经历5','upload/file.rar','详情信息5',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(6,2,'标题6','获奖经历6','活动竞赛经历6','upload/file.rar','详情信息6',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(7,1,'标题7','获奖经历7','活动竞赛经历7','upload/file.rar','详情信息7',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(8,1,'标题8','获奖经历8','活动竞赛经历8','upload/file.rar','详情信息8',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(9,3,'标题9','获奖经历9','活动竞赛经历9','upload/file.rar','详情信息9',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(10,2,'标题10','获奖经历10','活动竞赛经历10','upload/file.rar','详情信息10',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(11,1,'标题11','获奖经历11','活动竞赛经历11','upload/file.rar','详情信息11',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(12,2,'标题12','获奖经历12','活动竞赛经历12','upload/file.rar','详情信息12',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(13,2,'标题13','获奖经历13','活动竞赛经历13','upload/file.rar','详情信息13',1,NULL,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(14,3,'标题14','获奖经历14','活动竞赛经历14','upload/file.rar','详情信息14',3,'12','2023-04-26 12:05:23','2023-04-26 12:05:23'),(16,1,'12','312','123','upload/1682487231541.rar','123',2,'123','2023-04-26 13:33:53','2023-04-26 13:33:53');/*Table structure for table `jiaoshi` */DROP TABLE IF EXISTS `jiaoshi`;CREATE TABLE `jiaoshi` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`jiaoshi_uuid_number` varchar(200) DEFAULT NULL COMMENT '工号 ',`username` varchar(200) DEFAULT NULL COMMENT '账户',`password` varchar(200) DEFAULT NULL COMMENT '密码',`jiaoshi_name` varchar(200) DEFAULT NULL COMMENT '教师姓名 Search111 ',`jiaoshi_photo` varchar(255) DEFAULT NULL COMMENT '头像',`sex_types` int(11) DEFAULT NULL COMMENT '性别 Search111 ',`jiaoshi_phone` varchar(200) DEFAULT NULL COMMENT '联系方式',`jiaoshi_types` int(11) DEFAULT NULL COMMENT '教师类型 Search111 ',`jiaoshi_email` varchar(200) DEFAULT NULL COMMENT '邮箱',`jiaoshi_delete` int(11) DEFAULT '1' COMMENT '假删',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='教师';/*Data for the table `jiaoshi` */insert into `jiaoshi`(`id`,`jiaoshi_uuid_number`,`username`,`password`,`jiaoshi_name`,`jiaoshi_photo`,`sex_types`,`jiaoshi_phone`,`jiaoshi_types`,`jiaoshi_email`,`jiaoshi_delete`,`create_time`) values (1,'1682481923809','a1','123456','教师姓名1','upload/jiaoshi1.jpg',1,'17703786901',3,'1@qq.com',1,'2023-04-26 12:05:23'),(2,'1682481923798','a2','123456','教师姓名2','upload/jiaoshi2.jpg',2,'17703786902',2,'2@qq.com',1,'2023-04-26 12:05:23'),(3,'1682481923841','a3','123456','教师姓名3','upload/jiaoshi3.jpg',2,'17703786903',2,'3@qq.com',1,'2023-04-26 12:05:23');/*Table structure for table `kecheng` */DROP TABLE IF EXISTS `kecheng`;CREATE TABLE `kecheng` (`id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`kecheng_uuid_number` varchar(200) DEFAULT NULL COMMENT '课程编号',`kecheng_name` varchar(200) DEFAULT NULL COMMENT '课程名称 Search111',`kecheng_types` int(200) DEFAULT NULL COMMENT '课程类型 Search111',`kecheng_photo` varchar(200) DEFAULT NULL COMMENT '课程封面',`kecheng_shijian` int(200) DEFAULT NULL COMMENT '课程时间/分钟',`jiaoshi_id` int(200) DEFAULT NULL COMMENT '负责教师',`xuefen_numb` int(200) DEFAULT NULL COMMENT '学分',`kecheng_content` text 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`,`kecheng_uuid_number`,`kecheng_name`,`kecheng_types`,`kecheng_photo`,`kecheng_shijian`,`jiaoshi_id`,`xuefen_numb`,`kecheng_content`,`create_time`) values (1,'1682481923775','课程名称1',1,'upload/kecheng1.jpg',486,1,349,'课程详情1','2023-04-26 12:05:23'),(2,'1682481923783','课程名称2',3,'upload/kecheng2.jpg',483,3,83,'课程详情2','2023-04-26 12:05:23'),(3,'1682481923776','课程名称3',2,'upload/kecheng3.jpg',275,3,42,'课程详情3','2023-04-26 12:05:23'),(4,'1682481923854','课程名称4',1,'upload/kecheng4.jpg',275,2,174,'课程详情4','2023-04-26 12:05:23'),(5,'1682481923817','课程名称5',1,'upload/kecheng5.jpg',59,3,149,'课程详情5','2023-04-26 12:05:23'),(6,'1682481923853','课程名称6',2,'upload/kecheng6.jpg',121,1,467,'课程详情6','2023-04-26 12:05:23'),(7,'1682481923787','课程名称7',2,'upload/kecheng7.jpg',371,2,488,'课程详情7','2023-04-26 12:05:23'),(8,'1682481923843','课程名称8',3,'upload/kecheng8.jpg',426,2,33,'课程详情8','2023-04-26 12:05:23'),(9,'1682481923850','课程名称9',2,'upload/kecheng9.jpg',96,3,333,'课程详情9','2023-04-26 12:05:23'),(10,'1682481923802','课程名称10',2,'upload/kecheng10.jpg',195,1,162,'课程详情10','2023-04-26 12:05:23'),(11,'1682481923839','课程名称11',3,'upload/kecheng11.jpg',122,3,499,'课程详情11','2023-04-26 12:05:23'),(12,'1682481923845','课程名称12',2,'upload/kecheng12.jpg',179,3,1,'课程详情12','2023-04-26 12:05:23'),(13,'1682481923857','课程名称13',1,'upload/kecheng13.jpg',261,2,468,'课程详情13','2023-04-26 12:05:23'),(14,'1682481923843','课程名称14',1,'upload/kecheng14.jpg',177,3,269,'课程详情14','2023-04-26 12:05:23');/*Table structure for table `news` */DROP TABLE IF EXISTS `news`;CREATE TABLE `news` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`news_name` varchar(200) DEFAULT NULL COMMENT '公告标题 Search111 ',`news_types` int(11) DEFAULT NULL COMMENT '公告类型 Search111 ',`news_photo` varchar(200) DEFAULT NULL COMMENT '公告图片',`insert_time` timestamp NULL DEFAULT NULL COMMENT '添加时间',`news_content` longtext 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 `news` */insert into `news`(`id`,`news_name`,`news_types`,`news_photo`,`insert_time`,`news_content`,`create_time`) values (1,'公告标题1',1,'upload/news1.jpg','2023-04-26 12:05:23','公告详情1','2023-04-26 12:05:23'),(2,'公告标题2',1,'upload/news2.jpg','2023-04-26 12:05:23','公告详情2','2023-04-26 12:05:23'),(3,'公告标题3',2,'upload/news3.jpg','2023-04-26 12:05:23','公告详情3','2023-04-26 12:05:23'),(4,'公告标题4',3,'upload/news4.jpg','2023-04-26 12:05:23','公告详情4','2023-04-26 12:05:23'),(5,'公告标题5',2,'upload/news5.jpg','2023-04-26 12:05:23','公告详情5','2023-04-26 12:05:23'),(6,'公告标题6',1,'upload/news6.jpg','2023-04-26 12:05:23','公告详情6','2023-04-26 12:05:23'),(7,'公告标题7',2,'upload/news7.jpg','2023-04-26 12:05:23','公告详情7','2023-04-26 12:05:23'),(8,'公告标题8',2,'upload/news8.jpg','2023-04-26 12:05:23','公告详情8','2023-04-26 12:05:23'),(9,'公告标题9',1,'upload/news9.jpg','2023-04-26 12:05:23','公告详情9','2023-04-26 12:05:23'),(10,'公告标题10',1,'upload/news10.jpg','2023-04-26 12:05:23','公告详情10','2023-04-26 12:05:23'),(11,'公告标题11',3,'upload/news11.jpg','2023-04-26 12:05:23','公告详情11','2023-04-26 12:05:23'),(12,'公告标题12',2,'upload/news12.jpg','2023-04-26 12:05:23','公告详情12','2023-04-26 12:05:23'),(13,'公告标题13公告标题13公告标题13公告标题13公告标题13公告标题13公告标题13公告标题13',2,'upload/news13.jpg','2023-04-26 12:05:23','公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13公告详情13','2023-04-26 12:05:23'),(14,'公告标题14',2,'upload/news14.jpg','2023-04-26 12:05:23','公告详情14','2023-04-26 12:05:23');/*Table structure for table `qingjia` */DROP TABLE IF EXISTS `qingjia`;CREATE TABLE `qingjia` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`yonghu_id` int(200) DEFAULT NULL COMMENT '学生',`qingjia_name` varchar(200) DEFAULT NULL COMMENT '请假标题 Search111 ',`qingjia_text` longtext COMMENT '请假缘由',`qingjia_types` int(11) DEFAULT NULL COMMENT '请假类型 Search111',`insert_time` timestamp NULL DEFAULT NULL COMMENT '申请时间',`qingjia_time` timestamp NULL DEFAULT NULL COMMENT '请假时间',`qingjia_number` int(200) DEFAULT NULL COMMENT '请假天数',`qingjia_yesno_types` int(11) DEFAULT NULL COMMENT '申请状态 Search111 ',`qingjia_yesno_text` longtext COMMENT '处理意见',`qingjia_shenhe_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 `qingjia` */insert into `qingjia`(`id`,`yonghu_id`,`qingjia_name`,`qingjia_text`,`qingjia_types`,`insert_time`,`qingjia_time`,`qingjia_number`,`qingjia_yesno_types`,`qingjia_yesno_text`,`qingjia_shenhe_time`,`create_time`) values (1,3,'请假标题1','请假缘由1',2,'2023-04-26 12:05:23','2023-04-26 12:05:23',19,1,NULL,NULL,'2023-04-26 12:05:23'),(2,3,'请假标题2','请假缘由2',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',133,1,NULL,NULL,'2023-04-26 12:05:23'),(3,3,'请假标题3','请假缘由3',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',163,1,NULL,NULL,'2023-04-26 12:05:23'),(4,1,'请假标题4','请假缘由4',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',373,1,NULL,NULL,'2023-04-26 12:05:23'),(5,3,'请假标题5','请假缘由5',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',460,1,NULL,NULL,'2023-04-26 12:05:23'),(6,3,'请假标题6','请假缘由6',2,'2023-04-26 12:05:23','2023-04-26 12:05:23',348,1,NULL,NULL,'2023-04-26 12:05:23'),(7,2,'请假标题7','请假缘由7',2,'2023-04-26 12:05:23','2023-04-26 12:05:23',441,1,NULL,NULL,'2023-04-26 12:05:23'),(8,2,'请假标题8','请假缘由8',2,'2023-04-26 12:05:23','2023-04-26 12:05:23',311,1,NULL,NULL,'2023-04-26 12:05:23'),(9,2,'请假标题9','请假缘由9',2,'2023-04-26 12:05:23','2023-04-26 12:05:23',367,1,NULL,NULL,'2023-04-26 12:05:23'),(10,2,'请假标题10','请假缘由10',2,'2023-04-26 12:05:23','2023-04-26 12:05:23',448,1,NULL,NULL,'2023-04-26 12:05:23'),(11,3,'请假标题11','请假缘由11',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',288,1,NULL,NULL,'2023-04-26 12:05:23'),(12,3,'请假标题12','请假缘由12',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',377,1,NULL,NULL,'2023-04-26 12:05:23'),(13,2,'请假标题13','请假缘由13',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',234,1,NULL,NULL,'2023-04-26 12:05:23'),(14,3,'请假标题14','请假缘由14',1,'2023-04-26 12:05:23','2023-04-26 12:05:23',309,1,NULL,NULL,'2023-04-26 12:05:23');/*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,'admin','users','管理员','p8fxk89s21fomjnl5xyma9hv6vak6eb5','2023-04-26 13:21:52','2023-04-26 14:34:54'),(2,1,'a1','yonghu','学生','nqlmgqumo409voyrpo90isa8nddhu1uj','2023-04-26 13:29:43','2023-04-26 14:33:21'),(3,1,'a1','jiaoshi','教师','xm35awoxhzp58xp3ahw9kdq69ysfybgp','2023-04-26 13:30:23','2023-04-26 14:34: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-04-26 12:05:16');/*Table structure for table `xuanke` */DROP TABLE IF EXISTS `xuanke`;CREATE TABLE `xuanke` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`kecheng_id` int(11) DEFAULT NULL COMMENT '课程',`yonghu_id` 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=19 DEFAULT CHARSET=utf8 COMMENT='选课信息';/*Data for the table `xuanke` */insert into `xuanke`(`id`,`kecheng_id`,`yonghu_id`,`insert_time`,`create_time`) values (1,1,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(2,2,3,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(3,3,2,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(4,4,3,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(5,5,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(6,6,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(7,7,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(8,8,3,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(9,9,3,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(10,10,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(11,11,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(12,12,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(13,13,2,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(14,14,3,'2023-04-26 12:05:23','2023-04-26 12:05:23');/*Table structure for table `xuefenjilu` */DROP TABLE IF EXISTS `xuefenjilu`;CREATE TABLE `xuefenjilu` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`yonghu_id` int(11) DEFAULT NULL COMMENT '学生',`jiaoshi_id` int(11) DEFAULT NULL COMMENT '教师',`xuefenjilu_numb` int(200) DEFAULT NULL COMMENT '增加学分',`xuefenjilu_content` 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=22 DEFAULT CHARSET=utf8 COMMENT='学分增加记录';/*Data for the table `xuefenjilu` */insert into `xuefenjilu`(`id`,`yonghu_id`,`jiaoshi_id`,`xuefenjilu_numb`,`xuefenjilu_content`,`insert_time`,`create_time`) values (1,1,1,430,'原因1','2023-04-26 12:05:23','2023-04-26 12:05:23'),(2,2,1,110,'原因2','2023-04-26 12:05:23','2023-04-26 12:05:23'),(3,1,2,205,'原因3','2023-04-26 12:05:23','2023-04-26 12:05:23'),(4,3,3,48,'原因4','2023-04-26 12:05:23','2023-04-26 12:05:23'),(5,3,3,75,'原因5','2023-04-26 12:05:23','2023-04-26 12:05:23'),(6,3,2,413,'原因6','2023-04-26 12:05:23','2023-04-26 12:05:23'),(7,1,3,221,'原因7','2023-04-26 12:05:23','2023-04-26 12:05:23'),(8,2,1,139,'原因8','2023-04-26 12:05:23','2023-04-26 12:05:23'),(9,3,2,66,'原因9','2023-04-26 12:05:23','2023-04-26 12:05:23'),(10,3,1,273,'原因10','2023-04-26 12:05:23','2023-04-26 12:05:23'),(11,3,1,372,'原因11','2023-04-26 12:05:23','2023-04-26 12:05:23'),(12,2,1,151,'原因12','2023-04-26 12:05:23','2023-04-26 12:05:23'),(13,1,2,445,'原因13','2023-04-26 12:05:23','2023-04-26 12:05:23'),(14,1,3,298,'原因14','2023-04-26 12:05:23','2023-04-26 12:05:23'),(21,1,1,21,'<p>123</p>','2023-04-26 13:34:40','2023-04-26 13:34:40');/*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 '性别 Search111',`yonghu_email` varchar(200) DEFAULT NULL COMMENT '学生邮箱',`yonghu_xuefen` int(200) DEFAULT NULL COMMENT '学分',`yonghu_delete` int(11) DEFAULT NULL COMMENT '逻辑删除',`insert_time` timestamp NULL 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`,`yonghu_xuefen`,`yonghu_delete`,`insert_time`,`create_time`) values (1,'a1','123456','学生名称1','17703786901','410224199010102001','upload/yonghu1.jpg',2,'1@qq.com',361,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(2,'a2','123456','学生名称2','17703786902','410224199010102002','upload/yonghu2.jpg',2,'2@qq.com',197,1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(3,'a3','123456','学生名称3','17703786903','410224199010102003','upload/yonghu3.jpg',1,'3@qq.com',298,1,'2023-04-26 12:05:23','2023-04-26 12:05:23');/*Table structure for table `yuanxiao` */DROP TABLE IF EXISTS `yuanxiao`;CREATE TABLE `yuanxiao` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',`yuanxiao_name` varchar(200) DEFAULT NULL COMMENT '院校名称 Search111 ',`yuanxiao_photo` varchar(200) DEFAULT NULL COMMENT '展示照片',`yuanxiao_content` longtext COMMENT '展示内容 ',`yuanxiao_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 `yuanxiao` */insert into `yuanxiao`(`id`,`yuanxiao_name`,`yuanxiao_photo`,`yuanxiao_content`,`yuanxiao_delete`,`insert_time`,`create_time`) values (1,'院校名称1','upload/yuanxiao1.jpg','展示内容1',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(2,'院校名称2','upload/yuanxiao2.jpg','展示内容2',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(3,'院校名称3','upload/yuanxiao3.jpg','展示内容3',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(4,'院校名称4','upload/yuanxiao4.jpg','展示内容4',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(5,'院校名称5','upload/yuanxiao5.jpg','展示内容5',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(6,'院校名称6','upload/yuanxiao6.jpg','展示内容6',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(7,'院校名称7','upload/yuanxiao7.jpg','展示内容7',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(8,'院校名称8','upload/yuanxiao8.jpg','展示内容8',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(9,'院校名称9','upload/yuanxiao9.jpg','展示内容9',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(10,'院校名称10','upload/yuanxiao10.jpg','展示内容10',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(11,'院校名称11','upload/yuanxiao11.jpg','展示内容11',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(12,'院校名称12','upload/yuanxiao12.jpg','展示内容12',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(13,'院校名称13','upload/yuanxiao13.jpg','展示内容13',1,'2023-04-26 12:05:23','2023-04-26 12:05:23'),(14,'院校名称14','upload/yuanxiao14.jpg','展示内容14',1,'2023-04-26 12:05:23','2023-04-26 12:05:23');/*Table structure for table `ziliao` */DROP TABLE IF EXISTS `ziliao`;CREATE TABLE `ziliao` (`id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`ziliao_uuid_number` varchar(200) DEFAULT NULL COMMENT '资料编号',`ziliao_name` varchar(200) DEFAULT NULL COMMENT '资料名称 Search111',`ziliao_types` int(200) DEFAULT NULL COMMENT '资料类型 Search111',`ziliao_photo` varchar(200) DEFAULT NULL COMMENT '资料封面',`ziliao_file` varchar(200) DEFAULT NULL COMMENT '资料',`ziliao_content` text 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`,`ziliao_uuid_number`,`ziliao_name`,`ziliao_types`,`ziliao_photo`,`ziliao_file`,`ziliao_content`,`create_time`) values (1,'1682481923880','资料名称1',1,'upload/ziliao1.jpg','upload/file.rar','资料详情1','2023-04-26 12:05:23'),(2,'1682481923846','资料名称2',2,'upload/ziliao2.jpg','upload/file.rar','资料详情2','2023-04-26 12:05:23'),(3,'1682481923863','资料名称3',3,'upload/ziliao3.jpg','upload/file.rar','资料详情3','2023-04-26 12:05:23'),(4,'1682481923841','资料名称4',2,'upload/ziliao4.jpg','upload/file.rar','资料详情4','2023-04-26 12:05:23'),(5,'1682481923849','资料名称5',2,'upload/ziliao5.jpg','upload/file.rar','资料详情5','2023-04-26 12:05:23'),(6,'1682481923874','资料名称6',3,'upload/ziliao6.jpg','upload/file.rar','资料详情6','2023-04-26 12:05:23'),(7,'1682481923883','资料名称7',2,'upload/ziliao7.jpg','upload/file.rar','资料详情7','2023-04-26 12:05:23'),(8,'1682481923854','资料名称8',1,'upload/ziliao8.jpg','upload/file.rar','资料详情8','2023-04-26 12:05:23'),(9,'1682481923836','资料名称9',3,'upload/ziliao9.jpg','upload/file.rar','资料详情9','2023-04-26 12:05:23'),(10,'1682481923836','资料名称10',1,'upload/ziliao10.jpg','upload/file.rar','资料详情10','2023-04-26 12:05:23'),(11,'1682481923828','资料名称11',3,'upload/ziliao11.jpg','upload/file.rar','资料详情11','2023-04-26 12:05:23'),(12,'1682481923819','资料名称12',1,'upload/ziliao12.jpg','upload/file.rar','资料详情12','2023-04-26 12:05:23'),(13,'1682481923791','资料名称13',2,'upload/ziliao13.jpg','upload/file.rar','资料详情13','2023-04-26 12:05:23'),(14,'1682481923806','资料名称14',2,'upload/ziliao14.jpg','upload/file.rar','资料详情14','2023-04-26 12:05:23');/*!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("/jiaoliushenqing")
public class JiaoliushenqingController {private static final Logger logger = LoggerFactory.getLogger(JiaoliushenqingController.class);private static final String TABLE_NAME = "jiaoliushenqing";@Autowiredprivate JiaoliushenqingService jiaoliushenqingService;@Autowiredprivate TokenService tokenService;@Autowiredprivate ChengjiService chengjiService;//学生成绩@Autowiredprivate DictionaryService dictionaryService;//字典@Autowiredprivate ForumService forumService;//论坛@Autowiredprivate HuoodngbaomingService huoodngbaomingService;//活动报名@Autowiredprivate JiaoshiService jiaoshiService;//教师@Autowiredprivate KechengService kechengService;//课程信息@Autowiredprivate NewsService newsService;//公告信息@Autowiredprivate QingjiaService qingjiaService;//学生请假@Autowiredprivate XuankeService xuankeService;//选课信息@Autowiredprivate XuefenjiluService xuefenjiluService;//学分增加记录@Autowiredprivate YonghuService yonghuService;//学生@Autowiredprivate YuanxiaoService yuanxiaoService;//院校展示@Autowiredprivate ZiliaoService ziliaoService;//公共资料@Autowiredprivate UsersService usersService;//管理员/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> 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("jiaoshiId",request.getSession().getAttribute("userId"));CommonUtil.checkMap(params);PageUtils page = jiaoliushenqingService.queryPage(params);//字典表数据转换List<JiaoliushenqingView> list =(List<JiaoliushenqingView>)page.getList();for(JiaoliushenqingView 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);JiaoliushenqingEntity jiaoliushenqing = jiaoliushenqingService.selectById(id);if(jiaoliushenqing !=null){//entity转viewJiaoliushenqingView view = new JiaoliushenqingView();BeanUtils.copyProperties( jiaoliushenqing , view );//把实体数据重构到view中//级联表 学生//级联表YonghuEntity yonghu = yonghuService.selectById(jiaoliushenqing.getYonghuId());if(yonghu != null){BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "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 JiaoliushenqingEntity jiaoliushenqing, HttpServletRequest request){logger.debug("save方法:,,Controller:{},,jiaoliushenqing:{}",this.getClass().getName(),jiaoliushenqing.toString());String role = String.valueOf(request.getSession().getAttribute("role"));if(false)return R.error(511,"永远不会进入");else if("学生".equals(role))jiaoliushenqing.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));Wrapper<JiaoliushenqingEntity> queryWrapper = new EntityWrapper<JiaoliushenqingEntity>().eq("yonghu_id", jiaoliushenqing.getYonghuId()).eq("jiaoliushenqing_name", jiaoliushenqing.getJiaoliushenqingName()).eq("jiaoliushenqing_huojiang", jiaoliushenqing.getJiaoliushenqingHuojiang()).eq("jiaoliushenqing_jingsai", jiaoliushenqing.getJiaoliushenqingJingsai()).in("jiaoliushenqing_yesno_types", new Integer[]{1,2});logger.info("sql语句:"+queryWrapper.getSqlSegment());JiaoliushenqingEntity jiaoliushenqingEntity = jiaoliushenqingService.selectOne(queryWrapper);if(jiaoliushenqingEntity==null){jiaoliushenqing.setJiaoliushenqingYesnoTypes(1);jiaoliushenqing.setInsertTime(new Date());jiaoliushenqing.setCreateTime(new Date());jiaoliushenqingService.insert(jiaoliushenqing);return R.ok();}else {if(jiaoliushenqingEntity.getJiaoliushenqingYesnoTypes()==1)return R.error(511,"有相同的待审核的数据");else if(jiaoliushenqingEntity.getJiaoliushenqingYesnoTypes()==2)return R.error(511,"有相同的审核通过的数据");elsereturn R.error(511,"表中有相同数据");}}/*** 后端修改*/@RequestMapping("/update")public R update(@RequestBody JiaoliushenqingEntity jiaoliushenqing, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {logger.debug("update方法:,,Controller:{},,jiaoliushenqing:{}",this.getClass().getName(),jiaoliushenqing.toString());JiaoliushenqingEntity oldJiaoliushenqingEntity = jiaoliushenqingService.selectById(jiaoliushenqing.getId());//查询原先数据String role = String.valueOf(request.getSession().getAttribute("role"));
// if(false)
// return R.error(511,"永远不会进入");
// else if("学生".equals(role))
// jiaoliushenqing.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));if("".equals(jiaoliushenqing.getJiaoliushenqingFile()) || "null".equals(jiaoliushenqing.getJiaoliushenqingFile())){jiaoliushenqing.setJiaoliushenqingFile(null);}if("".equals(jiaoliushenqing.getJiaoliushenqingText()) || "null".equals(jiaoliushenqing.getJiaoliushenqingText())){jiaoliushenqing.setJiaoliushenqingText(null);}if("".equals(jiaoliushenqing.getJiaoliushenqingYesnoText()) || "null".equals(jiaoliushenqing.getJiaoliushenqingYesnoText())){jiaoliushenqing.setJiaoliushenqingYesnoText(null);}jiaoliushenqingService.updateById(jiaoliushenqing);//根据id更新return R.ok();}/*** 审核*/@RequestMapping("/shenhe")public R shenhe(@RequestBody JiaoliushenqingEntity jiaoliushenqingEntity, HttpServletRequest request){logger.debug("shenhe方法:,,Controller:{},,jiaoliushenqingEntity:{}",this.getClass().getName(),jiaoliushenqingEntity.toString());JiaoliushenqingEntity oldJiaoliushenqing = jiaoliushenqingService.selectById(jiaoliushenqingEntity.getId());//查询原先数据// if(jiaoliushenqingEntity.getJiaoliushenqingYesnoTypes() == 2){//通过
// jiaoliushenqingEntity.setJiaoliushenqingTypes();
// }else if(jiaoliushenqingEntity.getJiaoliushenqingYesnoTypes() == 3){//拒绝
// jiaoliushenqingEntity.setJiaoliushenqingTypes();
// }jiaoliushenqingService.updateById(jiaoliushenqingEntity);//审核return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Integer[] ids, HttpServletRequest request){logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());List<JiaoliushenqingEntity> oldJiaoliushenqingList =jiaoliushenqingService.selectBatchIds(Arrays.asList(ids));//要删除的数据jiaoliushenqingService.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");//.eq("time", new SimpleDateFormat("yyyy-MM-dd").format(new Date()))try {List<JiaoliushenqingEntity> jiaoliushenqingList = new ArrayList<>();//上传的东西Map<String, List<String>> 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<List<String>> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件dataList.remove(0);//删除第一行,因为第一行是提示for(List<String> data:dataList){//循环JiaoliushenqingEntity jiaoliushenqingEntity = new JiaoliushenqingEntity();
// jiaoliushenqingEntity.setYonghuId(Integer.valueOf(data.get(0))); //用户 要改的
// jiaoliushenqingEntity.setJiaoliushenqingName(data.get(0)); //标题 要改的
// jiaoliushenqingEntity.setJiaoliushenqingHuojiang(data.get(0)); //获奖经历 要改的
// jiaoliushenqingEntity.setJiaoliushenqingJingsai(data.get(0)); //活动竞赛经历 要改的
// jiaoliushenqingEntity.setJiaoliushenqingFile(data.get(0)); //附件 要改的
// jiaoliushenqingEntity.setJiaoliushenqingText(data.get(0)); //详情信息 要改的
// jiaoliushenqingEntity.setJiaoliushenqingYesnoTypes(Integer.valueOf(data.get(0))); //申请状态 要改的
// jiaoliushenqingEntity.setJiaoliushenqingYesnoText(data.get(0)); //审核回复 要改的
// jiaoliushenqingEntity.setInsertTime(date);//时间
// jiaoliushenqingEntity.setCreateTime(date);//时间jiaoliushenqingList.add(jiaoliushenqingEntity);//把要查询是否重复的字段放入map中}//查询是否重复jiaoliushenqingService.insertBatch(jiaoliushenqingList);return R.ok();}}}}catch (Exception e){e.printStackTrace();return R.error(511,"批量插入数据异常,请联系管理员");}}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params, HttpServletRequest request){logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));CommonUtil.checkMap(params);PageUtils page = jiaoliushenqingService.queryPage(params);//字典表数据转换List<JiaoliushenqingView> list =(List<JiaoliushenqingView>)page.getList();for(JiaoliushenqingView c:list)dictionaryService.dictionaryConvert(c, request); //修改对应字典表字段return R.ok().put("data", page);}/*** 前端详情*/@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Integer id, HttpServletRequest request){logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);JiaoliushenqingEntity jiaoliushenqing = jiaoliushenqingService.selectById(id);if(jiaoliushenqing !=null){//entity转viewJiaoliushenqingView view = new JiaoliushenqingView();BeanUtils.copyProperties( jiaoliushenqing , view );//把实体数据重构到view中//级联表YonghuEntity yonghu = yonghuService.selectById(jiaoliushenqing.getYonghuId());if(yonghu != null){BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "username", "password", "newMoney", "yonghuId"});//把级联的数据添加到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 JiaoliushenqingEntity jiaoliushenqing, HttpServletRequest request){logger.debug("add方法:,,Controller:{},,jiaoliushenqing:{}",this.getClass().getName(),jiaoliushenqing.toString());Wrapper<JiaoliushenqingEntity> queryWrapper = new EntityWrapper<JiaoliushenqingEntity>().eq("yonghu_id", jiaoliushenqing.getYonghuId()).eq("jiaoliushenqing_name", jiaoliushenqing.getJiaoliushenqingName()).eq("jiaoliushenqing_huojiang", jiaoliushenqing.getJiaoliushenqingHuojiang()).eq("jiaoliushenqing_jingsai", jiaoliushenqing.getJiaoliushenqingJingsai()).eq("jiaoliushenqing_text", jiaoliushenqing.getJiaoliushenqingText()).in("jiaoliushenqing_yesno_types", new Integer[]{1,2}).eq("jiaoliushenqing_yesno_text", jiaoliushenqing.getJiaoliushenqingYesnoText())
// .notIn("jiaoliushenqing_types", new Integer[]{102});logger.info("sql语句:"+queryWrapper.getSqlSegment());JiaoliushenqingEntity jiaoliushenqingEntity = jiaoliushenqingService.selectOne(queryWrapper);if(jiaoliushenqingEntity==null){jiaoliushenqing.setJiaoliushenqingYesnoTypes(1);jiaoliushenqing.setInsertTime(new Date());jiaoliushenqing.setCreateTime(new Date());jiaoliushenqingService.insert(jiaoliushenqing);return R.ok();}else {if(jiaoliushenqingEntity.getJiaoliushenqingYesnoTypes()==1)return R.error(511,"有相同的待审核的数据");else if(jiaoliushenqingEntity.getJiaoliushenqingYesnoTypes()==2)return R.error(511,"有相同的审核通过的数据");elsereturn R.error(511,"表中有相同数据");}}
}
5.2 交流申请Service模块
package com.service;import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.JiaoliushenqingEntity;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import java.util.List;/*** 交流申请 服务类*/
public interface JiaoliushenqingService extends IService<JiaoliushenqingEntity> {/*** @param params 查询参数* @return 带分页的查询出来的数据*/PageUtils queryPage(Map<String, Object> 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.JiaoliushenqingDao;
import com.entity.JiaoliushenqingEntity;
import com.service.JiaoliushenqingService;
import com.entity.view.JiaoliushenqingView;/*** 交流申请 服务实现类*/
@Service("jiaoliushenqingService")
@Transactional
public class JiaoliushenqingServiceImpl extends ServiceImpl<JiaoliushenqingDao, JiaoliushenqingEntity> implements JiaoliushenqingService {@Overridepublic PageUtils queryPage(Map<String,Object> params) {Page<JiaoliushenqingView> page =new Query<JiaoliushenqingView>(params).getPage();page.setRecords(baseMapper.selectListView(page,params));return new PageUtils(page);}}
5.4 交流申请Dao模块
package com.dao;import com.entity.JiaoliushenqingEntity;
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.JiaoliushenqingView;/*** 交流申请 Dao 接口** @author 学长编程*/
public interface JiaoliushenqingDao extends BaseMapper<JiaoliushenqingEntity> {List<JiaoliushenqingView> selectListView(Pagination page,@Param("params")Map<String,Object> params);}
6、论文目录结构
7、源码获取
感谢大家的阅读,如有不懂的问题可以评论区交流或私聊!
喜欢文章可以点赞、收藏、关注、评论啦
→获取源码请私信←