From c0cd29ef6417e9536c60a1c3cf17c2c65522bd08 Mon Sep 17 00:00:00 2001
From: lkw2731938298 <133633447+lkw2731938298@users.noreply.github.com>
Date: Wed, 23 Apr 2025 21:09:04 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/shanzhu/market/common/config/MpConfig.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/superMarket-backend/src/main/java/com/shanzhu/market/common/config/MpConfig.java b/superMarket-backend/src/main/java/com/shanzhu/market/common/config/MpConfig.java
index 7666872..ad1a426 100644
--- a/superMarket-backend/src/main/java/com/shanzhu/market/common/config/MpConfig.java
+++ b/superMarket-backend/src/main/java/com/shanzhu/market/common/config/MpConfig.java
@@ -1,20 +1,31 @@
+// 定义当前类所在的包路径
package com.shanzhu.market.common.config;
+// 导入需要的类库
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
+// 声明这是一个Spring配置类
@Configuration
+// 定义MyBatis-Plus配置类
public class MpConfig {
+ // 配置MyBatis-Plus分页插件的Bean
/*mybatis plus分页插件生效*/
@Bean
+ // 创建MyBatis-Plus拦截器实例
public MybatisPlusInterceptor mybatisPlusInterceptor() {
+ // 实例化MyBatis-Plus拦截器
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
+ // 创建MySQL分页拦截器实例,指定数据库类型为MySQL
PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor(DbType.MYSQL);
+ // 设置溢出时自动调整到合理页码(合理化配置)
paginationInnerInterceptor.setOverflow(true); //合理化
+ // 将分页拦截器添加到拦截器链中
interceptor.addInnerInterceptor(paginationInnerInterceptor);
+ // 返回配置好的拦截器实例
return interceptor;
}
}
--
2.34.1
From f6894d3885d12c74170584e88ac987d68fa51935 Mon Sep 17 00:00:00 2001
From: lkw2731938298 <133633447+lkw2731938298@users.noreply.github.com>
Date: Wed, 23 Apr 2025 21:34:48 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E6=B5=8B=E8=AF=955?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../market/common/exception/BusinessException.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/superMarket-backend/src/main/java/com/shanzhu/market/common/exception/BusinessException.java b/superMarket-backend/src/main/java/com/shanzhu/market/common/exception/BusinessException.java
index 31555a4..618b012 100644
--- a/superMarket-backend/src/main/java/com/shanzhu/market/common/exception/BusinessException.java
+++ b/superMarket-backend/src/main/java/com/shanzhu/market/common/exception/BusinessException.java
@@ -1,13 +1,23 @@
package com.shanzhu.market.common.exception;
+// 声明当前类所在的包路径(异常处理模块的基础包)
import com.shanzhu.market.common.constants.HttpStatus;
+// 导入包含HTTP状态码常量的工具类
public class BusinessException extends SysException {
+// 定义业务异常类,继承自系统基础异常类SysException
+
public BusinessException(String message, Integer code) {
+ // 全参数构造方法(接收自定义错误消息和数字状态码)
+
super(message, code);
+ // 调用父类构造器初始化异常基类属性
}
public BusinessException(String msg) {
+ // 简化构造方法(仅接收错误消息参数)
+
super(msg, HttpStatus.CODE_BUSINESS_ERROR);
+ // 调用父类构造器,使用预定义的业务异常状态码常量
}
}
--
2.34.1
From 1023517fdb7c9f78ab945ca0afcb811479d4ec96 Mon Sep 17 00:00:00 2001
From: lkw2731938298 <133633447+lkw2731938298@users.noreply.github.com>
Date: Fri, 25 Apr 2025 14:15:51 +0800
Subject: [PATCH 3/6] 4
---
123.txt | 32 +
superMarket-frontend/public/index.html | 2 +-
superMarket-frontend/src/views/Home.vue | 2 +-
superMarket-frontend/src/views/index.vue | 2 +-
.../css/base.css | 174 +
.../css/bootstrap(1).css | 6757 +++
.../css/index.css | 440 +
.../images/bg.jpg | Bin 0 -> 1207201 bytes
.../images/title.png | Bin 0 -> 79011 bytes
电商管理平台数据可视化/index.html | 408 +
.../picture/t_1.png | Bin 0 -> 506 bytes
.../picture/t_2.png | Bin 0 -> 539 bytes
.../picture/t_3.png | Bin 0 -> 472 bytes
.../picture/t_4.png | Bin 0 -> 427 bytes
.../picture/t_5.png | Bin 0 -> 471 bytes
.../picture/t_7.png | Bin 0 -> 290 bytes
.../scripts/anhui.js | 287 +
.../scripts/anhui.json | 261 +
.../scripts/bootstrap.min.js | 815 +
.../scripts/common.js | 36 +
.../scripts/datatool.js | 867 +
.../scripts/echarts.min.js | 34986 ++++++++++++++++
.../scripts/index.js | 1490 +
.../scripts/jquery-2.2.1.min.js | 3489 ++
24 files changed, 50045 insertions(+), 3 deletions(-)
create mode 100644 电商管理平台数据可视化/css/base.css
create mode 100644 电商管理平台数据可视化/css/bootstrap(1).css
create mode 100644 电商管理平台数据可视化/css/index.css
create mode 100644 电商管理平台数据可视化/images/bg.jpg
create mode 100644 电商管理平台数据可视化/images/title.png
create mode 100644 电商管理平台数据可视化/index.html
create mode 100644 电商管理平台数据可视化/picture/t_1.png
create mode 100644 电商管理平台数据可视化/picture/t_2.png
create mode 100644 电商管理平台数据可视化/picture/t_3.png
create mode 100644 电商管理平台数据可视化/picture/t_4.png
create mode 100644 电商管理平台数据可视化/picture/t_5.png
create mode 100644 电商管理平台数据可视化/picture/t_7.png
create mode 100644 电商管理平台数据可视化/scripts/anhui.js
create mode 100644 电商管理平台数据可视化/scripts/anhui.json
create mode 100644 电商管理平台数据可视化/scripts/bootstrap.min.js
create mode 100644 电商管理平台数据可视化/scripts/common.js
create mode 100644 电商管理平台数据可视化/scripts/datatool.js
create mode 100644 电商管理平台数据可视化/scripts/echarts.min.js
create mode 100644 电商管理平台数据可视化/scripts/index.js
create mode 100644 电商管理平台数据可视化/scripts/jquery-2.2.1.min.js
diff --git a/123.txt b/123.txt
index e69de29..13bc42a 100644
--- a/123.txt
+++ b/123.txt
@@ -0,0 +1,32 @@
+3245
+23452
+523
+62
+62
+23
+42234
+2
+3424
+253262
+5
+6
+24
+524
+6252
+3
+2
+5252
+5
+32
+525
+2
+52
+52
+5
+25
+2
+523414
+14
+1
+4131
+3
\ No newline at end of file
diff --git a/superMarket-frontend/public/index.html b/superMarket-frontend/public/index.html
index 4f3ea82..c58de8a 100644
--- a/superMarket-frontend/public/index.html
+++ b/superMarket-frontend/public/index.html
@@ -5,7 +5,7 @@
-
超市管理系统
+ 电商管理系统