feat: 修改数据库配置

This commit is contained in:
Shu Guang 2025-04-18 23:59:49 +08:00
parent f28f7ea779
commit e12bb4e5c5
11 changed files with 12 additions and 6 deletions

5
chart.sql Normal file
View File

@ -0,0 +1,5 @@
INSERT INTO `chart` (`id`, `goal`, `chartData`, `chartType`, `genChart`, `genResult`, `userId`, `createTime`, `updateTime`, `isDelete`, `name`, `status`, `execMessage`) VALUES (1892831461256523777, '我想要分析网站近一年的用户增长趋势', '日期,用户\n1号,10\n2号,11\n3号,12', '柱状图', '{ \"title\": { \"text\": \"用户增长情况\" }, \"xAxis\": { \"type\": \"category\", \"data\": [\"1号\", \"2号\", \"3号\"] }, \"yAxis\": { \"type\": \"value\" }, \"series\": [ { \"name\": \"用户数\", \"type\": \"line\", \"data\": [10, 11, 12] } ] }', ' 结论: 根据提供的数据从1号到3号网站的用户数量呈现了稳定的增长趋势。具体来看1号有10个用户2号增加到11个用户3号进一步增加到12个用户。这种逐日递增的趋势可能表明网站的内容或服务在这段时间内逐渐吸引了更多的访问者或者网站的推广活动取得了一定的成效。不过为了更准确地评估用户增长的原因和持续性还需要更多的数据和深入的分析。', 1892569734694617090, '2025-02-21 14:59:22', '2025-03-15 03:16:11', 0, 'cs', 'succeed', NULL);
INSERT INTO `chart` (`id`, `goal`, `chartData`, `chartType`, `genChart`, `genResult`, `userId`, `createTime`, `updateTime`, `isDelete`, `name`, `status`, `execMessage`) VALUES (1895802041324875777, '分析网站用户增长情况', '日期,用户\n1号,10\n2号,11\n3号,12\n4号,80\n5号,0\n', '饼图', '{ \"title\": { \"text\": \"网站用户增长情况分析\" }, \"tooltip\": { \"trigger\": \"item\" }, \"legend\": { \"data\":[\"用户\"] }, \"series\": [ { \"name\":\"用户\", \"type\":\"pie\", \"radius\":\"50%\", \"data\":[ {\"value\":10,\"name\":\"1号\"}, {\"value\":11,\"name\":\"2号\"}, {\"value\":12,\"name\":\"3号\"}, {\"value\":80,\"name\":\"4号\"}, {\"value\":0,\"name\":\"5号\"} ] } ] }', '从数据来看网站用户在各天的增长情况如下1号有10个用户2号有11个用户3号有12个用户4号有显著增长至80个用户而5号用户数为0。饼图显示4号的用户数占据了绝大多数比例表明该日可能有重大事件或活动吸引了大量新用户访问。而其他日期用户数相对较少且变化不大尤其是5号用户数归零可能由于某些原因导致用户流失或无访问。', 1892569734694617090, '2025-03-01 19:43:23', '2025-03-15 03:16:11', 0, 'cs示例7', 'succeed', NULL);
INSERT INTO `chart` (`id`, `goal`, `chartData`, `chartType`, `genChart`, `genResult`, `userId`, `createTime`, `updateTime`, `isDelete`, `name`, `status`, `execMessage`) VALUES (1895803701958881282, '分析用户增长情况', '日期,用户\n1号,10\n2号,30\n3号,12\n4号,80\n5号,7\n', '堆叠图', '{ \"title\": { \"text\": \"分析用户增长情况\" }, \"tooltip\": { \"trigger\": \"axis\", \"axisPointer\": { \"type\": \"cross\" } }, \"legend\": { \"data\": [\"用户\"] }, \"xAxis\": { \"type\": \"category\", \"boundaryGap\": false, \"data\": [\"1号\", \"2号\", \"3号\", \"4号\", \"5号\"] }, \"yAxis\": { \"type\": \"value\", \"axisLabel\": { \"formatter\": \"{value}\" } }, \"series\": [ { \"name\": \"用户\", \"type\": \"line\", \"stack\": \"总量\", \"areaStyle\": {}, \"data\": [10, 30, 12, 80, 7] } ] }', '从数据看用户数在1号到5号期间呈现出显著的增长趋势。具体来看1号的用户数为10人之后迅速上升至2号的30人3号稍有回落至12人但随后在4号大幅上升至80人最终在5号降至7人。整体上除了个别日期外用户数呈现明显的上升趋势尤其在4号达到峰值表明该日可能有重大活动或事件吸引了大量新用户。', 1892569734694617090, '2025-03-01 19:49:59', '2025-03-15 03:16:11', 0, 'cs示例9', 'succeed', NULL);
INSERT INTO `chart` (`id`, `goal`, `chartData`, `chartType`, `genChart`, `genResult`, `userId`, `createTime`, `updateTime`, `isDelete`, `name`, `status`, `execMessage`) VALUES (1903804404245499905, '分析网站用户增长情况', '日期,用户数\n1号,10\n2号,20\n3号,30\n4号,90\n5号,0\n6号,10\n7号,20\n', '折线图', '{ \"title\": { \"text\": \"分析网站用户增长情况\" }, \"xAxis\": { \"type\": \"category\", \"data\": [\"1号\", \"2号\", \"3号\", \"4号\", \"5号\", \"6号\", \"7号\"] }, \"yAxis\": { \"type\": \"value\" }, \"series\": [ { \"name\": \"用户数\", \"type\": \"line\", \"data\": [10, 20, 30, 90, 0, 10, 20] } ] }', '从数据看网站用户数在观察期间经历了显著的波动。初始三天用户数稳步上升从10人增至30人但在第4天突然激增至90人之后在第5天骤降至0人最后两天又恢复增长至20人。这种波动可能与特定事件或活动有关如推广、系统维护或用户行为变化等。', 1892569734694617090, '2025-03-23 21:41:55', '2025-03-23 21:54:49', 0, '测试1', 'succeed', NULL);
INSERT INTO `chart` (`id`, `goal`, `chartData`, `chartType`, `genChart`, `genResult`, `userId`, `createTime`, `updateTime`, `isDelete`, `name`, `status`, `execMessage`) VALUES (1912876933903224834, '帮我分析用户数量', '工号,姓名,性别,职称,学院,生日,手机,状态\n76564,孙赫,男,4,2024-04-09T20:29:09.000+00:00,17791641989,0\n213010177,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n213010176,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n213010173,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n213010174,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n213010175,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n00000001,教师1,7,17342351231,0\n213010171,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n213010172,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n213010170,张增煊,男,教授,7,2002-04-04T00:00:00.000+00:00,18509144920,0\n', '折线图', '{\n\"title\": {\n\"text\": \"用户数量分析\"\n},\n\"tooltip\": {\n\"trigger\": \"axis\"\n},\n\"legend\": {\n\"data\": [\"用户数量\"]\n},\n\"xAxis\": {\n\"type\": \"category\",\n\"data\": [\"76564\", \"213010177\", \"213010176\", \"213010173\", \"213010174\", \"213010175\", \"00000001\", \"213010171\", \"213010172\", \"213010170\"]\n},\n\"yAxis\": {\n\"type\": \"value\"\n},\n\"series\": [\n{\n\"name\": \"用户数量\",\n\"type\": \"line\",\n\"data\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]\n}\n]\n}', '从数据来看每个工号对应的用户数量均为1这表明在所提供的数据集中每个用户都是唯一的没有重复的用户记录。这可能意味着数据集已经经过去重处理或者在收集数据时确保了每个用户只被记录一次。此外所有用户的状态都为0这可能表示他们处于非活跃状态或者是数据集中的一个特定标记。', 1892569734694617090, '2025-04-17 22:32:43', '2025-04-17 22:32:43', 0, 'swl', 'wait', NULL);

