From e11512cdaf44966b5ebdeb36b20c62f11c9d4b5f Mon Sep 17 00:00:00 2001
From: chen-xin-zhi <3588068430@qq.com>
Date: Sat, 2 Nov 2024 20:39:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 4 ++
.../controller/good/CategoryController.java | 8 ++-
.../controller/order/OrderController.java | 59 +++++++++++++++++++
.../heritage/mapper/OrderItemMapper.java | 7 +++
.../cultural/heritage/mapper/OrderMapper.java | 7 +++
.../model/dto/order/OrderAddRequest.java | 52 ++++++++++++++++
.../model/dto/snapshot/AddressSnapshot.java | 3 -
.../model/dto/snapshot/CouponSnapshot.java | 2 +
.../model/dto/snapshot/GoodSnapshot.java | 4 --
.../cultural/heritage/model/entity/Order.java | 7 ++-
.../heritage/model/entity/OrderItem.java | 2 +
.../heritage/service/order/OrderService.java | 7 +++
.../service/order/impl/OrderServiceImpl.java | 11 ++++
src/main/resources/application.yml | 1 +
src/main/resources/mapper/OrderMapper.xml | 7 +++
15 files changed, 170 insertions(+), 11 deletions(-)
create mode 100644 src/main/java/com/cultural/heritage/controller/order/OrderController.java
create mode 100644 src/main/java/com/cultural/heritage/mapper/OrderItemMapper.java
create mode 100644 src/main/java/com/cultural/heritage/mapper/OrderMapper.java
create mode 100644 src/main/java/com/cultural/heritage/model/dto/order/OrderAddRequest.java
create mode 100644 src/main/java/com/cultural/heritage/service/order/OrderService.java
create mode 100644 src/main/java/com/cultural/heritage/service/order/impl/OrderServiceImpl.java
create mode 100644 src/main/resources/mapper/OrderMapper.xml
diff --git a/pom.xml b/pom.xml
index c875b77..04c6d20 100644
--- a/pom.xml
+++ b/pom.xml
@@ -148,8 +148,12 @@
hutool-all
5.8.26
+
+
+
+
diff --git a/src/main/java/com/cultural/heritage/controller/good/CategoryController.java b/src/main/java/com/cultural/heritage/controller/good/CategoryController.java
index 9a81f81..2d86143 100644
--- a/src/main/java/com/cultural/heritage/controller/good/CategoryController.java
+++ b/src/main/java/com/cultural/heritage/controller/good/CategoryController.java
@@ -114,7 +114,7 @@ public class CategoryController {
* @return 当前类别的商品列表
*/
@PostMapping("/list/type")
- public BaseResponse