博主介绍:✌从事软件开发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、项目介绍及开发技术
如今社会上各行各业,都喜欢用自己行业的专属软件工作,互联网发展到这个时候,人们已经发现离不开了互联网。新技术的产生,往往能解决一些老技术的弊端问题。因为传统宠物爱心组织管理系统信息管理难度大,容错率低,管理人员处理数据费工费时,所以专门为解决这个难题开发了一个宠物爱心组织管理系统管理系统,可以解决许多问题。
宠物爱心组织管理系统管理系统按照操作主体分为管理员和用户。管理员的功能包括备忘录管理、宠物管理、宠物收藏管理、宠物评价管理、宠物订单管理、字典管理、公告管理、捐赠管理、流浪管理、流浪收藏管理、流浪评价管理、流浪订单管理、单页数据管理、团队活动管理、团队活动收藏管理、团队活动评价管理、团队活动报名管理、用户管理、志愿者申请管理、管理员管理。用户的功能等。该系统采用了Mysql数据库,Java语言,Spring Boot框架等技术进行编程实现。
宠物爱心组织管理系统管理系统可以提高宠物爱心组织管理系统信息管理问题的解决效率,优化宠物爱心组织管理系统信息处理流程,保证宠物爱心组织管理系统信息数据的安全,它是一个非常可靠,非常安全的应用程序。
Java开发语言、SpringBoot、SSM、MyBatisPlus、MySQL数据库、Maven、IDEA开发工具、JDK1.8+、Vue、HTML、CSS、JS。
2、系统功能设计结构图
3、功能截图
志愿者申请管理:可以对志愿者申请信息的志愿者申请状态进行查看,可以添加新的志愿者申请信息等。
宠物管理: 在宠物管理界面中查看宠物种类信息,宠物描述信息,新增宠物信息等。
公告管理:在公告管理界面中新增公告,可以删除公告。
公告类型管理: 在公告类型管理界面查看公告的工作状态,可以对公告的数据进行导出,可以添加新公告的信息,可以编辑公告信息,删除公告信息。
4、数据库表结构设计
CREATE DATABASE /*!32312 IF NOT EXISTS*/`chongwuaixinzuzhiguanli` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `chongwuaixinzuzhiguanli`;
/*Table structure for table `beiwanglu` */
DROP TABLE IF EXISTS `beiwanglu`;
CREATE TABLE `beiwanglu` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`beiwanglu_name` varchar(200) DEFAULT NULL COMMENT '备忘录名称 Search111 ',
`beiwanglu_uuid_number` varchar(200) DEFAULT NULL COMMENT '备忘录编号',
`beiwanglu_content` longtext COMMENT '备忘录内容 ',
`beiwanglu_delete` 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 `beiwanglu` */
insert into `beiwanglu`(`id`,`yonghu_id`,`beiwanglu_name`,`beiwanglu_uuid_number`,`beiwanglu_content`,`beiwanglu_delete`,`insert_time`,`create_time`) values (1,1,'备忘录名称1','1681976333728','备忘录内容1',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,3,'备忘录名称2','1681976333796','备忘录内容2',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,2,'备忘录名称3','1681976333763','备忘录内容3',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,1,'备忘录名称4','1681976333798','备忘录内容4',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,3,'备忘录名称5','1681976333746','备忘录内容5',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,1,'备忘录名称6','1681976333733','备忘录内容6',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,3,'备忘录名称7','1681976333791','备忘录内容7',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,3,'备忘录名称8','1681976333727','备忘录内容8',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,2,'备忘录名称9','1681976333727','备忘录内容9',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,3,'备忘录名称10','1681976333787','备忘录内容10',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,1,'备忘录名称11','1681976333814','备忘录内容11',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,3,'备忘录名称12','1681976333805','备忘录内容12',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,3,'备忘录名称13','1681976333740','备忘录内容13',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,2,'备忘录名称14','1681976333772','备忘录内容14',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(15,1,'手打阿萨德','1681979821152','手打阿萨德sad',1,'2023-04-20 16:37:04','2023-04-20 16:37:04');
/*Table structure for table `chongwu` */
/*Data for the table `chongwu` */
insert into
/*Table structure for table `chongwu_collection` */
DROP TABLE IF EXISTS `chongwu_collection`;
CREATE TABLE `chongwu_collection` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`chongwu_id` int(11) DEFAULT NULL COMMENT '宠物',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`chongwu_collection_types` int(11) DEFAULT NULL COMMENT '类型',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='宠物收藏';
/*Data for the table `chongwu_collection` */
insert into
/*Table structure for table `chongwu_commentback` */
DROP TABLE IF EXISTS `chongwu_commentback`;
CREATE TABLE `chongwu_commentback` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`chongwu_id` int(11) DEFAULT NULL COMMENT '宠物',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`chongwu_commentback_text` longtext COMMENT '评价内容',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '评价时间',
`reply_text` longtext COMMENT '回复内容',
`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='宠物评价';
/*Data for the table `chongwu_commentback` */
insert into `chongwu_commentback`(`id`,`chongwu_id`,`yonghu_id`,`chongwu_commentback_text`,`insert_time`,`reply_text`,`update_time`,`create_time`) values (1,1,1,'评价内容1','2023-04-20 15:38:53','回复信息1','2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,2,2,'评价内容2','2023-04-20 15:38:53','回复信息2','2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,3,1,'评价内容3','2023-04-20 15:38:53','回复信息3','2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,4,3,'评价内容4','2023-04-20 15:38:53','回复信息4','2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,5,1,'评价内容5','2023-04-20 15:38:53','回复信息5','2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,6,2,'评价内容6','2023-04-20 15:38:53','回复信息6','2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,7,3,'评价内容7','2023-04-20 15:38:53','回复信息7','2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,8,1,'评价内容8','2023-04-20 15:38:53','回复信息8','2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,9,1,'评价内容9','2023-04-20 15:38:53','回复信息9','2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,10,1,'评价内容10','2023-04-20 15:38:53','回复信息10','2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,11,2,'评价内容11','2023-04-20 15:38:53','回复信息11','2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,12,3,'评价内容12','2023-04-20 15:38:53','回复信息12','2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,13,3,'评价内容13','2023-04-20 15:38:53','回复信息13','2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,14,1,'评价内容14','2023-04-20 15:38:53','回复信息14','2023-04-20 15:38:53','2023-04-20 15:38:53'),(15,13,1,'1560','2023-04-20 16:38:13',NULL,NULL,'2023-04-20 16:38:13');
/*Table structure for table `chongwu_order` */
DROP TABLE IF EXISTS `chongwu_order`;
CREATE TABLE `chongwu_order` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`chongwu_order_uuid_number` varchar(200) DEFAULT NULL COMMENT '订单编号 Search111 ',
`chongwu_id` int(11) DEFAULT NULL COMMENT '宠物',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`chongwu_order_types` int(11) DEFAULT NULL COMMENT '订单类型 Search111 ',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '订单创建时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='宠物订单';
/*Data for the table `chongwu_order` */
insert into `chongwu_order`(`id`,`chongwu_order_uuid_number`,`chongwu_id`,`yonghu_id`,`chongwu_order_types`,`insert_time`,`create_time`) values (1,'1681976873960',13,1,106,'2023-04-20 15:47:54','2023-04-20 15:47:54'),(2,'1681979523203',13,1,105,'2023-04-20 16:32:03','2023-04-20 16:32:03');
/*Table structure for table `config` */
DROP TABLE IF EXISTS `config`;
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`;
/*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-04-20 15:38:42'),(2,'sex_types','性别类型',2,'女',NULL,NULL,'2023-04-20 15:38:42'),(3,'yonghu_types','用户类型',1,'非志愿者',NULL,NULL,'2023-04-20 15:38:42'),(4,'yonghu_types','用户类型',2,'志愿者',NULL,NULL,'2023-04-20 15:38:42'),(5,'zhiyuanzhe_shenqing_yesno_types','报名状态',1,'待审核',NULL,NULL,'2023-04-20 15:38:42'),(6,'zhiyuanzhe_shenqing_yesno_types','报名状态',2,'同意',NULL,NULL,'2023-04-20 15:38:42'),(7,'zhiyuanzhe_shenqing_yesno_types','报名状态',3,'拒绝',NULL,NULL,'2023-04-20 15:38:42'),(8,'liulang_types','流浪类型',1,'流浪猫',NULL,NULL,'2023-04-20 15:38:42'),(9,'liulang_types','流浪类型',2,'流浪狗',NULL,NULL,'2023-04-20 15:38:42'),(10,'liulang_types','流浪类型',3,'流浪鱼',NULL,NULL,'2023-04-20 15:38:42'),(11,'liulang_types','流浪类型',4,'流浪鸟',NULL,NULL,'2023-04-20 15:38:42'),(12,'liulang_collection_types','收藏表类型',1,'收藏',NULL,NULL,'2023-04-20 15:38:42'),(13,'liulang_order_types','订单类型',101,'已申请认养',NULL,NULL,'2023-04-20 15:38:42'),(14,'liulang_order_types','订单类型',102,'已取消申请',NULL,NULL,'2023-04-20 15:38:42'),(15,'liulang_order_types','订单类型',103,'已同意认养',NULL,NULL,'2023-04-20 15:38:42'),(16,'liulang_order_types','订单类型',104,'已认养',NULL,NULL,'2023-04-20 15:38:42'),(17,'liulang_order_types','订单类型',105,'已评价',NULL,NULL,'2023-04-20 15:38:42'),(18,'liulang_order_types','订单类型',106,'已拒绝',NULL,NULL,'2023-04-20 15:38:42'),(19,'chongwu_types','宠物类型',1,'宠物猫',NULL,NULL,'2023-04-20 15:38:42'),(20,'chongwu_types','宠物类型',2,'宠物狗',NULL,NULL,'2023-04-20 15:38:42'),(21,'chongwu_types','宠物类型',3,'宠物鱼',NULL,NULL,'2023-04-20 15:38:42'),(22,'chongwu_types','宠物类型',4,'宠物鸟',NULL,NULL,'2023-04-20 15:38:42'),(23,'chongwu_collection_types','收藏表类型',1,'收藏',NULL,NULL,'2023-04-20 15:38:42'),(24,'chongwu_order_types','订单类型',101,'已申请认养',NULL,NULL,'2023-04-20 15:38:42'),(25,'chongwu_order_types','订单类型',102,'已取消申请',NULL,NULL,'2023-04-20 15:38:42'),(26,'chongwu_order_types','订单类型',103,'已同意认养',NULL,NULL,'2023-04-20 15:38:42'),(27,'chongwu_order_types','订单类型',104,'已认养',NULL,NULL,'2023-04-20 15:38:42'),(28,'chongwu_order_types','订单类型',105,'已评价',NULL,NULL,'2023-04-20 15:38:42'),(29,'chongwu_order_types','订单类型',106,'已拒绝',NULL,NULL,'2023-04-20 15:38:42'),(30,'tuandui_types','团队活动类型',1,'医疗',NULL,NULL,'2023-04-20 15:38:42'),(31,'tuandui_types','团队活动类型',2,'抓捕',NULL,NULL,'2023-04-20 15:38:42'),(32,'tuandui_types','团队活动类型',3,'其他',NULL,NULL,'2023-04-20 15:38:43'),(33,'tuandui_types','团队活动类型',4,'活动',NULL,NULL,'2023-04-20 15:38:43'),(34,'tuandui_collection_types','收藏表类型',1,'收藏',NULL,NULL,'2023-04-20 15:38:43'),(35,'tuandui_order_types','订单类型',101,'已申请',NULL,NULL,'2023-04-20 15:38:43'),(36,'tuandui_order_types','订单类型',102,'已取消申请',NULL,NULL,'2023-04-20 15:38:43'),(37,'tuandui_order_types','订单类型',103,'已同意',NULL,NULL,'2023-04-20 15:38:43'),(38,'tuandui_order_types','订单类型',104,'已参加',NULL,NULL,'2023-04-20 15:38:43'),(39,'tuandui_order_types','订单类型',105,'已评价',NULL,NULL,'2023-04-20 15:38:43'),(40,'gonggao_types','公告类型',1,'公告类型1',NULL,NULL,'2023-04-20 15:38:43'),(41,'gonggao_types','公告类型',2,'公告类型2',NULL,NULL,'2023-04-20 15:38:43'),(42,'single_seach_types','单页数据类型',1,'网站介绍',NULL,NULL,'2023-04-20 15:38:43');
/*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` 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 `gonggao` */
insert into `gonggao`(`id`,`gonggao_name`,`gonggao_photo`,`gonggao_types`,`insert_time`,`gonggao_content`,`create_time`) values (1,'公告名称1','upload/gonggao1.jpg',2,'2023-04-20 15:38:53','公告详情1','2023-04-20 15:38:53'),(2,'公告名称2','upload/gonggao2.jpg',1,'2023-04-20 15:38:53','公告详情2','2023-04-20 15:38:53'),(3,'公告名称3','upload/gonggao3.jpg',1,'2023-04-20 15:38:53','公告详情3','2023-04-20 15:38:53'),(4,'公告名称4','upload/gonggao4.jpg',1,'2023-04-20 15:38:53','公告详情4','2023-04-20 15:38:53'),(5,'公告名称5','upload/gonggao5.jpg',2,'2023-04-20 15:38:53','公告详情5','2023-04-20 15:38:53'),(6,'公告名称6','upload/gonggao6.jpg',1,'2023-04-20 15:38:53','公告详情6','2023-04-20 15:38:53'),(7,'公告名称7','upload/gonggao7.jpg',1,'2023-04-20 15:38:53','公告详情7','2023-04-20 15:38:53'),(8,'公告名称8','upload/gonggao8.jpg',2,'2023-04-20 15:38:53','公告详情8','2023-04-20 15:38:53'),(9,'公告名称9','upload/gonggao9.jpg',1,'2023-04-20 15:38:53','公告详情9','2023-04-20 15:38:53'),(10,'公告名称10','upload/gonggao10.jpg',1,'2023-04-20 15:38:53','公告详情10','2023-04-20 15:38:53'),(11,'公告名称11','upload/gonggao11.jpg',1,'2023-04-20 15:38:53','公告详情11','2023-04-20 15:38:53'),(12,'公告名称12','upload/gonggao12.jpg',2,'2023-04-20 15:38:53','公告详情12','2023-04-20 15:38:53'),(13,'公告名称13','upload/gonggao13.jpg',1,'2023-04-20 15:38:53','公告详情13','2023-04-20 15:38:53'),(14,'公告名称14','upload/gonggao14.jpg',2,'2023-04-20 15:38:53','公告详情14','2023-04-20 15:38:53');
/*Table structure for table `juanzeng` */
DROP TABLE IF EXISTS `juanzeng`;
CREATE TABLE `juanzeng` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`juanzeng_uuid_number` varchar(200) DEFAULT NULL COMMENT '报名编号 Search111 ',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`juanzeng_text` longtext COMMENT '捐赠',
`new_money` decimal(10,2) 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 `juanzeng` */
insert into `juanzeng`(`id`,`juanzeng_uuid_number`,`yonghu_id`,`juanzeng_text`,`new_money`,`insert_time`,`create_time`) values (1,'1681976333801',2,'捐赠1','843.37','2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,'1681976333810',2,'捐赠2','705.30','2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,'1681976333791',2,'捐赠3','664.23','2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,'1681976333783',2,'捐赠4','389.25','2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,'1681976333814',2,'捐赠5','838.84','2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,'1681976333786',1,'捐赠6','900.99','2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,'1681976333764',2,'捐赠7','642.59','2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,'1681976333795',1,'捐赠8','780.08','2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,'1681976333826',1,'捐赠9','316.56','2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,'1681976333743',2,'捐赠10','537.97','2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,'1681976333832',1,'捐赠11','59.04','2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,'1681976333774',3,'捐赠12','483.22','2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,'1681976333817',1,'捐赠13','521.15','2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,'1681976333799',1,'捐赠14','270.72','2023-04-20 15:38:53','2023-04-20 15:38:53'),(17,'1681978315458',1,'220','100.00','2023-04-20 16:17:08','2023-04-20 16:17:08'),(18,'1681979839197',1,'我要捐赠','50.00','2023-04-20 16:37:25','2023-04-20 16:37:25');
/*Table structure for table `liulang` */
DROP TABLE IF EXISTS `liulang`;
CREATE TABLE `liulang` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
`liulang_name` varchar(200) DEFAULT NULL COMMENT '流浪名称 Search111 ',
`liulang_uuid_number` varchar(200) DEFAULT NULL COMMENT '流浪编号',
`liulang_photo` varchar(200) DEFAULT NULL COMMENT '流浪照片',
`liulang_types` int(11) DEFAULT NULL COMMENT '流浪类型 Search111',
`liulang_content` longtext COMMENT '流浪介绍 ',
`liulang_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 `liulang` */
insert into `liulang`(`id`,`liulang_name`,`liulang_uuid_number`,`liulang_photo`,`liulang_types`,`liulang_content`,`liulang_delete`,`insert_time`,`create_time`) values (1,'流浪名称1','1681976333803','upload/liulang1.jpg',1,'流浪介绍1',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,'流浪名称2','1681976333806','upload/liulang2.jpg',3,'流浪介绍2',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,'流浪名称3','1681976333778','upload/liulang3.jpg',3,'流浪介绍3',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,'流浪名称4','1681976333792','upload/liulang4.jpg',2,'流浪介绍4',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,'流浪名称5','1681976333795','upload/liulang5.jpg',1,'流浪介绍5',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,'流浪名称6','1681976333741','upload/liulang6.jpg',1,'流浪介绍6',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,'流浪名称7','1681976333753','upload/liulang7.jpg',1,'流浪介绍7',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,'流浪名称8','1681976333824','upload/liulang8.jpg',1,'流浪介绍8',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,'流浪名称9','1681976333744','upload/liulang9.jpg',2,'流浪介绍9',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,'流浪名称10','1681976333752','upload/liulang10.jpg',1,'流浪介绍10',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,'流浪名称11','1681976333827','upload/liulang11.jpg',3,'流浪介绍11',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,'流浪名称12','1681976333829','upload/liulang12.jpg',3,'流浪介绍12',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,'流浪名称13','1681976333752','upload/liulang13.jpg',2,'流浪介绍13',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,'流浪名称14','1681976333749','upload/liulang14.jpg',4,'流浪介绍14',1,'2023-04-20 15:38:53','2023-04-20 15:38:53');
/*Table structure for table `liulang_collection` */
DROP TABLE IF EXISTS `liulang_collection`;
CREATE TABLE `liulang_collection` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`liulang_id` int(11) DEFAULT NULL COMMENT '流浪',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`liulang_collection_types` int(11) DEFAULT NULL COMMENT '类型',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='流浪收藏';
/*Data for the table `liulang_collection` */
insert into `liulang_collection`(`id`,`liulang_id`,`yonghu_id`,`liulang_collection_types`,`insert_time`,`create_time`) values (1,1,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,2,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,3,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,4,1,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,5,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,6,1,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,7,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,8,1,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,9,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,10,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,11,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,12,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,13,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,14,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53');
/*Table structure for table `liulang_commentback` */
DROP TABLE IF EXISTS `liulang_commentback`;
CREATE TABLE `liulang_commentback` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`liulang_id` int(11) DEFAULT NULL COMMENT '流浪',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`liulang_commentback_text` longtext COMMENT '评价内容',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '评价时间',
`reply_text` longtext COMMENT '回复内容',
`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='流浪评价';
/*Data for the table `liulang_commentback` */
insert into `liulang_commentback`(`id`,`liulang_id`,`yonghu_id`,`liulang_commentback_text`,`insert_time`,`reply_text`,`update_time`,`create_time`) values (1,1,1,'评价内容1','2023-04-20 15:38:53','回复信息1','2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,2,2,'评价内容2','2023-04-20 15:38:53','回复信息2','2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,3,3,'评价内容3','2023-04-20 15:38:53','回复信息3','2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,4,3,'评价内容4','2023-04-20 15:38:53','回复信息4','2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,5,1,'评价内容5','2023-04-20 15:38:53','回复信息5','2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,6,3,'评价内容6','2023-04-20 15:38:53','回复信息6','2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,7,2,'评价内容7','2023-04-20 15:38:53','回复信息7','2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,8,1,'评价内容8','2023-04-20 15:38:53','回复信息8','2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,9,2,'评价内容9','2023-04-20 15:38:53','回复信息9','2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,10,3,'评价内容10','2023-04-20 15:38:53','回复信息10','2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,11,2,'评价内容11','2023-04-20 15:38:53','回复信息11','2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,12,3,'评价内容12','2023-04-20 15:38:53','回复信息12','2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,13,2,'评价内容13','2023-04-20 15:38:53','回复信息13','2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,14,1,'评价内容14','2023-04-20 15:38:53','回复信息14','2023-04-20 15:38:53','2023-04-20 15:38:53'),(15,14,1,'32 62','2023-04-20 16:39:33',NULL,NULL,'2023-04-20 16:39:33');
/*Table structure for table `liulang_order` */
DROP TABLE IF EXISTS `liulang_order`;
CREATE TABLE `liulang_order` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`liulang_order_uuid_number` varchar(200) DEFAULT NULL COMMENT '订单编号 Search111 ',
`liulang_id` int(11) DEFAULT NULL COMMENT '流浪',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`liulang_order_types` int(11) DEFAULT NULL COMMENT '订单类型 Search111 ',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '订单创建时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='流浪订单';
/*Data for the table `liulang_order` */
insert into `liulang_order`(`id`,`liulang_order_uuid_number`,`liulang_id`,`yonghu_id`,`liulang_order_types`,`insert_time`,`create_time`) values (1,'1681976746909',12,1,101,'2023-04-20 15:45:47','2023-04-20 15:45:47'),(2,'1681979546064',14,1,105,'2023-04-20 16:32:26','2023-04-20 16:32:26');
/*Table structure for table `single_seach` */
DROP TABLE IF EXISTS `single_seach`;
CREATE TABLE `single_seach` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`single_seach_name` varchar(200) DEFAULT NULL COMMENT '名字 Search111 ',
`single_seach_types` int(11) DEFAULT NULL COMMENT '数据类型',
`single_seach_photo` varchar(200) DEFAULT NULL COMMENT '图片',
`single_seach_content` longtext COMMENT '内容',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show2 nameShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='单页数据';
/*Data for the table `single_seach` */
insert into `single_seach`(`id`,`single_seach_name`,`single_seach_types`,`single_seach_photo`,`single_seach_content`,`create_time`) values (1,'sad阿萨德',1,'/upload/1681979655908.jpg','呀呀呀
','2023-04-20 16:34:26');
/*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','用户','8b6fxadhxcuue5phevy1mzzxmtmf0kg1','2023-04-20 15:39:33','2023-04-20 17:38:05'),(2,1,'admin','users','管理员','se0ex04grtzmbixcw7vzdbs79ryylwrk','2023-04-20 15:42:06','2023-04-20 17:48:34'),(3,2,'a2','yonghu','用户','cfjuiu06sni1w20xdllww31p0426qq94','2023-04-20 15:53:33','2023-04-20 17:37:55');
/*Table structure for table `tuandui` */
DROP TABLE IF EXISTS `tuandui`;
CREATE TABLE `tuandui` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',
`tuandui_name` varchar(200) DEFAULT NULL COMMENT '团队活动名称 Search111 ',
`tuandui_uuid_number` varchar(200) DEFAULT NULL COMMENT '团队活动编号',
`tuandui_photo` varchar(200) DEFAULT NULL COMMENT '团队活动照片',
`huodong_time` timestamp NULL DEFAULT NULL COMMENT '活动时间',
`tuandui_types` int(11) DEFAULT NULL COMMENT '团队活动类型 Search111',
`tuandui_content` longtext COMMENT '团队活动介绍 ',
`tuandui_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 `tuandui` */
insert into `tuandui`(`id`,`tuandui_name`,`tuandui_uuid_number`,`tuandui_photo`,`huodong_time`,`tuandui_types`,`tuandui_content`,`tuandui_delete`,`insert_time`,`create_time`) values (1,'团队活动名称1','1681976333833','upload/tuandui1.jpg','2023-04-20 15:38:53',1,'团队活动介绍1',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,'团队活动名称2','1681976333825','upload/tuandui2.jpg','2023-04-20 15:38:53',4,'团队活动介绍2',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,'团队活动名称3','1681976333811','upload/tuandui3.jpg','2023-04-20 15:38:53',2,'团队活动介绍3',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,'团队活动名称4','1681976333798','upload/tuandui4.jpg','2023-04-20 15:38:53',3,'团队活动介绍4',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,'团队活动名称5','1681976333815','upload/tuandui5.jpg','2023-04-20 15:38:53',4,'团队活动介绍5',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,'团队活动名称6','1681976333804','upload/tuandui6.jpg','2023-04-20 15:38:53',2,'团队活动介绍6',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,'团队活动名称7','1681976333838','upload/tuandui7.jpg','2023-04-20 15:38:53',4,'团队活动介绍7',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,'团队活动名称8','1681976333817','upload/tuandui8.jpg','2023-04-20 15:38:53',2,'团队活动介绍8',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,'团队活动名称9','1681976333803','upload/tuandui9.jpg','2023-04-20 15:38:53',2,'团队活动介绍9',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,'团队活动名称10','1681976333812','upload/tuandui10.jpg','2023-04-20 15:38:53',2,'团队活动介绍10',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,'团队活动名称11','1681976333797','upload/tuandui11.jpg','2023-04-20 15:38:53',4,'团队活动介绍11',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,'团队活动名称12','1681976333841','upload/tuandui12.jpg','2023-04-20 15:38:53',4,'团队活动介绍12',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,'团队活动名称13','1681976333815','upload/tuandui13.jpg','2023-04-20 15:38:53',4,'团队活动介绍13',1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,'团队活动名称14','1681976333767','upload/tuandui14.jpg','2023-04-20 15:38:53',3,'团队活动介绍14',1,'2023-04-20 15:38:53','2023-04-20 15:38:53');
/*Table structure for table `tuandui_collection` */
DROP TABLE IF EXISTS `tuandui_collection`;
CREATE TABLE `tuandui_collection` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`tuandui_id` int(11) DEFAULT NULL COMMENT '团队活动',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`tuandui_collection_types` int(11) DEFAULT NULL COMMENT '类型',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='团队活动收藏';
/*Data for the table `tuandui_collection` */
insert into `tuandui_collection`(`id`,`tuandui_id`,`yonghu_id`,`tuandui_collection_types`,`insert_time`,`create_time`) values (1,1,1,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,2,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,3,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,4,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,5,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,6,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,7,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,8,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,9,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,10,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,11,2,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,12,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,13,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,14,3,1,'2023-04-20 15:38:53','2023-04-20 15:38:53');
/*Table structure for table `tuandui_commentback` */
DROP TABLE IF EXISTS `tuandui_commentback`;
CREATE TABLE `tuandui_commentback` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`tuandui_id` int(11) DEFAULT NULL COMMENT '团队活动',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`tuandui_commentback_text` longtext COMMENT '评价内容',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '评价时间',
`reply_text` longtext COMMENT '回复内容',
`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='团队活动评价';
/*Data for the table `tuandui_commentback` */
insert into `tuandui_commentback`(`id`,`tuandui_id`,`yonghu_id`,`tuandui_commentback_text`,`insert_time`,`reply_text`,`update_time`,`create_time`) values (1,1,1,'评价内容1','2023-04-20 15:38:53','回复信息1','2023-04-20 15:38:53','2023-04-20 15:38:53'),(2,2,1,'评价内容2','2023-04-20 15:38:53','回复信息2','2023-04-20 15:38:53','2023-04-20 15:38:53'),(3,3,2,'评价内容3','2023-04-20 15:38:53','回复信息3','2023-04-20 15:38:53','2023-04-20 15:38:53'),(4,4,3,'评价内容4','2023-04-20 15:38:53','回复信息4','2023-04-20 15:38:53','2023-04-20 15:38:53'),(5,5,3,'评价内容5','2023-04-20 15:38:53','回复信息5','2023-04-20 15:38:53','2023-04-20 15:38:53'),(6,6,2,'评价内容6','2023-04-20 15:38:53','回复信息6','2023-04-20 15:38:53','2023-04-20 15:38:53'),(7,7,1,'评价内容7','2023-04-20 15:38:53','回复信息7','2023-04-20 15:38:53','2023-04-20 15:38:53'),(8,8,1,'评价内容8','2023-04-20 15:38:53','回复信息8','2023-04-20 15:38:53','2023-04-20 15:38:53'),(9,9,3,'评价内容9','2023-04-20 15:38:53','回复信息9','2023-04-20 15:38:53','2023-04-20 15:38:53'),(10,10,1,'评价内容10','2023-04-20 15:38:53','回复信息10','2023-04-20 15:38:53','2023-04-20 15:38:53'),(11,11,2,'评价内容11','2023-04-20 15:38:53','回复信息11','2023-04-20 15:38:53','2023-04-20 15:38:53'),(12,12,1,'评价内容12','2023-04-20 15:38:53','回复信息12','2023-04-20 15:38:53','2023-04-20 15:38:53'),(13,13,2,'评价内容13','2023-04-20 15:38:53','回复信息13','2023-04-20 15:38:53','2023-04-20 15:38:53'),(14,14,1,'评价内容14','2023-04-20 15:38:53','回复信息14','2023-04-20 15:38:53','2023-04-20 15:38:53'),(15,13,1,'2 62 ','2023-04-20 16:39:40',NULL,NULL,'2023-04-20 16:39:40');
/*Table structure for table `tuandui_order` */
DROP TABLE IF EXISTS `tuandui_order`;
CREATE TABLE `tuandui_order` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`tuandui_order_uuid_number` varchar(200) DEFAULT NULL COMMENT '订单编号 Search111 ',
`tuandui_id` int(11) DEFAULT NULL COMMENT '团队活动',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`tuandui_order_types` int(11) DEFAULT NULL COMMENT '订单类型 Search111 ',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '订单创建时间',
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 listShow',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='团队活动报名';
/*Data for the table `tuandui_order` */
insert into `tuandui_order`(`id`,`tuandui_order_uuid_number`,`tuandui_id`,`yonghu_id`,`tuandui_order_types`,`insert_time`,`create_time`) values (1,'1681979810090',13,1,105,'2023-04-20 16:36:50','2023-04-20 16:36:50');
/*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-20 15:38:42');
/*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_types` int(11) DEFAULT NULL COMMENT '用户类型 Search111',
`new_money` decimal(10,2) 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_types`,`new_money`,`yonghu_email`,`create_time`) values (1,'a1','123456','用户姓名1','17703786901','410224199010102001','upload/yonghu1.jpg',1,2,'259.50','[email protected]','2023-04-20 15:38:53'),(2,'a2','123456','用户姓名2','17703786902','410224199010102002','upload/yonghu2.jpg',1,1,'132.31','[email protected]','2023-04-20 15:38:53'),(3,'a3','123456','用户姓名3','17703786903','410224199010102003','upload/yonghu3.jpg',2,2,'533.77','[email protected]','2023-04-20 15:38:53');
/*Table structure for table `zhiyuanzhe_shenqing` */
DROP TABLE IF EXISTS `zhiyuanzhe_shenqing`;
CREATE TABLE `zhiyuanzhe_shenqing` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`zhiyuanzhe_shenqing_uuid_number` varchar(200) DEFAULT NULL COMMENT '报名编号 Search111 ',
`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',
`zhiyuanzhe_shenqing_text` longtext COMMENT '理由',
`insert_time` timestamp NULL DEFAULT NULL COMMENT '志愿者申请时间',
`zhiyuanzhe_shenqing_yesno_types` int(11) DEFAULT NULL COMMENT '报名状态 Search111 ',
`zhiyuanzhe_shenqing_yesno_text` longtext COMMENT '审核回复',
`zhiyuanzhe_shenqing_shenhe_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 `zhiyuanzhe_shenqing` */
insert into `zhiyuanzhe_shenqing`(`id`,`zhiyuanzhe_shenqing_uuid_number`,`yonghu_id`,`zhiyuanzhe_shenqing_text`,`insert_time`,`zhiyuanzhe_shenqing_yesno_types`,`zhiyuanzhe_shenqing_yesno_text`,`zhiyuanzhe_shenqing_shenhe_time`,`create_time`) values (1,'1681976333753',3,'理由1','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(2,'1681976333768',1,'理由2','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(3,'1681976333809',1,'理由3','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(4,'1681976333847',3,'理由4','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(5,'1681976333789',3,'理由5','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(6,'1681976333762',1,'理由6','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(7,'1681976333798',3,'理由7','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(8,'1681976333774',3,'理由8','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(9,'1681976333828',3,'理由9','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(10,'1681976333827',3,'理由10','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(11,'1681976333811',3,'理由11','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(12,'1681976333778',3,'理由12','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(13,'1681976333753',3,'理由13','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(14,'1681976333770',3,'理由14','2023-04-20 15:38:53',1,NULL,NULL,'2023-04-20 15:38:53'),(15,'1681979578293',1,'我要是爱迪生的让我','2023-04-20 16:33:01',2,'好的','2023-04-20 16:34:46','2023-04-20 16:33:01');
/*!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、关键代码
/**
* 宠物
* 后端接口
* @author 学长编程
* @email
* WeChat jsjbysj88
*/
@RestController
@Controller
@RequestMapping("/chongwu")
public class ChongwuController {
private static final Logger logger = LoggerFactory.getLogger(ChongwuController.class);
private static final String TABLE_NAME = "chongwu";
@Autowired
private ChongwuService chongwuService;
@Autowired
private TokenService tokenService;
@Autowired
private BeiwangluService beiwangluService;//备忘录
@Autowired
private ChongwuCollectionService chongwuCollectionService;//宠物收藏
@Autowired
private ChongwuCommentbackService chongwuCommentbackService;//宠物评价
@Autowired
private ChongwuOrderService chongwuOrderService;//宠物订单
@Autowired
private DictionaryService dictionaryService;//字典
@Autowired
private GonggaoService gonggaoService;//公告
@Autowired
private JuanzengService juanzengService;//捐赠
@Autowired
private LiulangService liulangService;//流浪
@Autowired
private LiulangCollectionService liulangCollectionService;//流浪收藏
@Autowired
private LiulangCommentbackService liulangCommentbackService;//流浪评价
@Autowired
private LiulangOrderService liulangOrderService;//流浪订单
@Autowired
private SingleSeachService singleSeachService;//单页数据
@Autowired
private TuanduiService tuanduiService;//团队活动
@Autowired
private TuanduiCollectionService tuanduiCollectionService;//团队活动收藏
@Autowired
private TuanduiCommentbackService tuanduiCommentbackService;//团队活动评价
@Autowired
private TuanduiOrderService tuanduiOrderService;//团队活动报名
@Autowired
private YonghuService yonghuService;//用户
@Autowired
private ZhiyuanzheShenqingService zhiyuanzheShenqingService;//志愿者申请
@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"));
params.put("chongwuDeleteStart",1);params.put("chongwuDeleteEnd",1);
CommonUtil.checkMap(params);
PageUtils page = chongwuService.queryPage(params);
//字典表数据转换
List list =(List)page.getList();
for(ChongwuView 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);
ChongwuEntity chongwu = chongwuService.selectById(id);
if(chongwu !=null){
//entity转view
ChongwuView view = new ChongwuView();
BeanUtils.copyProperties( chongwu , view );//把实体数据重构到view中
//级联表 用户
//级联表
YonghuEntity yonghu = yonghuService.selectById(chongwu.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 ChongwuEntity chongwu, HttpServletRequest request){
logger.debug("save方法:,,Controller:{},,chongwu:{}",this.getClass().getName(),chongwu.toString());
String role = String.valueOf(request.getSession().getAttribute("role"));
if(false)
return R.error(511,"永远不会进入");
else if("用户".equals(role))
chongwu.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));
Wrapper queryWrapper = new EntityWrapper()
.eq("yonghu_id", chongwu.getYonghuId())
.eq("chongwu_name", chongwu.getChongwuName())
.eq("chongwu_types", chongwu.getChongwuTypes())
.eq("chongwu_delete", 1)
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
ChongwuEntity chongwuEntity = chongwuService.selectOne(queryWrapper);
if(chongwuEntity==null){
chongwu.setChongwuDelete(1);
chongwu.setInsertTime(new Date());
chongwu.setCreateTime(new Date());
chongwuService.insert(chongwu);
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
/**
* 后端修改
*/
@RequestMapping("/update")
public R update(@RequestBody ChongwuEntity chongwu, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {
logger.debug("update方法:,,Controller:{},,chongwu:{}",this.getClass().getName(),chongwu.toString());
ChongwuEntity oldChongwuEntity = chongwuService.selectById(chongwu.getId());//查询原先数据
String role = String.valueOf(request.getSession().getAttribute("role"));
// if(false)
// return R.error(511,"永远不会进入");
// else if("用户".equals(role))
// chongwu.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));
if("".equals(chongwu.getChongwuPhoto()) || "null".equals(chongwu.getChongwuPhoto())){
chongwu.setChongwuPhoto(null);
}
if("".equals(chongwu.getChongwuContent()) || "null".equals(chongwu.getChongwuContent())){
chongwu.setChongwuContent(null);
}
chongwuService.updateById(chongwu);//根据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 oldChongwuList =chongwuService.selectBatchIds(Arrays.asList(ids));//要删除的数据
ArrayList list = new ArrayList<>();
for(Integer id:ids){
ChongwuEntity chongwuEntity = new ChongwuEntity();
chongwuEntity.setId(id);
chongwuEntity.setChongwuDelete(2);
list.add(chongwuEntity);
}
if(list != null && list.size() >0){
chongwuService.updateBatchById(list);
}
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 chongwuList = 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){
//循环
ChongwuEntity chongwuEntity = new ChongwuEntity();
// chongwuEntity.setYonghuId(Integer.valueOf(data.get(0))); //用户 要改的
// chongwuEntity.setChongwuName(data.get(0)); //宠物名称 要改的
// chongwuEntity.setChongwuUuidNumber(data.get(0)); //宠物编号 要改的
// chongwuEntity.setChongwuPhoto("");//详情和图片
// chongwuEntity.setChongwuTypes(Integer.valueOf(data.get(0))); //宠物类型 要改的
// chongwuEntity.setChongwuContent("");//详情和图片
// chongwuEntity.setChongwuDelete(1);//逻辑删除字段
// chongwuEntity.setInsertTime(date);//时间
// chongwuEntity.setCreateTime(date);//时间
chongwuList.add(chongwuEntity);
//把要查询是否重复的字段放入map中
//宠物编号
if(seachFields.containsKey("chongwuUuidNumber")){
List chongwuUuidNumber = seachFields.get("chongwuUuidNumber");
chongwuUuidNumber.add(data.get(0));//要改的
}else{
List chongwuUuidNumber = new ArrayList<>();
chongwuUuidNumber.add(data.get(0));//要改的
seachFields.put("chongwuUuidNumber",chongwuUuidNumber);
}
}
//查询是否重复
//宠物编号
List chongwuEntities_chongwuUuidNumber = chongwuService.selectList(new EntityWrapper().in("chongwu_uuid_number", seachFields.get("chongwuUuidNumber")).eq("chongwu_delete", 1));
if(chongwuEntities_chongwuUuidNumber.size() >0 ){
ArrayList repeatFields = new ArrayList<>();
for(ChongwuEntity s:chongwuEntities_chongwuUuidNumber){
repeatFields.add(s.getChongwuUuidNumber());
}
return R.error(511,"数据库的该表中的 [宠物编号] 字段已经存在 存在数据为:"+repeatFields.toString());
}
chongwuService.insertBatch(chongwuList);
return R.ok();
}
}
}
}catch (Exception e){
e.printStackTrace();
return R.error(511,"批量插入数据异常,请联系管理员");
}
}
/**
* 个性推荐
*/
@IgnoreAuth
@RequestMapping("/gexingtuijian")
public R gexingtuijian(@RequestParam Map params, HttpServletRequest request){
logger.debug("gexingtuijian方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
CommonUtil.checkMap(params);
List returnChongwuViewList = new ArrayList<>();
//查询订单
Map params1 = new HashMap<>(params);params1.put("sort","id");params1.put("yonghuId",request.getSession().getAttribute("userId"));
params1.put("shangxiaTypes",1);
params1.put("chongwuYesnoTypes",2);
PageUtils pageUtils = chongwuOrderService.queryPage(params1);
List orderViewsList =(List)pageUtils.getList();
Map typeMap=new HashMap<>();//购买的类型list
for(ChongwuOrderView orderView:orderViewsList){
Integer chongwuTypes = orderView.getChongwuTypes();
if(typeMap.containsKey(chongwuTypes)){
typeMap.put(chongwuTypes,typeMap.get(chongwuTypes)+1);
}else{
typeMap.put(chongwuTypes,1);
}
}
List typeList = new ArrayList<>();//排序后的有序的类型 按最多到最少
typeMap.entrySet().stream().sorted((o1, o2) -> o2.getValue() - o1.getValue()).forEach(e -> typeList.add(e.getKey()));//排序
Integer limit = Integer.valueOf(String.valueOf(params.get("limit")));
for(Integer type:typeList){
Map params2 = new HashMap<>(params);params2.put("chongwuTypes",type);
params2.put("shangxiaTypes",1);
params2.put("chongwuYesnoTypes",2);
PageUtils pageUtils1 = chongwuService.queryPage(params2);
List chongwuViewList =(List)pageUtils1.getList();
returnChongwuViewList.addAll(chongwuViewList);
if(returnChongwuViewList.size()>= limit) break;//返回的推荐数量大于要的数量 跳出循环
}
params.put("shangxiaTypes",1);
params.put("chongwuYesnoTypes",2);
//正常查询出来商品,用于补全推荐缺少的数据
PageUtils page = chongwuService.queryPage(params);
if(returnChongwuViewList.size() chongwuViewList =(List)page.getList();
for(ChongwuView chongwuView:chongwuViewList){
Boolean addFlag = true;
for(ChongwuView returnChongwuView:returnChongwuViewList){
if(returnChongwuView.getId().intValue() ==chongwuView.getId().intValue()) addFlag=false;//返回的数据中已存在此商品
}
if(addFlag){
toAddNum=toAddNum-1;
returnChongwuViewList.add(chongwuView);
if(toAddNum==0) break;//够数量了
}
}
}else {
returnChongwuViewList = returnChongwuViewList.subList(0, limit);
}
for(ChongwuView c:returnChongwuViewList)
dictionaryService.dictionaryConvert(c, request);
page.setList(returnChongwuViewList);
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@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 = chongwuService.queryPage(params);
//字典表数据转换
List list =(List)page.getList();
for(ChongwuView 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);
ChongwuEntity chongwu = chongwuService.selectById(id);
if(chongwu !=null){
//entity转view
ChongwuView view = new ChongwuView();
BeanUtils.copyProperties( chongwu , view );//把实体数据重构到view中
//级联表
YonghuEntity yonghu = yonghuService.selectById(chongwu.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 ChongwuEntity chongwu, HttpServletRequest request){
logger.debug("add方法:,,Controller:{},,chongwu:{}",this.getClass().getName(),chongwu.toString());
Wrapper queryWrapper = new EntityWrapper()
.eq("yonghu_id", chongwu.getYonghuId())
.eq("chongwu_name", chongwu.getChongwuName())
.eq("chongwu_uuid_number", chongwu.getChongwuUuidNumber())
.eq("chongwu_types", chongwu.getChongwuTypes())
.eq("chongwu_delete", chongwu.getChongwuDelete())
// .notIn("chongwu_types", new Integer[]{102})
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
ChongwuEntity chongwuEntity = chongwuService.selectOne(queryWrapper);
if(chongwuEntity==null){
chongwu.setChongwuDelete(1);
chongwu.setInsertTime(new Date());
chongwu.setCreateTime(new Date());
chongwuService.insert(chongwu);
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
}
package com.service;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.ChongwuEntity;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.lang.Nullable;
import java.util.List;
/**
* 宠物 服务类
*/
public interface ChongwuService extends IService {
/**
* @param params 查询参数
* @return 带分页的查询出来的数据
*/
PageUtils queryPage(Map params);
}
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.ChongwuDao;
import com.entity.ChongwuEntity;
import com.service.ChongwuService;
import com.entity.view.ChongwuView;
/**
* 宠物 服务实现类
*/
@Service("chongwuService")
@Transactional
public class ChongwuServiceImpl extends ServiceImpl implements ChongwuService {
@Override
public PageUtils queryPage(Map params) {
Page page =new Query(params).getPage();
page.setRecords(baseMapper.selectListView(page,params));
return new PageUtils(page);
}
}
package com.dao;
import com.entity.ChongwuEntity;
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.ChongwuView;
/**
* 宠物 Dao 接口
*
* @author
*/
public interface ChongwuDao extends BaseMapper {
List selectListView(Pagination page,@Param("params")Map params);
}
6、论文目录结构
7、源码获取
感谢大家的阅读,如有不懂的问题可以评论区交流或私聊!
喜欢文章可以点赞、收藏、关注、评论啦
→获取源码请私信←