View File

@ -8,8 +8,8 @@ spring:
# todo 需替换配置 # todo 需替换配置
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/my_db url: jdbc:mysql://110.40.62.21:3306/hebi
username: root username: hebi
password: 123456 password: 123456
# Redis 配置 # Redis 配置
# todo 需替换配置 # todo 需替换配置

View File

@ -8,8 +8,8 @@ spring:
# todo 需替换配置 # todo 需替换配置
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/my_db url: jdbc:mysql://110.40.62.21:3306/hebi
username: root username: hebi
password: 123456 password: 123456
# Redis 配置 # Redis 配置
# todo 需替换配置 # todo 需替换配置

View File

@ -21,8 +21,8 @@ spring:
# todo 需替换配置 # todo 需替换配置
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/hebi url: jdbc:mysql://110.40.62.21:3306/hebi
username: root username: hebi
password: 123456 password: 123456
# Redis 配置 # Redis 配置
# todo 需替换配置,然后取消注释 # todo 需替换配置,然后取消注释

0
t_category.sql Normal file
View File

0
t_collection.sql Normal file
View File

0
t_comment.sql Normal file
View File

0
t_like.sql Normal file
View File

0
t_post.sql Normal file
View File

0
t_user.sql Normal file
View File

1
user.sql Normal file
View File

@ -0,0 +1 @@
INSERT INTO `user` (`id`, `userAccount`, `userPassword`, `userName`, `userAvatar`, `userRole`, `createTime`, `updateTime`, `isDelete`) VALUES (1892569734694617090, 'sunhe', 'b0dd3697a192885d7c055db46155b26a', '孙赫', 'https://p3-pc-sign.douyinpic.com/aweme/100x100/aweme-avatar/mosaic-legacy_2d30c0006a7653da71c23.jpeg?lk3s=93de098e&x-expires=1742364000&x-signature=o%2BeLGCx956VhDxlYCn%2BL7t8X4eM%3D&from=2480802190&s=profile&se=false&sc=avatar&l=20250317141750CD5FF2FFFB76C1CEA1A7', 'user', '2025-02-20 21:39:21', '2025-03-17 14:18:14', 0);