博主介紹:?從事軟件開發(fā)10年之余,專注于Java技術(shù)領(lǐng)域、Python人工智能及數(shù)據(jù)挖掘、小程序項(xiàng)目開發(fā)和Android項(xiàng)目開發(fā)等。CSDN、掘金、華為云、InfoQ、阿里云等平臺(tái)優(yōu)質(zhì)作者?
??文末獲取源碼聯(lián)系??
???? 精彩專欄推薦訂閱???? 不然下次找不到喲
————————————————
計(jì)算機(jī)畢業(yè)設(shè)計(jì)《1000套》?
目錄
?1、項(xiàng)目介紹及開發(fā)技術(shù)
1.1 項(xiàng)目介紹
1.2 開發(fā)技術(shù)
2、系統(tǒng)功能設(shè)計(jì)結(jié)構(gòu)圖
3、功能截圖
3.1 前臺(tái)功能
3.2 后臺(tái)功能
3.2.1管理員模塊
3.2.2用戶模塊?
4、數(shù)據(jù)庫表結(jié)構(gòu)設(shè)計(jì)
5、關(guān)鍵代碼
?5.1 菜譜信息管理Controller模塊?
?5.2 菜譜信息管理Service模塊?
?5.3 菜譜信息管理ServiceImpl模塊
?5.4? 菜譜信息管理Dao模塊
6、論文目錄結(jié)構(gòu)
7、源碼獲取
?1、項(xiàng)目介紹及開發(fā)技術(shù)
1.1 項(xiàng)目介紹
隨著科學(xué)技術(shù)的不斷發(fā)展,計(jì)算機(jī)現(xiàn)在已經(jīng)成為了社會(huì)的必需品,人們通過網(wǎng)絡(luò)可以獲得海量的信息,這些信息可以和各行各業(yè)進(jìn)行關(guān)聯(lián),飲食分享平臺(tái)也不例外,它給飲食分享管理帶來了更多的選擇和便捷。
1.2 開發(fā)技術(shù)
Java開發(fā)語言、SpringBoot、MyBatisPlus、MySQL數(shù)據(jù)庫、Maven、IDEA開發(fā)工具、JDK1.8+、Vue、HTML、CSS、JS。
2、系統(tǒng)功能設(shè)計(jì)結(jié)構(gòu)圖
本系統(tǒng)解決了飲食分享管理事務(wù)中的主要問題,包括首頁、個(gè)人中心、用戶管理、菜品分類管理、菜譜信息管理、筆記信息管理、留言板管理、飲食論壇、趣味答題管理、試題管理、系統(tǒng)管理、考試管理等功能。
3、功能截圖
3.1 前臺(tái)功能
當(dāng)人們打開系統(tǒng)的網(wǎng)址后,首先看到的就是首頁界面。在這里,人們能夠看到飲食分享平臺(tái)的導(dǎo)航條和公告信息等,通過導(dǎo)航條導(dǎo)航進(jìn)入各功能展示頁面進(jìn)行操作。
?系統(tǒng)注冊(cè):在系統(tǒng)注冊(cè)頁面的輸入欄中輸入用戶注冊(cè)信息進(jìn)行注冊(cè)操作。
用戶登錄,注冊(cè)賬號(hào)后,在登錄頁面選擇需要登錄的角色,在正確輸入用戶名和密碼后,進(jìn)入操作系統(tǒng)進(jìn)行操作。
菜譜信息:在菜譜信息頁面的輸入欄中輸入菜譜名稱、菜譜分類、口味、材料、制作工藝、適應(yīng)人群、功效營養(yǎng)進(jìn)行查詢,可以查看到菜譜詳細(xì)信息,并進(jìn)行評(píng)論、點(diǎn)贊或收藏操作。
?個(gè)人中心:在個(gè)人中心頁面輸入對(duì)個(gè)人信息進(jìn)行更新信息操作;并根據(jù)需要對(duì)我的發(fā)布、考試記錄、錯(cuò)題本、我的收藏進(jìn)行相應(yīng)操作。
3.2 后臺(tái)功能
3.2.1管理員模塊
管理員進(jìn)入主頁面,主要功能包括對(duì)首頁、個(gè)人中心、用戶管理、菜品分類管理、菜譜信息管理、筆記信息管理、留言板管理、飲食論壇、趣味答題管理、試題管理、系統(tǒng)管理、考試管理等進(jìn)行操作。
?管理員點(diǎn)擊用戶管理。在用戶頁面輸入賬號(hào)和姓名進(jìn)行查詢、新增、刪除和用戶性別統(tǒng)計(jì)用戶列表,并根據(jù)需要對(duì)用戶詳情信息進(jìn)行詳情、修改或刪除操作。
?管理員點(diǎn)擊菜品分類管理。在菜品分類頁面輸入菜品分類進(jìn)行查詢、新增或刪除菜品分類列表,并根據(jù)需要對(duì)菜品分類詳情信息進(jìn)行詳情、修改或刪除操作。
?管理員點(diǎn)擊菜譜信息管理。在菜譜信息頁面輸入菜譜名稱、口味、適應(yīng)人群和功效營養(yǎng)進(jìn)行查詢、新增、刪除和菜譜分類統(tǒng)計(jì)菜譜信息列表,并根據(jù)需要對(duì)菜譜詳情信息進(jìn)行詳情、修改、查看評(píng)論或刪除操作。
?管理員點(diǎn)擊筆記信息管理。在筆記信息頁面輸入標(biāo)題、標(biāo)簽和姓名進(jìn)行查詢或刪除筆記信息列表,并根據(jù)需要對(duì)筆記信息詳情信息進(jìn)行詳情或刪除操作。
?管理員點(diǎn)擊留言板管理。在留言板頁面輸入用戶名進(jìn)行查詢或刪除留言板列表,并根據(jù)需要對(duì)留言板詳情信息進(jìn)行詳情、回復(fù)或刪除操作。
?管理員點(diǎn)擊飲食論壇。在飲食論壇頁面輸入帖子標(biāo)簽進(jìn)行查詢或刪除飲食論壇列表,并根據(jù)需要對(duì)飲食論壇詳情信息進(jìn)行詳情、查看評(píng)論或刪除操作。
?管理員點(diǎn)擊趣味答題管理。在趣味答題頁面輸入趣味答題名稱進(jìn)行查詢、新增或刪除趣味答題列表,并根據(jù)需要對(duì)趣味答題詳情信息進(jìn)行詳情、修改或刪除操作。
?管理員點(diǎn)擊試題管理。在試題頁面輸入趣味答題和試題進(jìn)行查詢、新增或刪除用戶列表,并根據(jù)需要對(duì)試題詳情信息進(jìn)行修改或刪除操作。
?管理員點(diǎn)擊系統(tǒng)管理。在關(guān)于我們頁面輸入標(biāo)題進(jìn)行查詢關(guān)于我們列表,并根據(jù)需要對(duì)關(guān)于我們?cè)敿?xì)信息進(jìn)行詳情或修改操作;還可以對(duì)系統(tǒng)簡介、公告信息、輪播圖管理進(jìn)行相應(yīng)操作。
3.2.2用戶模塊?
用戶進(jìn)入系統(tǒng)可以對(duì)首頁、個(gè)人中心、筆記信息管理等功能進(jìn)行操作。
4、數(shù)據(jù)庫表結(jié)構(gòu)設(shè)計(jì)
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `springbootc71oi` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `springbootc71oi`;
--
-- Table structure for table `aboutus`
--
DROP TABLE IF EXISTS `aboutus`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aboutus` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`title` varchar(200) NOT NULL COMMENT '標(biāo)題',
`subtitle` varchar(200) DEFAULT NULL COMMENT '副標(biāo)題',
`content` longtext NOT NULL COMMENT '內(nèi)容',
`picture1` longtext COMMENT '圖片1',
`picture2` longtext COMMENT '圖片2',
`picture3` longtext COMMENT '圖片3',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='關(guān)于我們';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aboutus`
--
LOCK TABLES `aboutus` WRITE;
/*!40000 ALTER TABLE `aboutus` DISABLE KEYS */;
INSERT INTO `aboutus` VALUES (1,'2023-02-08 03:44:54','關(guān)于我們','ABOUT US','<p>這里是編輯前端的關(guān)于我們的地方</p>','upload/aboutus_picture1.jpg','upload/aboutus_picture2.jpg','upload/aboutus_picture3.jpg');
/*!40000 ALTER TABLE `aboutus` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bijixinxi`
--
DROP TABLE IF EXISTS `bijixinxi`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bijixinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`biaoti` varchar(200) NOT NULL COMMENT '標(biāo)題',
`biaoqian` varchar(200) NOT NULL COMMENT '標(biāo)簽',
`bijineirong` longtext COMMENT '筆記內(nèi)容',
`jiluriqi` date DEFAULT NULL COMMENT '記錄日期',
`zhanghao` varchar(200) DEFAULT NULL COMMENT '賬號(hào)',
`xingming` varchar(200) DEFAULT NULL COMMENT '姓名',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828204461 DEFAULT CHARSET=utf8 COMMENT='筆記信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bijixinxi`
--
LOCK TABLES `bijixinxi` WRITE;
/*!40000 ALTER TABLE `bijixinxi` DISABLE KEYS */;
INSERT INTO `bijixinxi` VALUES (41,'2023-02-08 03:44:54','標(biāo)題1','標(biāo)簽1','筆記內(nèi)容1','2023-02-08','賬號(hào)1','姓名1'),(42,'2023-02-08 03:44:54','標(biāo)題2','標(biāo)簽2','筆記內(nèi)容2','2023-02-08','賬號(hào)2','姓名2'),(43,'2023-02-08 03:44:54','標(biāo)題3','標(biāo)簽3','筆記內(nèi)容3','2023-02-08','賬號(hào)3','姓名3'),(44,'2023-02-08 03:44:54','標(biāo)題4','標(biāo)簽4','筆記內(nèi)容4','2023-02-08','賬號(hào)4','姓名4'),(45,'2023-02-08 03:44:54','標(biāo)題5','標(biāo)簽5','筆記內(nèi)容5','2023-02-08','賬號(hào)5','姓名5'),(46,'2023-02-08 03:44:54','標(biāo)題6','標(biāo)簽6','筆記內(nèi)容6','2023-02-08','賬號(hào)6','姓名6'),(47,'2023-02-08 03:44:54','標(biāo)題7','標(biāo)簽7','筆記內(nèi)容7','2023-02-08','賬號(hào)7','姓名7'),(48,'2023-02-08 03:44:54','標(biāo)題8','標(biāo)簽8','筆記內(nèi)容8','2023-02-08','賬號(hào)8','姓名8'),(1675828204460,'2023-02-08 03:50:04','某某筆記','心情類','<p>這里是用戶記錄筆記信息的地方</p>','2023-02-08','11','張三');
/*!40000 ALTER TABLE `bijixinxi` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `caipinfenlei`
--
DROP TABLE IF EXISTS `caipinfenlei`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `caipinfenlei` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`caipinfenlei` varchar(200) NOT NULL COMMENT '菜品分類',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828226561 DEFAULT CHARSET=utf8 COMMENT='菜品分類';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `caipinfenlei`
--
LOCK TABLES `caipinfenlei` WRITE;
/*!40000 ALTER TABLE `caipinfenlei` DISABLE KEYS */;
INSERT INTO `caipinfenlei` VALUES (21,'2023-02-08 03:44:54','菜品分類1'),(22,'2023-02-08 03:44:54','菜品分類2'),(23,'2023-02-08 03:44:54','菜品分類3'),(24,'2023-02-08 03:44:54','菜品分類4'),(25,'2023-02-08 03:44:54','菜品分類5'),(26,'2023-02-08 03:44:54','菜品分類6'),(27,'2023-02-08 03:44:54','菜品分類7'),(28,'2023-02-08 03:44:54','菜品分類8'),(1675828226560,'2023-02-08 03:50:26','油炸類');
/*!40000 ALTER TABLE `caipinfenlei` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `caipuxinxi`
--
DROP TABLE IF EXISTS `caipuxinxi`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `caipuxinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`caipumingcheng` varchar(200) NOT NULL COMMENT '菜譜名稱',
`caipinfenlei` varchar(200) NOT NULL COMMENT '菜品分類',
`caipufengmian` longtext COMMENT '菜譜封面',
`kouwei` varchar(200) NOT NULL COMMENT '口味',
`cailiao` varchar(200) NOT NULL COMMENT '材料',
`zhizuogongyi` varchar(200) DEFAULT NULL COMMENT '制作工藝',
`shiyingrenqun` varchar(200) NOT NULL COMMENT '適應(yīng)人群',
`gongxiaoyingyang` varchar(200) NOT NULL COMMENT '功效營養(yǎng)',
`caipuxiangqing` longtext COMMENT '菜譜詳情',
`thumbsupnum` int(11) DEFAULT '0' COMMENT '贊',
`crazilynum` int(11) DEFAULT '0' COMMENT '踩',
`clicktime` datetime DEFAULT NULL COMMENT '最近點(diǎn)擊時(shí)間',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828284790 DEFAULT CHARSET=utf8 COMMENT='菜譜信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `caipuxinxi`
--
LOCK TABLES `caipuxinxi` WRITE;
/*!40000 ALTER TABLE `caipuxinxi` DISABLE KEYS */;
INSERT INTO `caipuxinxi` VALUES (31,'2023-02-08 03:44:54','菜譜名稱1','菜品分類1','upload/caipuxinxi_caipufengmian1.jpg,upload/caipuxinxi_caipufengmian2.jpg,upload/caipuxinxi_caipufengmian3.jpg','口味1','材料1','制作工藝1','適應(yīng)人群1','功效營養(yǎng)1','菜譜詳情1',1,1,'2023-02-08 11:44:54'),(32,'2023-02-08 03:44:54','菜譜名稱2','菜品分類2','upload/caipuxinxi_caipufengmian2.jpg,upload/caipuxinxi_caipufengmian3.jpg,upload/caipuxinxi_caipufengmian4.jpg','口味2','材料2','制作工藝2','適應(yīng)人群2','功效營養(yǎng)2','菜譜詳情2',3,2,'2023-02-08 11:49:42'),(33,'2023-02-08 03:44:54','菜譜名稱3','菜品分類3','upload/caipuxinxi_caipufengmian3.jpg,upload/caipuxinxi_caipufengmian4.jpg,upload/caipuxinxi_caipufengmian5.jpg','口味3','材料3','制作工藝3','適應(yīng)人群3','功效營養(yǎng)3','菜譜詳情3',3,3,'2023-02-08 11:44:54'),(34,'2023-02-08 03:44:54','菜譜名稱4','菜品分類4','upload/caipuxinxi_caipufengmian4.jpg,upload/caipuxinxi_caipufengmian5.jpg,upload/caipuxinxi_caipufengmian6.jpg','口味4','材料4','制作工藝4','適應(yīng)人群4','功效營養(yǎng)4','菜譜詳情4',4,4,'2023-02-08 11:44:54'),(35,'2023-02-08 03:44:54','菜譜名稱5','菜品分類5','upload/caipuxinxi_caipufengmian5.jpg,upload/caipuxinxi_caipufengmian6.jpg,upload/caipuxinxi_caipufengmian7.jpg','口味5','材料5','制作工藝5','適應(yīng)人群5','功效營養(yǎng)5','菜譜詳情5',5,5,'2023-02-08 11:54:44'),(36,'2023-02-08 03:44:54','菜譜名稱6','菜品分類6','upload/caipuxinxi_caipufengmian6.jpg,upload/caipuxinxi_caipufengmian7.jpg,upload/caipuxinxi_caipufengmian8.jpg','口味6','材料6','制作工藝6','適應(yīng)人群6','功效營養(yǎng)6','菜譜詳情6',6,6,'2023-02-08 11:44:54'),(37,'2023-02-08 03:44:54','菜譜名稱7','菜品分類7','upload/caipuxinxi_caipufengmian7.jpg,upload/caipuxinxi_caipufengmian8.jpg,upload/caipuxinxi_caipufengmian9.jpg','口味7','材料7','制作工藝7','適應(yīng)人群7','功效營養(yǎng)7','菜譜詳情7',7,7,'2023-02-08 11:44:54'),(38,'2023-02-08 03:44:54','菜譜名稱8','菜品分類8','upload/caipuxinxi_caipufengmian8.jpg,upload/caipuxinxi_caipufengmian9.jpg,upload/caipuxinxi_caipufengmian10.jpg','口味8','材料8','制作工藝8','適應(yīng)人群8','功效營養(yǎng)8','菜譜詳情8',8,8,'2023-02-08 11:44:54'),(1675828284789,'2023-02-08 03:51:24','某某菜譜','油炸類','upload/1675828282955.jpg','偏辣','新鮮材料','油炸','青少年','滿足高蛋白','<p>這里輸入菜譜的詳情</p><p>還可以適當(dāng)?shù)牟迦雸D片</p><p><img src=\"http://localhost:8080/springbootc71oi/upload/1675828280498.jpg\"></p>',0,0,'2023-02-08 11:54:48');
/*!40000 ALTER TABLE `caipuxinxi` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `chat`
--
DROP TABLE IF EXISTS `chat`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chat` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
`adminid` bigint(20) DEFAULT NULL COMMENT '管理員id',
`ask` longtext COMMENT '提問',
`reply` longtext COMMENT '回復(fù)',
`isreply` int(11) DEFAULT NULL COMMENT '是否回復(fù)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828662440 DEFAULT CHARSET=utf8 COMMENT='在線咨詢';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `chat`
--
LOCK TABLES `chat` WRITE;
/*!40000 ALTER TABLE `chat` DISABLE KEYS */;
INSERT INTO `chat` VALUES (51,'2023-02-08 03:44:54',1,1,'提問1','回復(fù)1',0),(52,'2023-02-08 03:44:54',2,2,'提問2','回復(fù)2',2),(53,'2023-02-08 03:44:54',3,3,'提問3','回復(fù)3',3),(54,'2023-02-08 03:44:54',4,4,'提問4','回復(fù)4',4),(55,'2023-02-08 03:44:54',5,5,'提問5','回復(fù)5',5),(56,'2023-02-08 03:44:54',6,6,'提問6','回復(fù)6',6),(57,'2023-02-08 03:44:54',7,7,'提問7','回復(fù)7',7),(58,'2023-02-08 03:44:54',8,8,'提問8','回復(fù)8',8),(1675828004143,'2023-02-08 03:46:43',1,12,NULL,'主人,我是您的智能助手小搏,請(qǐng)問有什么可以幫您!',0),(1675828134037,'2023-02-08 03:48:53',1675828055119,1675828055119,NULL,'主人,我是您的智能助手小搏,請(qǐng)問有什么可以幫您!',0),(1675828157997,'2023-02-08 03:49:17',1675828055119,NULL,'這里是在線咨詢智能客服的地方',NULL,0),(1675828158601,'2023-02-08 03:49:18',1675828055119,1675828055119,NULL,'主人,小搏還不夠聰明,無法理解您的意思!',0),(1675828160310,'2023-02-08 03:49:19',1675828055119,1675828055119,NULL,'您好,在線客服很高興為您服務(wù)!',0),(1675828168740,'2023-02-08 03:49:28',1675828055119,NULL,'這里是轉(zhuǎn)人工咨詢的地方',NULL,0),(1675828476321,'2023-02-08 03:54:36',1675828055119,1675828055119,NULL,'主人,我是您的智能助手小搏,請(qǐng)問有什么可以幫您!',0),(1675828500259,'2023-02-08 03:54:59',1675828055119,1675828055119,NULL,'主人,我是您的智能助手小搏,請(qǐng)問有什么可以幫您!',0),(1675828553206,'2023-02-08 03:55:52',1,1675828055119,NULL,'主人,我是您的智能助手小搏,請(qǐng)問有什么可以幫您!',NULL),(1675828590726,'2023-02-08 03:56:29',1675828055119,NULL,'這里是轉(zhuǎn)人工咨詢的地方',NULL,0),(1675828591031,'2023-02-08 03:56:30',1675828055119,1675828055119,NULL,'主人,小搏還不夠聰明,無法理解您的意思!',0),(1675828654637,'2023-02-08 03:57:33',1675828055119,1675828055119,NULL,'主人,我是您的智能助手小搏,請(qǐng)問有什么可以幫您!',0),(1675828661487,'2023-02-08 03:57:41',1675828055119,NULL,'測試提問',NULL,0),(1675828662439,'2023-02-08 03:57:42',1675828055119,1675828055119,NULL,'這里是編輯智能回復(fù)的地方',NULL);
/*!40000 ALTER TABLE `chat` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `chathelper`
--
DROP TABLE IF EXISTS `chathelper`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chathelper` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`ask` varchar(200) DEFAULT NULL COMMENT '提問',
`reply` longtext COMMENT '回復(fù)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828642689 DEFAULT CHARSET=utf8 COMMENT='聊天助手表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `chathelper`
--
LOCK TABLES `chathelper` WRITE;
/*!40000 ALTER TABLE `chathelper` DISABLE KEYS */;
INSERT INTO `chathelper` VALUES (61,'2023-02-08 03:44:54','提問1','回復(fù)1'),(62,'2023-02-08 03:44:54','提問2','回復(fù)2'),(63,'2023-02-08 03:44:54','提問3','回復(fù)3'),(64,'2023-02-08 03:44:54','提問4','回復(fù)4'),(65,'2023-02-08 03:44:54','提問5','回復(fù)5'),(66,'2023-02-08 03:44:54','提問6','回復(fù)6'),(67,'2023-02-08 03:44:54','提問7','回復(fù)7'),(68,'2023-02-08 03:44:54','提問8','回復(fù)8'),(1675828642688,'2023-02-08 03:57:22','測試提問','這里是編輯智能回復(fù)的地方');
/*!40000 ALTER TABLE `chathelper` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `config`
--
DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`name` varchar(100) NOT NULL COMMENT '配置參數(shù)名稱',
`value` varchar(100) DEFAULT NULL COMMENT '配置參數(shù)值',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='配置文件';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config`
--
LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES (1,'picture1','upload/picture1.jpg'),(2,'picture2','upload/1675828403002.png'),(3,'picture3','upload/picture3.jpg');
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `discusscaipuxinxi`
--
DROP TABLE IF EXISTS `discusscaipuxinxi`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `discusscaipuxinxi` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`refid` bigint(20) NOT NULL COMMENT '關(guān)聯(lián)表id',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
`avatarurl` longtext COMMENT '頭像',
`nickname` varchar(200) DEFAULT NULL COMMENT '用戶名',
`content` longtext NOT NULL COMMENT '評(píng)論內(nèi)容',
`reply` longtext COMMENT '回復(fù)內(nèi)容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828098246 DEFAULT CHARSET=utf8 COMMENT='菜譜信息評(píng)論表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `discusscaipuxinxi`
--
LOCK TABLES `discusscaipuxinxi` WRITE;
/*!40000 ALTER TABLE `discusscaipuxinxi` DISABLE KEYS */;
INSERT INTO `discusscaipuxinxi` VALUES (1675828098245,'2023-02-08 03:48:17',32,1675828055119,'upload/1675828053646.jpg','11','這里是評(píng)論的地方,這里的推薦是根據(jù)用戶的收藏類型進(jìn)行推薦的','這里是回復(fù)用戶的評(píng)論的地方');
/*!40000 ALTER TABLE `discusscaipuxinxi` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `exampaper`
--
DROP TABLE IF EXISTS `exampaper`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `exampaper` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`name` varchar(200) NOT NULL COMMENT '趣味答題名稱',
`time` int(11) NOT NULL COMMENT '考試時(shí)長(分鐘)',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '趣味答題狀態(tài)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828338492 DEFAULT CHARSET=utf8 COMMENT='趣味答題表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `exampaper`
--
LOCK TABLES `exampaper` WRITE;
/*!40000 ALTER TABLE `exampaper` DISABLE KEYS */;
INSERT INTO `exampaper` VALUES (1,'2023-02-08 03:44:54','十萬個(gè)為什么',60,1),(1675828338491,'2023-02-08 03:52:17','這里是發(fā)布答題的地方',15,1);
/*!40000 ALTER TABLE `exampaper` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `examquestion`
--
DROP TABLE IF EXISTS `examquestion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `examquestion` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`paperid` bigint(20) NOT NULL COMMENT '所屬趣味答題id(外鍵)',
`papername` varchar(200) NOT NULL COMMENT '趣味答題名稱',
`questionname` varchar(200) NOT NULL COMMENT '試題名稱',
`options` longtext COMMENT '選項(xiàng),json字符串',
`score` bigint(20) DEFAULT '0' COMMENT '分值',
`answer` varchar(200) DEFAULT NULL COMMENT '正確答案',
`analysis` longtext COMMENT '答案解析',
`type` bigint(20) DEFAULT '0' COMMENT '試題類型,0:單選題 1:多選題 2:判斷題 3:填空題(暫不考慮多項(xiàng)填空)',
`sequence` bigint(20) DEFAULT '100' COMMENT '試題排序,值越大排越前面',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828390810 DEFAULT CHARSET=utf8 COMMENT='試題表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `examquestion`
--
LOCK TABLES `examquestion` WRITE;
/*!40000 ALTER TABLE `examquestion` DISABLE KEYS */;
INSERT INTO `examquestion` VALUES (1,'2023-02-08 03:44:54',1,'十萬個(gè)為什么','下面動(dòng)物不屬于昆蟲的是()。','[{\"text\":\"A.蒼蠅\",\"code\":\"A\"},{\"text\":\"B.蜜蜂\",\"code\":\"B\"},{\"text\":\"C.蜂鳥\",\"code\":\"C\"}]',20,'C','蜂鳥',0,1),(2,'2023-02-08 03:44:54',1,'十萬個(gè)為什么','油著火后可以用水撲滅。','[{\"text\":\"A.對(duì)\",\"code\":\"A\"},{\"text\":\"B.錯(cuò)\",\"code\":\"B\"}]',20,'B','油著火后不可以用水撲滅',2,2),(3,'2023-02-08 03:44:54',1,'十萬個(gè)為什么','地球是個(gè)球體,中間是( )。','[]',30,'赤道','赤道',3,3),(4,'2023-02-08 03:44:54',1,'十萬個(gè)為什么','下面動(dòng)物中會(huì)流汗的有( )。','[{\"text\":\"A.馬\",\"code\":\"A\"},{\"text\":\"B.貓\",\"code\":\"B\"},{\"text\":\"C.狗\",\"code\":\"C\"}]',30,'A,B','狗不會(huì)流汗',1,4),(1675828358126,'2023-02-08 03:52:37',1675828338491,'這里是發(fā)布答題的地方','這里是發(fā)布試題的地方','[{\"text\":\"A.對(duì)\",\"code\":\"A\"},{\"text\":\"B.錯(cuò)\",\"code\":\"B\"}]',10,'B','這里是發(fā)布試題的分析',2,1),(1675828390809,'2023-02-08 03:53:10',1675828338491,'這里是發(fā)布答題的地方','測試試題','[{\"text\":\"A.1\",\"code\":\"A\"},{\"text\":\"B.2\",\"code\":\"B\"},{\"text\":\"C.3\",\"code\":\"C\"},{\"text\":\"D.4\",\"code\":\"D\"}]',10,'B','測試結(jié)果',0,2);
/*!40000 ALTER TABLE `examquestion` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `examrecord`
--
DROP TABLE IF EXISTS `examrecord`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `examrecord` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
`username` varchar(200) DEFAULT NULL COMMENT '用戶名',
`paperid` bigint(20) NOT NULL COMMENT '趣味答題id(外鍵)',
`papername` varchar(200) NOT NULL COMMENT '趣味答題名稱',
`questionid` bigint(20) NOT NULL COMMENT '試題id(外鍵)',
`questionname` varchar(200) NOT NULL COMMENT '試題名稱',
`options` longtext COMMENT '選項(xiàng),json字符串',
`score` bigint(20) DEFAULT '0' COMMENT '分值',
`answer` varchar(200) DEFAULT NULL COMMENT '正確答案',
`analysis` longtext COMMENT '答案解析',
`myscore` bigint(20) NOT NULL DEFAULT '0' COMMENT '試題得分',
`myanswer` varchar(200) DEFAULT NULL COMMENT '考生答案',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828499080 DEFAULT CHARSET=utf8 COMMENT='考試記錄表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `examrecord`
--
LOCK TABLES `examrecord` WRITE;
/*!40000 ALTER TABLE `examrecord` DISABLE KEYS */;
INSERT INTO `examrecord` VALUES (1675828124303,'2023-02-08 03:48:44',1675828055119,'張三',1,'十萬個(gè)為什么',1,'下面動(dòng)物不屬于昆蟲的是()。','[{\"text\":\"A.蒼蠅\",\"code\":\"A\"},{\"text\":\"B.蜜蜂\",\"code\":\"B\"},{\"text\":\"C.蜂鳥\",\"code\":\"C\"}]',20,'C','蜂鳥',20,'C'),(1675828126290,'2023-02-08 03:48:45',1675828055119,'張三',1,'十萬個(gè)為什么',2,'油著火后可以用水撲滅。','[{\"text\":\"A.對(duì)\",\"code\":\"A\"},{\"text\":\"B.錯(cuò)\",\"code\":\"B\"}]',20,'B','油著火后不可以用水撲滅',20,'B'),(1675828129851,'2023-02-08 03:48:49',1675828055119,'張三',1,'十萬個(gè)為什么',3,'地球是個(gè)球體,中間是( )。','[]',30,'赤道','赤道',30,'赤道'),(1675828132072,'2023-02-08 03:48:51',1675828055119,'張三',1,'十萬個(gè)為什么',4,'下面動(dòng)物中會(huì)流汗的有( )。','[{\"text\":\"A.馬\",\"code\":\"A\"},{\"text\":\"B.貓\",\"code\":\"B\"},{\"text\":\"C.狗\",\"code\":\"C\"}]',30,'A,B','狗不會(huì)流汗',0,'B,C'),(1675828497548,'2023-02-08 03:54:56',1675828055119,'張三',1675828338491,'這里是發(fā)布答題的地方',1675828358126,'這里是發(fā)布試題的地方','[{\"text\":\"A.對(duì)\",\"code\":\"A\"},{\"text\":\"B.錯(cuò)\",\"code\":\"B\"}]',10,'B','這里是發(fā)布試題的分析',0,'A'),(1675828499079,'2023-02-08 03:54:58',1675828055119,'張三',1675828338491,'這里是發(fā)布答題的地方',1675828390809,'測試試題','[{\"text\":\"A.1\",\"code\":\"A\"},{\"text\":\"B.2\",\"code\":\"B\"},{\"text\":\"C.3\",\"code\":\"C\"},{\"text\":\"D.4\",\"code\":\"D\"}]',10,'B','測試結(jié)果',0,'A');
/*!40000 ALTER TABLE `examrecord` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `forum`
--
DROP TABLE IF EXISTS `forum`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `forum` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`title` varchar(200) DEFAULT NULL COMMENT '帖子標(biāo)題',
`content` longtext NOT NULL COMMENT '帖子內(nèi)容',
`parentid` bigint(20) DEFAULT NULL COMMENT '父節(jié)點(diǎn)id',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
`username` varchar(200) DEFAULT NULL COMMENT '用戶名',
`avatarurl` longtext COMMENT '頭像',
`isdone` varchar(200) DEFAULT NULL COMMENT '狀態(tài)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828118824 DEFAULT CHARSET=utf8 COMMENT='飲食論壇';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `forum`
--
LOCK TABLES `forum` WRITE;
/*!40000 ALTER TABLE `forum` DISABLE KEYS */;
INSERT INTO `forum` VALUES (71,'2023-02-08 03:44:54','帖子標(biāo)題1','帖子內(nèi)容1',0,1,'用戶名1','upload/forum_avatarurl1.jpg,upload/forum_avatarurl2.jpg,upload/forum_avatarurl3.jpg','開放'),(72,'2023-02-08 03:44:54','帖子標(biāo)題2','帖子內(nèi)容2',0,2,'用戶名2','upload/forum_avatarurl2.jpg,upload/forum_avatarurl3.jpg,upload/forum_avatarurl4.jpg','開放'),(73,'2023-02-08 03:44:54','帖子標(biāo)題3','帖子內(nèi)容3',0,3,'用戶名3','upload/forum_avatarurl3.jpg,upload/forum_avatarurl4.jpg,upload/forum_avatarurl5.jpg','開放'),(74,'2023-02-08 03:44:54','帖子標(biāo)題4','帖子內(nèi)容4',0,4,'用戶名4','upload/forum_avatarurl4.jpg,upload/forum_avatarurl5.jpg,upload/forum_avatarurl6.jpg','開放'),(75,'2023-02-08 03:44:54','帖子標(biāo)題5','帖子內(nèi)容5',0,5,'用戶名5','upload/forum_avatarurl5.jpg,upload/forum_avatarurl6.jpg,upload/forum_avatarurl7.jpg','開放'),(76,'2023-02-08 03:44:54','帖子標(biāo)題6','帖子內(nèi)容6',0,6,'用戶名6','upload/forum_avatarurl6.jpg,upload/forum_avatarurl7.jpg,upload/forum_avatarurl8.jpg','開放'),(77,'2023-02-08 03:44:54','帖子標(biāo)題7','帖子內(nèi)容7',0,7,'用戶名7','upload/forum_avatarurl7.jpg,upload/forum_avatarurl8.jpg,upload/forum_avatarurl9.jpg','開放'),(78,'2023-02-08 03:44:54','帖子標(biāo)題8','帖子內(nèi)容8',0,8,'用戶名8','upload/forum_avatarurl8.jpg,upload/forum_avatarurl9.jpg,upload/forum_avatarurl10.jpg','開放'),(1675828118823,'2023-02-08 03:48:38','某某交流論壇','<p>這里是用戶之間交流的地方</p>',0,1675828055119,'11',NULL,'開放');
/*!40000 ALTER TABLE `forum` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `messages`
--
DROP TABLE IF EXISTS `messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `messages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`userid` bigint(20) NOT NULL COMMENT '留言人id',
`username` varchar(200) DEFAULT NULL COMMENT '用戶名',
`avatarurl` longtext COMMENT '頭像',
`content` longtext NOT NULL COMMENT '留言內(nèi)容',
`cpicture` longtext COMMENT '留言圖片',
`reply` longtext COMMENT '回復(fù)內(nèi)容',
`rpicture` longtext COMMENT '回復(fù)圖片',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828145636 DEFAULT CHARSET=utf8 COMMENT='留言板';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `messages`
--
LOCK TABLES `messages` WRITE;
/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
INSERT INTO `messages` VALUES (151,'2023-02-08 03:44:54',1,'用戶名1','upload/messages_avatarurl1.jpg','留言內(nèi)容1','upload/messages_cpicture1.jpg','回復(fù)內(nèi)容1','upload/messages_rpicture1.jpg'),(152,'2023-02-08 03:44:54',2,'用戶名2','upload/messages_avatarurl2.jpg','留言內(nèi)容2','upload/messages_cpicture2.jpg','回復(fù)內(nèi)容2','upload/messages_rpicture2.jpg'),(153,'2023-02-08 03:44:54',3,'用戶名3','upload/messages_avatarurl3.jpg','留言內(nèi)容3','upload/messages_cpicture3.jpg','回復(fù)內(nèi)容3','upload/messages_rpicture3.jpg'),(154,'2023-02-08 03:44:54',4,'用戶名4','upload/messages_avatarurl4.jpg','留言內(nèi)容4','upload/messages_cpicture4.jpg','回復(fù)內(nèi)容4','upload/messages_rpicture4.jpg'),(155,'2023-02-08 03:44:54',5,'用戶名5','upload/messages_avatarurl5.jpg','留言內(nèi)容5','upload/messages_cpicture5.jpg','回復(fù)內(nèi)容5','upload/messages_rpicture5.jpg'),(156,'2023-02-08 03:44:54',6,'用戶名6','upload/messages_avatarurl6.jpg','留言內(nèi)容6','upload/messages_cpicture6.jpg','回復(fù)內(nèi)容6','upload/messages_rpicture6.jpg'),(157,'2023-02-08 03:44:54',7,'用戶名7','upload/messages_avatarurl7.jpg','留言內(nèi)容7','upload/messages_cpicture7.jpg','回復(fù)內(nèi)容7','upload/messages_rpicture7.jpg'),(158,'2023-02-08 03:44:54',8,'用戶名8','upload/messages_avatarurl8.jpg','留言內(nèi)容8','upload/messages_cpicture8.jpg','回復(fù)內(nèi)容8','upload/messages_rpicture8.jpg'),(1675828145635,'2023-02-08 03:49:04',1675828055119,'11','upload/1675828053646.jpg','這里是留言反饋的地方',NULL,'這里是回復(fù)用戶的留言反饋的地方',NULL);
/*!40000 ALTER TABLE `messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `news`
--
DROP TABLE IF EXISTS `news`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `news` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`title` varchar(200) NOT NULL COMMENT '標(biāo)題',
`introduction` longtext COMMENT '簡介',
`picture` longtext NOT NULL COMMENT '圖片',
`content` longtext NOT NULL COMMENT '內(nèi)容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828441097 DEFAULT CHARSET=utf8 COMMENT='公告信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `news`
--
LOCK TABLES `news` WRITE;
/*!40000 ALTER TABLE `news` DISABLE KEYS */;
INSERT INTO `news` VALUES (121,'2023-02-08 03:44:54','有夢想,就要努力去實(shí)現(xiàn)','不管你想要怎樣的生活,你都要去努力爭取,不多嘗試一些事情怎么知道自己適合什么、不適合什么呢?你說你喜歡讀書,讓我給你列書單,你還問我哪里有那么多時(shí)間看書;你說自己夢想的職業(yè)是廣告文案,問我如何成為一個(gè)文案,應(yīng)該具備哪些素質(zhì);你說你計(jì)劃晨跑,但總是因?yàn)閷W(xué)習(xí)、工作辛苦或者身體不舒服第二天起不了床;你說你一直夢想一個(gè)人去長途旅行,但是沒錢,父母覺得危險(xiǎn)。','upload/news_picture1.jpg','<p>不管你想要怎樣的生活,你都要去努力爭取,不多嘗試一些事情怎么知道自己適合什么、不適合什么呢?</p><p>你說你喜歡讀書,讓我給你列書單,你還問我哪里有那么多時(shí)間看書;你說自己夢想的職業(yè)是廣告文案,問我如何成為一個(gè)文案,應(yīng)該具備哪些素質(zhì);你說你計(jì)劃晨跑,但總是因?yàn)閷W(xué)習(xí)、工作辛苦或者身體不舒服第二天起不了床;你說你一直夢想一個(gè)人去長途旅行,但是沒錢,父母覺得危險(xiǎn)。其實(shí),我已經(jīng)厭倦了你這樣說說而已的把戲,我覺得就算我告訴你如何去做,你也不會(huì)照做,因?yàn)槟愀臼裁炊疾蛔觥?lt;/p><p>真正有行動(dòng)力的人不需要?jiǎng)e人告訴他如何做,因?yàn)樗呀?jīng)在做了。就算碰到問題,他也會(huì)自己想辦法,自己動(dòng)手去解決或者主動(dòng)尋求可以幫助他的人,而不是等著別人為自己解決問題。</p><p>首先要學(xué)習(xí)獨(dú)立思考?;ㄒ稽c(diǎn)時(shí)間想一下自己喜歡什么,夢想是什么,不要?jiǎng)e人說想環(huán)游世界,你就說你的夢想是環(huán)游世界。</p><p>很多人說現(xiàn)實(shí)束縛了自己,其實(shí)在這個(gè)世界上,我們一直都可以有很多選擇,生活的決定權(quán)也—直都在自己手上,只是我們?nèi)狈π袆?dòng)力而已。</p><p>如果你覺得安于現(xiàn)狀是你想要的,那選擇安于現(xiàn)狀就會(huì)讓你幸福和滿足;如果你不甘平庸,選擇一條改變、進(jìn)取和奮斗的道路,在這個(gè)追求的過程中,你也一樣會(huì)感到快樂。所謂的成功,即是按照自己想要的生活方式生活。最糟糕的狀態(tài),莫過于當(dāng)你想要選擇一條不甘平庸、改變、進(jìn)取和奮斗的道路時(shí),卻以一種安于現(xiàn)狀的方式生活,最后抱怨自己沒有得到想要的人生。</p><p>因?yàn)橄矚g,你不是在苦苦堅(jiān)持,也因?yàn)橄矚g,你愿意投入時(shí)間、精力,長久以往,獲得成功就是自然而然的事情。</p>'),(122,'2023-02-08 03:44:54','又是一年畢業(yè)季','又是一年畢業(yè)季,感慨萬千,還記的自己剛進(jìn)學(xué)校那時(shí)候的情景,我拖著沉重的行李箱站在偌大的教學(xué)樓前面,感嘆自己未來的日子即將在這個(gè)陌生的校園里度過,而如今斗轉(zhuǎn)星移,浮光掠影,彈指之間,那些青蔥歲月如同白駒過隙般悄然從指縫溜走。過去的種種在胸口交集糾結(jié),像打翻的五味瓶,甜蜜,酸楚,苦澀,一并涌上心頭。','upload/news_picture2.jpg','<p>又是一年畢業(yè)季,感慨萬千,還記的自己剛進(jìn)學(xué)校那時(shí)候的情景,我拖著沉重的行李箱站在偌大的教學(xué)樓前面,感嘆自己未來的日子即將在這個(gè)陌生的校園里度過,而如今斗轉(zhuǎn)星移,浮光掠影,彈指之間,那些青蔥歲月如同白駒過隙般悄然從指縫溜走。</p><p>過去的種種在胸口交集糾結(jié),像打翻的五味瓶,甜蜜,酸楚,苦澀,一并涌上心頭。一直都是晚會(huì)的忠實(shí)參與者,無論是臺(tái)前還是幕后,忽然間,角色轉(zhuǎn)變,那種感覺確實(shí)難以用語言表達(dá)。</p><p> 過去的三年,總是默默地期盼著這個(gè)好雨時(shí)節(jié),因?yàn)檫@時(shí)候,會(huì)有燦爛的陽光,會(huì)有滿目的百花爭艷,會(huì)有香甜的冰激凌,這是個(gè)畢業(yè)的季節(jié),當(dāng)時(shí)不經(jīng)世事的我們會(huì)殷切地期待學(xué)校那一大堆的活動(dòng),期待穿上絢麗的演出服或者禮儀服,站在大禮堂鎂光燈下盡情揮灑我們的澎拜的激情。</p><p>百感交集,隔岸觀火與身臨其境的感覺竟是如此不同。從來沒想過一場晚會(huì)送走的是我們自己的時(shí)候會(huì)是怎樣的感情,畢業(yè)就真的意味著結(jié)束嗎?倔強(qiáng)的我們不愿意承認(rèn),謝謝學(xué)弟學(xué)妹們慷慨的將這次的主題定為“我們?cè)谶@里”。我知道,這可能是他們對(duì)我們這些過來人的尊敬和施舍。</p><p>沒有為這場晚會(huì)排練、奔波,沒有為班級(jí)、學(xué)生會(huì)、文學(xué)院出點(diǎn)力,還真有點(diǎn)不習(xí)慣,百般無奈中,用“工作忙”個(gè)萬能的借口來搪塞自己,欺騙別人。其實(shí)自己心里明白,那只是在逃避,只是不愿面對(duì)繁華落幕后的蕭條和落寞。大四了,大家各奔東西,想湊齊班上的人真的是難上加難,敏燕從越南回來,剛落地就匆匆回了學(xué)校,那么戀家的人也啟程回來了,睿睿學(xué)姐也是從家趕來跟我們團(tuán)圓。大家—如既往的寒暄、打趣、調(diào)侃對(duì)方,似乎一切又回到了當(dāng)初的單純美好。</p><p>看著舞臺(tái)上活潑可愛的學(xué)弟學(xué)妹們,如同一群機(jī)靈的小精靈,清澈的眼神,稚嫩的肢體,輕快地步伐,用他們那熱情洋溢的舞姿渲染著在場的每一個(gè)人,我知道,我不應(yīng)該羨慕嫉妒他們,不應(yīng)該顧自憐惜逝去的青春,不應(yīng)該感嘆夕陽無限好,曾經(jīng),我們也擁有過,曾經(jīng),我們也年輕過,曾經(jīng),我們也燦爛過。我深深地告訴自己,人生的每個(gè)階段都是美的,年輕有年輕的活力,成熟也有成熟的魅力。多—份穩(wěn)重、淡然、優(yōu)雅,也是漫漫時(shí)光掠影遺留下的.珍貴賞賜。</p>'),(123,'2023-02-08 03:44:54','挫折路上,堅(jiān)持常在心間','回頭看看,你會(huì)不會(huì)發(fā)現(xiàn),曾經(jīng)的你在這里摔倒過;回頭看看,你是否發(fā)現(xiàn),一次次地重復(fù)著,卻從沒爬起過。而如今,讓我們把視線轉(zhuǎn)向前方,那一道道金色的弧線,是流星飛逝的痕跡,或是成功運(yùn)行的軌道。今天的你,是否要揚(yáng)帆起航,讓幸福來敲門?清晨的太陽撒向大地,神奇的宇宙賦予它神奇的色彩,大自然沐浴著春光,世界因太陽的照射而精彩,林中百鳥啾啾,河水輕輕流淌,匯成清寧的山間小調(diào)。','upload/news_picture3.jpg','<p>回頭看看,你會(huì)不會(huì)發(fā)現(xiàn),曾經(jīng)的你在這里摔倒過;回頭看看,你是否發(fā)現(xiàn),一次次地重復(fù)著,卻從沒爬起過。而如今,讓我們把視線轉(zhuǎn)向前方,那一道道金色的弧線,是流星飛逝的痕跡,或是成功運(yùn)行的軌道。今天的你,是否要揚(yáng)帆起航,讓幸福來敲門?</p><p>清晨的太陽撒向大地,神奇的宇宙賦予它神奇的色彩,大自然沐浴著春光,世界因太陽的照射而精彩,林中百鳥啾啾,河水輕輕流淌,匯成清寧的山間小調(diào)。</p><p>是的,面對(duì)道途上那無情的嘲諷,面對(duì)步伐中那重復(fù)的摔跤,面對(duì)激流與硬石之間猛烈的碰撞,我們必須選擇那富于陰雨,卻最終見到彩虹的荊棘路。也許,經(jīng)歷了那暴風(fēng)雨的洗禮,我們便會(huì)變得自信,幸福也隨之而來。</p><p>司馬遷屢遭羞辱,卻依然在獄中撰寫《史記》,作為一名史學(xué)家,不因王權(quán)而極度贊賞,也不因卑微而極度批判,然而他在堅(jiān)持自己操守的同時(shí),卻依然要受統(tǒng)治階級(jí)的阻礙,他似乎無權(quán)選擇自己的本職。但是,他不顧于此,只是在面對(duì)道途的阻隔之時(shí),他依然選擇了走下去的信念。終于一部開山巨作《史記》誕生,為后人留下一份饋贈(zèng),也許在他完成畢生的杰作之時(shí),他微微地笑了,沒有什么比夢想實(shí)現(xiàn)更快樂的了......</p><p> 或許正如“長風(fēng)破浪會(huì)有時(shí),直掛云帆濟(jì)滄?!币话?,欣欣然地走向看似深淵的崎嶇路,而在一番耕耘之后,便會(huì)發(fā)現(xiàn)這里另有一番天地。也許這就是困難與快樂的交融。</p><p>也許在形形色色的社會(huì)中,我們常能看到一份堅(jiān)持,一份自信,但這里卻還有一類人。這類人在暴風(fēng)雨來臨之際,只會(huì)閃躲,從未懂得這也是一種歷煉,這何嘗不是一份快樂。在陰暗的角落里,總是獨(dú)自在哭,帶著傷愁,看不到一點(diǎn)希望。</p><p>我們不能墮落于此,而要像海燕那般,在蒼茫的大海上,高傲地飛翔,任何事物都無法阻擋,任何事都是幸??鞓返摹?lt;/p>'),(124,'2023-02-08 03:44:54','挫折是另一個(gè)生命的開端','當(dāng)遇到挫折或失敗,你是看見失敗還是看見機(jī)會(huì)?挫折是我們每個(gè)人成長的必經(jīng)之路,它不是你想有就有,想沒有就沒有的。有句名言說的好,如果你想一生擺脫苦難,你就得是神或者是死尸。這句話形象地說明了挫折是伴隨著人生的,是誰都逃不掉的。','upload/news_picture4.jpg','<p>當(dāng)遇到挫折或失敗,你是看見失敗還是看見機(jī)會(huì)?</p><p>挫折是我們每個(gè)人成長的必經(jīng)之路,它不是你想有就有,想沒有就沒有的。有句名言說的好,如果你想一生擺脫苦難,你就得是神或者是死尸。這句話形象地說明了挫折是伴隨著人生的,是誰都逃不掉的。</p><p>人生在世,從古到今,不分天子平民,機(jī)遇雖有不同,但總不免有身陷困境或遭遇難題之處,這時(shí)候唯有通權(quán)達(dá)變,才能使人轉(zhuǎn)危為安,甚至反敗為勝。</p><p>大部分的人,一生當(dāng)中,最痛苦的經(jīng)驗(yàn)是失去所愛的人,其次是丟掉一份工作。其實(shí),經(jīng)得起考驗(yàn)的人,就算是被開除也不會(huì)驚慌,要學(xué)會(huì)面對(duì)。</p><p> “塞翁失馬,焉知非福。”人生的道路,并不是每一步都邁向成功,這就是追求的意義。我們還要認(rèn)識(shí)到一點(diǎn),挫折作為一種情緒狀態(tài)和一種個(gè)人體驗(yàn),各人的耐受性是大不相同的,有的人經(jīng)歷了一次次挫折,就能夠堅(jiān)忍不拔,百折不撓;有的人稍遇挫折便意志消沉,一蹶不振。所以,挫折感是一種主觀感受,因?yàn)槿说哪康暮托枰煌晒?biāo)準(zhǔn)不同,所以同一種活動(dòng)對(duì)于不同的人可能會(huì)造成不同的挫折感受。</p><p>凡事皆以平常心來看待,對(duì)于生命順逆不要太執(zhí)著。能夠“破我執(zhí)”是很高層的人生境界。</p><p>人事的艱難就是一種考驗(yàn)。就像—支劍要有磨刀來磨,劍才會(huì)利:一塊璞玉要有粗石來磨,才會(huì)發(fā)出耀眼的光芒。我們能夠做到的,只是如何減少、避免那些由于自身的原因所造成的挫折,而在遇到痛苦和挫折之后,則力求化解痛苦,爭取幸福。我們要知道,痛苦和挫折是雙重性的,它既是我們?nèi)松须y以完全避免的,也是我們?cè)跔幦〕晒r(shí),不可缺少的一種動(dòng)力。因?yàn)槲艺J(rèn)為,推動(dòng)我們奮斗的力量,不僅僅是對(duì)成功的渴望,還有為擺脫痛苦和挫折而進(jìn)行的奮斗。</p>'),(125,'2023-02-08 03:44:54','你要去相信,沒有到不了的明天','有夢想就去努力,因?yàn)樵谶@一輩子里面,現(xiàn)在不去勇敢的努力,也許就再也沒有機(jī)會(huì)了。你要去相信,一定要相信,沒有到不了的明天。不要被命運(yùn)打敗,讓自己變得更強(qiáng)大。不管你現(xiàn)在是一個(gè)人走在異鄉(xiāng)的街道上始終沒有找到一絲歸屬感,還是你在跟朋友們一起吃飯開心址笑著的時(shí)候閃過一絲落寞。','upload/news_picture5.jpg','<p>有夢想就去努力,因?yàn)樵谶@一輩子里面,現(xiàn)在不去勇敢的努力,也許就再也沒有機(jī)會(huì)了。你要去相信,一定要相信,沒有到不了的明天。不要被命運(yùn)打敗,讓自己變得更強(qiáng)大。</p><p>不管你現(xiàn)在是一個(gè)人走在異鄉(xiāng)的街道上始終沒有找到一絲歸屬感,還是你在跟朋友們一起吃飯開心址笑著的時(shí)候閃過一絲落寞。</p><p> 不管你現(xiàn)在是在圖書館里背著怎么也看不進(jìn)去的英語單詞,還是你現(xiàn)在迷茫地看不清未來的方向不知道要往哪走。</p><p>不管你現(xiàn)在是在努力著去實(shí)現(xiàn)夢想?yún)s沒能拉近與夢想的距離,還是你已經(jīng)慢慢地找不到自己的夢想了。</p><p>你都要去相信,沒有到不了的明天。</p><p> 有的時(shí)候你的夢想太大,別人說你的夢想根本不可能實(shí)現(xiàn);有的時(shí)候你的夢想又太小,又有人說你胸?zé)o大志;有的時(shí)候你對(duì)死黨說著將來要去環(huán)游世界的夢想,卻換來他的不屑一顧,于是你再也不提自己的夢想;有的時(shí)候你突然說起將來要開個(gè)小店的愿望,卻發(fā)現(xiàn)你講述的那個(gè)人,并沒有聽到你在說什么。</p><p>不過又能怎么樣呢,未來始終是自己的,夢想始終是自己的,沒有人會(huì)來幫你實(shí)現(xiàn)它。</p><p>也許很多時(shí)候我們只是需要朋友的一句鼓勵(lì),一句安慰,卻也得不到。但是相信我,世界上還有很多人,只是想要和你說說話。</p><p>因?yàn)槲覀兌家粯?。一樣的被人說成固執(zhí),一樣的在追逐他們眼里根本不在意的東西。</p><p>所以,又有什么關(guān)系呢,別人始終不是你、不能懂你的心情,你又何必多去解釋呢。這個(gè)世界會(huì)來阻止你,困難也會(huì)接踵而至,其實(shí)真正關(guān)鍵的只有自己,有沒有那個(gè)倔強(qiáng)。</p><p>這個(gè)世界上沒有不帶傷的人,真正能治愈自己的,只有自己。</p>'),(126,'2023-02-08 03:44:54','離開是一種痛苦,是一種勇氣,但同樣也是一個(gè)考驗(yàn),是一個(gè)新的開端','無窮無盡是離愁,天涯海角遍尋思。當(dāng)離別在即之時(shí),當(dāng)面對(duì)著相濡以沫兄弟般的朋友時(shí),當(dāng)面對(duì)著經(jīng)歷了四年的磨合而形成的真摯友誼之時(shí),我內(nèi)心激動(dòng)無語,說一聲再見,道一聲珍重都很難出口?;叵胱约核哪甏髮W(xué)的風(fēng)風(fēng)雨雨,回想我們?cè)?jīng)共同經(jīng)歷的歲月流年,我感謝大家的相扶相依,感謝朋友們的莫大支持與幫助。雖然舍不得,但離別的腳步卻不因我們的摯情而停滯。','upload/news_picture6.jpg','<p>無窮無盡是離愁,天涯海角遍尋思。當(dāng)離別在即之時(shí),當(dāng)面對(duì)著相濡以沫兄弟般的朋友時(shí),當(dāng)面對(duì)著經(jīng)歷了四年的磨合而形成的真摯友誼之時(shí),我內(nèi)心激動(dòng)無語,說一聲再見,道一聲珍重都很難出口?;叵胱约核哪甏髮W(xué)的風(fēng)風(fēng)雨雨,回想我們?cè)?jīng)共同經(jīng)歷的歲月流年,我感謝大家的相扶相依,感謝朋友們的莫大支持與幫助。雖然舍不得,但離別的腳步卻不因我們的摯情而停滯。離別的確是一種痛苦,但同樣也是我們走入社會(huì),走向新環(huán)境、新領(lǐng)域的一個(gè)開端,希望大家在以后新的工作崗位上能夠確定自己的新起點(diǎn),堅(jiān)持不懈,向著更新、更高的目標(biāo)前進(jìn),因?yàn)槿松蠲篮玫臇|西永遠(yuǎn)都在最前方!</p><p>憶往昔崢嶸歲月,看今朝潮起潮落,望未來任重而道遠(yuǎn)。作為新時(shí)代的我們,就應(yīng)在失敗時(shí),能拼搏奮起,去譜寫人生的輝煌。在成功時(shí),亦能居安思危,不沉湎于一時(shí)的榮耀、鮮花和掌聲中,時(shí)時(shí)刻刻懷著一顆積極尋找自己新的奶酪的心,處變不驚、成敗不渝,始終踏著自己堅(jiān)實(shí)的步伐,從零開始,不斷向前邁進(jìn),這樣才能在這風(fēng)起云涌、變幻莫測的社會(huì)大潮中成為真正的弄潮兒!</p>'),(1675828441096,'2023-02-08 03:54:00','某某公告','公告的簡介','upload/1675828439936.jpg','<p>公告的內(nèi)容</p><p><img src=\"http://localhost:8080/springbootc71oi/upload/1675828437734.jpg\"></p>');
/*!40000 ALTER TABLE `news` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `storeup`
--
DROP TABLE IF EXISTS `storeup`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `storeup` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
`refid` bigint(20) DEFAULT NULL COMMENT '商品id',
`tablename` varchar(200) DEFAULT NULL COMMENT '表名',
`name` varchar(200) NOT NULL COMMENT '名稱',
`picture` longtext NOT NULL COMMENT '圖片',
`type` varchar(200) DEFAULT '1' COMMENT '類型(1:收藏,21:贊,22:踩,31:競拍參與,41:關(guān)注)',
`inteltype` varchar(200) DEFAULT NULL COMMENT '推薦類型',
`remark` varchar(200) DEFAULT NULL COMMENT '備注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828078051 DEFAULT CHARSET=utf8 COMMENT='收藏表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `storeup`
--
LOCK TABLES `storeup` WRITE;
/*!40000 ALTER TABLE `storeup` DISABLE KEYS */;
INSERT INTO `storeup` VALUES (1675828078050,'2023-02-08 03:47:57',1675828055119,32,'caipuxinxi','菜譜名稱2','upload/caipuxinxi_caipufengmian2.jpg','21','菜品分類2',NULL);
/*!40000 ALTER TABLE `storeup` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `systemintro`
--
DROP TABLE IF EXISTS `systemintro`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `systemintro` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`title` varchar(200) NOT NULL COMMENT '標(biāo)題',
`subtitle` varchar(200) DEFAULT NULL COMMENT '副標(biāo)題',
`content` longtext NOT NULL COMMENT '內(nèi)容',
`picture1` longtext COMMENT '圖片1',
`picture2` longtext COMMENT '圖片2',
`picture3` longtext COMMENT '圖片3',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='關(guān)于我們';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `systemintro`
--
LOCK TABLES `systemintro` WRITE;
/*!40000 ALTER TABLE `systemintro` DISABLE KEYS */;
INSERT INTO `systemintro` VALUES (1,'2023-02-08 03:44:54','系統(tǒng)簡介','SYSTEM INTRODUCTION','<p>這里編輯前端系統(tǒng)簡介</p>','upload/systemintro_picture1.jpg','upload/systemintro_picture2.jpg','upload/systemintro_picture3.jpg');
/*!40000 ALTER TABLE `systemintro` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `token`
--
DROP TABLE IF EXISTS `token`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `token` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`userid` bigint(20) NOT NULL COMMENT '用戶id',
`username` varchar(100) NOT NULL COMMENT '用戶名',
`tablename` varchar(100) DEFAULT NULL COMMENT '表名',
`role` varchar(100) DEFAULT NULL COMMENT '角色',
`token` varchar(200) NOT NULL COMMENT '密碼',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增時(shí)間',
`expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '過期時(shí)間',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='token表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `token`
--
LOCK TABLES `token` WRITE;
/*!40000 ALTER TABLE `token` DISABLE KEYS */;
INSERT INTO `token` VALUES (1,12,'賬號(hào)2','yonghu','用戶','6x8swy17gc827wqgv2010wxv44r6m2g9','2023-02-08 03:46:43','2023-02-08 04:46:43'),(2,1675828055119,'11','yonghu','用戶','s7oj9ag1jotved3h2x40cko4mv8d6eza','2023-02-08 03:47:39','2023-02-08 04:57:34'),(3,1,'admin','users','管理員','u1hyljihsdca601c5k8pk5s6d69rvhny','2023-02-08 03:50:09','2023-02-08 04:56:35');
/*!40000 ALTER TABLE `token` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `yonghu`
--
DROP TABLE IF EXISTS `yonghu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yonghu` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`zhanghao` varchar(200) NOT NULL COMMENT '賬號(hào)',
`mima` varchar(200) NOT NULL COMMENT '密碼',
`xingming` varchar(200) NOT NULL COMMENT '姓名',
`xingbie` varchar(200) DEFAULT NULL COMMENT '性別',
`youxiang` varchar(200) DEFAULT NULL COMMENT '郵箱',
`shoujihaoma` varchar(200) DEFAULT NULL COMMENT '手機(jī)號(hào)碼',
`touxiang` longtext COMMENT '頭像',
PRIMARY KEY (`id`),
UNIQUE KEY `zhanghao` (`zhanghao`)
) ENGINE=InnoDB AUTO_INCREMENT=1675828055120 DEFAULT CHARSET=utf8 COMMENT='用戶';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `yonghu`
--
LOCK TABLES `yonghu` WRITE;
/*!40000 ALTER TABLE `yonghu` DISABLE KEYS */;
INSERT INTO `yonghu` VALUES (11,'2023-02-08 03:44:54','賬號(hào)1','123456','姓名1','男','773890001@qq.com','13823888881','upload/yonghu_touxiang1.jpg'),(12,'2023-02-08 03:44:54','賬號(hào)2','123456','姓名2','男','773890002@qq.com','13823888882','upload/yonghu_touxiang2.jpg'),(13,'2023-02-08 03:44:54','賬號(hào)3','123456','姓名3','男','773890003@qq.com','13823888883','upload/yonghu_touxiang3.jpg'),(14,'2023-02-08 03:44:54','賬號(hào)4','123456','姓名4','男','773890004@qq.com','13823888884','upload/yonghu_touxiang4.jpg'),(15,'2023-02-08 03:44:54','賬號(hào)5','123456','姓名5','男','773890005@qq.com','13823888885','upload/yonghu_touxiang5.jpg'),(16,'2023-02-08 03:44:54','賬號(hào)6','123456','姓名6','男','773890006@qq.com','13823888886','upload/yonghu_touxiang6.jpg'),(17,'2023-02-08 03:44:54','賬號(hào)7','123456','姓名7','男','773890007@qq.com','13823888887','upload/yonghu_touxiang7.jpg'),(18,'2023-02-08 03:44:54','賬號(hào)8','123456','姓名8','男','773890008@qq.com','13823888888','upload/yonghu_touxiang8.jpg'),(1675828055119,'2023-02-08 03:47:35','11','11','張三','女','131@163.com','13111111111','upload/1675828066009.jpeg');
/*!40000 ALTER TABLE `yonghu` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
5、關(guān)鍵代碼
?5.1 菜譜信息管理Controller模塊?
package com.controller;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;
import com.entity.CaipuxinxiEntity;
import com.entity.view.CaipuxinxiView;
import com.service.CaipuxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;
import com.service.StoreupService;
import com.entity.StoreupEntity;
/**
* 菜譜信息
* 后端接口
* @author
* @email
@RestController
@RequestMapping("/caipuxinxi")
public class CaipuxinxiController {
@Autowired
private CaipuxinxiService caipuxinxiService;
@Autowired
private StoreupService storeupService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,CaipuxinxiEntity caipuxinxi,
HttpServletRequest request){
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
PageUtils page = caipuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipuxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,CaipuxinxiEntity caipuxinxi,
HttpServletRequest request){
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
PageUtils page = caipuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipuxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( CaipuxinxiEntity caipuxinxi){
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( caipuxinxi, "caipuxinxi"));
return R.ok().put("data", caipuxinxiService.selectListView(ew));
}
/**
* 查詢
*/
@RequestMapping("/query")
public R query(CaipuxinxiEntity caipuxinxi){
EntityWrapper< CaipuxinxiEntity> ew = new EntityWrapper< CaipuxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( caipuxinxi, "caipuxinxi"));
CaipuxinxiView caipuxinxiView = caipuxinxiService.selectView(ew);
return R.ok("查詢菜譜信息成功").put("data", caipuxinxiView);
}
/**
* 后端詳情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
CaipuxinxiEntity caipuxinxi = caipuxinxiService.selectById(id);
caipuxinxi.setClicktime(new Date());
caipuxinxiService.updateById(caipuxinxi);
return R.ok().put("data", caipuxinxi);
}
/**
* 前端詳情
*/
@IgnoreAuth
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
CaipuxinxiEntity caipuxinxi = caipuxinxiService.selectById(id);
caipuxinxi.setClicktime(new Date());
caipuxinxiService.updateById(caipuxinxi);
return R.ok().put("data", caipuxinxi);
}
/**
* 贊或踩
*/
@RequestMapping("/thumbsup/{id}")
public R vote(@PathVariable("id") String id,String type){
CaipuxinxiEntity caipuxinxi = caipuxinxiService.selectById(id);
if(type.equals("1")) {
caipuxinxi.setThumbsupnum(caipuxinxi.getThumbsupnum()+1);
} else {
caipuxinxi.setCrazilynum(caipuxinxi.getCrazilynum()+1);
}
caipuxinxiService.updateById(caipuxinxi);
return R.ok("投票成功");
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody CaipuxinxiEntity caipuxinxi, HttpServletRequest request){
caipuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(caipuxinxi);
caipuxinxiService.insert(caipuxinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody CaipuxinxiEntity caipuxinxi, HttpServletRequest request){
caipuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(caipuxinxi);
caipuxinxiService.insert(caipuxinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
@Transactional
public R update(@RequestBody CaipuxinxiEntity caipuxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(caipuxinxi);
caipuxinxiService.updateById(caipuxinxi);//全部更新
return R.ok();
}
/**
* 刪除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
caipuxinxiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<CaipuxinxiEntity> wrapper = new EntityWrapper<CaipuxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = caipuxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
/**
* 前端智能排序
*/
@IgnoreAuth
@RequestMapping("/autoSort")
public R autoSort(@RequestParam Map<String, Object> params,CaipuxinxiEntity caipuxinxi, HttpServletRequest request,String pre){
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
Map<String, Object> newMap = new HashMap<String, Object>();
Map<String, Object> param = new HashMap<String, Object>();
Iterator<Map.Entry<String, Object>> it = param.entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, Object> entry = it.next();
String key = entry.getKey();
String newKey = entry.getKey();
if (pre.endsWith(".")) {
newMap.put(pre + newKey, entry.getValue());
} else if (StringUtils.isEmpty(pre)) {
newMap.put(newKey, entry.getValue());
} else {
newMap.put(pre + "." + newKey, entry.getValue());
}
}
params.put("sort", "clicktime");
params.put("order", "desc");
PageUtils page = caipuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipuxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 協(xié)同算法(按收藏推薦)
*/
@RequestMapping("/autoSort2")
public R autoSort2(@RequestParam Map<String, Object> params,CaipuxinxiEntity caipuxinxi, HttpServletRequest request){
String userId = request.getSession().getAttribute("userId").toString();
String inteltypeColumn = "caipinfenlei";
List<StoreupEntity> storeups = storeupService.selectList(new EntityWrapper<StoreupEntity>().eq("type", 1).eq("userid", userId).eq("tablename", "caipuxinxi").orderBy("addtime", false));
List<String> inteltypes = new ArrayList<String>();
Integer limit = params.get("limit")==null?10:Integer.parseInt(params.get("limit").toString());
List<CaipuxinxiEntity> caipuxinxiList = new ArrayList<CaipuxinxiEntity>();
//去重
if(storeups!=null && storeups.size()>0) {
for(StoreupEntity s : storeups) {
caipuxinxiList.addAll(caipuxinxiService.selectList(new EntityWrapper<CaipuxinxiEntity>().eq(inteltypeColumn, s.getInteltype())));
}
}
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
params.put("sort", "id");
params.put("order", "desc");
PageUtils page = caipuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipuxinxi), params), params));
List<CaipuxinxiEntity> pageList = (List<CaipuxinxiEntity>)page.getList();
if(caipuxinxiList.size()<limit) {
int toAddNum = (limit-caipuxinxiList.size())<=pageList.size()?(limit-caipuxinxiList.size()):pageList.size();
for(CaipuxinxiEntity o1 : pageList) {
boolean addFlag = true;
for(CaipuxinxiEntity o2 : caipuxinxiList) {
if(o1.getId().intValue()==o2.getId().intValue()) {
addFlag = false;
break;
}
}
if(addFlag) {
caipuxinxiList.add(o1);
if(--toAddNum==0) break;
}
}
} else if(caipuxinxiList.size()>limit) {
caipuxinxiList = caipuxinxiList.subList(0, limit);
}
page.setList(caipuxinxiList);
return R.ok().put("data", page);
}
/**
* (按值統(tǒng)計(jì))
*/
@RequestMapping("/value/{xColumnName}/{yColumnName}")
public R value(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName,HttpServletRequest request) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("xColumn", xColumnName);
params.put("yColumn", yColumnName);
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
List<Map<String, Object>> result = caipuxinxiService.selectValue(params, ew);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
/**
* (按值統(tǒng)計(jì))時(shí)間統(tǒng)計(jì)類型
*/
@RequestMapping("/value/{xColumnName}/{yColumnName}/{timeStatType}")
public R valueDay(@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType,HttpServletRequest request) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("xColumn", xColumnName);
params.put("yColumn", yColumnName);
params.put("timeStatType", timeStatType);
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
List<Map<String, Object>> result = caipuxinxiService.selectTimeStatValue(params, ew);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
/**
* 分組統(tǒng)計(jì)
*/
@RequestMapping("/group/{columnName}")
public R group(@PathVariable("columnName") String columnName,HttpServletRequest request) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("column", columnName);
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
List<Map<String, Object>> result = caipuxinxiService.selectGroup(params, ew);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for(Map<String, Object> m : result) {
for(String k : m.keySet()) {
if(m.get(k) instanceof Date) {
m.put(k, sdf.format((Date)m.get(k)));
}
}
}
return R.ok().put("data", result);
}
/**
* 總數(shù)量
*/
@RequestMapping("/count")
public R count(@RequestParam Map<String, Object> params,CaipuxinxiEntity caipuxinxi, HttpServletRequest request){
EntityWrapper<CaipuxinxiEntity> ew = new EntityWrapper<CaipuxinxiEntity>();
int count = caipuxinxiService.selectCount(MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipuxinxi), params), params));
return R.ok().put("data", count);
}
}
5.2 菜譜信息管理Service模塊?
package com.service;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.utils.PageUtils;
import com.entity.CaipuxinxiEntity;
import java.util.List;
import java.util.Map;
import com.entity.vo.CaipuxinxiVO;
import org.apache.ibatis.annotations.Param;
import com.entity.view.CaipuxinxiView;
/**
* 菜譜信息
*
* @author
* @email
* @date 2023-02-08 11:44:37
*/
public interface CaipuxinxiService extends IService<CaipuxinxiEntity> {
PageUtils queryPage(Map<String, Object> params);
List<CaipuxinxiVO> selectListVO(Wrapper<CaipuxinxiEntity> wrapper);
CaipuxinxiVO selectVO(@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
List<CaipuxinxiView> selectListView(Wrapper<CaipuxinxiEntity> wrapper);
CaipuxinxiView selectView(@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
PageUtils queryPage(Map<String, Object> params,Wrapper<CaipuxinxiEntity> wrapper);
List<Map<String, Object>> selectValue(Map<String, Object> params,Wrapper<CaipuxinxiEntity> wrapper);
List<Map<String, Object>> selectTimeStatValue(Map<String, Object> params,Wrapper<CaipuxinxiEntity> wrapper);
List<Map<String, Object>> selectGroup(Map<String, Object> params,Wrapper<CaipuxinxiEntity> wrapper);
}
?5.3 菜譜信息管理ServiceImpl模塊
package com.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;
import com.dao.CaipuxinxiDao;
import com.entity.CaipuxinxiEntity;
import com.service.CaipuxinxiService;
import com.entity.vo.CaipuxinxiVO;
import com.entity.view.CaipuxinxiView;
@Service("caipuxinxiService")
public class CaipuxinxiServiceImpl extends ServiceImpl<CaipuxinxiDao, CaipuxinxiEntity> implements CaipuxinxiService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
Page<CaipuxinxiEntity> page = this.selectPage(
new Query<CaipuxinxiEntity>(params).getPage(),
new EntityWrapper<CaipuxinxiEntity>()
);
return new PageUtils(page);
}
@Override
public PageUtils queryPage(Map<String, Object> params, Wrapper<CaipuxinxiEntity> wrapper) {
Page<CaipuxinxiView> page =new Query<CaipuxinxiView>(params).getPage();
page.setRecords(baseMapper.selectListView(page,wrapper));
PageUtils pageUtil = new PageUtils(page);
return pageUtil;
}
@Override
public List<CaipuxinxiVO> selectListVO(Wrapper<CaipuxinxiEntity> wrapper) {
return baseMapper.selectListVO(wrapper);
}
@Override
public CaipuxinxiVO selectVO(Wrapper<CaipuxinxiEntity> wrapper) {
return baseMapper.selectVO(wrapper);
}
@Override
public List<CaipuxinxiView> selectListView(Wrapper<CaipuxinxiEntity> wrapper) {
return baseMapper.selectListView(wrapper);
}
@Override
public CaipuxinxiView selectView(Wrapper<CaipuxinxiEntity> wrapper) {
return baseMapper.selectView(wrapper);
}
@Override
public List<Map<String, Object>> selectValue(Map<String, Object> params, Wrapper<CaipuxinxiEntity> wrapper) {
return baseMapper.selectValue(params, wrapper);
}
@Override
public List<Map<String, Object>> selectTimeStatValue(Map<String, Object> params, Wrapper<CaipuxinxiEntity> wrapper) {
return baseMapper.selectTimeStatValue(params, wrapper);
}
@Override
public List<Map<String, Object>> selectGroup(Map<String, Object> params, Wrapper<CaipuxinxiEntity> wrapper) {
return baseMapper.selectGroup(params, wrapper);
}
}
?5.4? 菜譜信息管理Dao模塊
package com.dao;
import com.entity.CaipuxinxiEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import org.apache.ibatis.annotations.Param;
import com.entity.vo.CaipuxinxiVO;
import com.entity.view.CaipuxinxiView;
/**
* 菜譜信息
* @author
* @email
public interface CaipuxinxiDao extends BaseMapper<CaipuxinxiEntity> {
List<CaipuxinxiVO> selectListVO(@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
CaipuxinxiVO selectVO(@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
List<CaipuxinxiView> selectListView(@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
List<CaipuxinxiView> selectListView(Pagination page,@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
CaipuxinxiView selectView(@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
List<Map<String, Object>> selectValue(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
List<Map<String, Object>> selectTimeStatValue(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
List<Map<String, Object>> selectGroup(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<CaipuxinxiEntity> wrapper);
}
6、論文目錄結(jié)構(gòu)
7、源碼獲取
感謝大家的閱讀,如有不懂的問題可以評(píng)論區(qū)交流或私聊!
喜歡文章可以點(diǎn)贊、收藏、關(guān)注、評(píng)論啦文章來源:http://www.zghlxwxcb.cn/news/detail-764185.html
→獲取源碼請(qǐng)私信←文章來源地址http://www.zghlxwxcb.cn/news/detail-764185.html
到了這里,關(guān)于計(jì)算機(jī)畢業(yè)設(shè)計(jì) 基于SpringBoot的飲食分享平臺(tái)的設(shè)計(jì)與實(shí)現(xiàn) Java實(shí)戰(zhàn)項(xiàng)目 附源碼+文檔+視頻講解的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!