From 26b6a5a5da67e72520d1db83b62c2645f654de52 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Fri, 28 Feb 2025 10:50:51 +0800 Subject: [PATCH] =?UTF-8?q?pageHelper=20=E4=B8=8D=E7=94=9F=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E7=A9=BA=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 1 - .../src/main/resources/application.yml | 1 - .../src/main/resources/application.yml | 1 - .../src/main/resources/application.yml | 1 - .../java/com/czg/order/dto/CheckOrderPay.java | 26 +++++++++++++++++++ cash-common/cash-common-tools/pom.xml | 12 +-------- cash-dependencies/pom.xml | 16 ++---------- .../service/impl/ShopCouponServiceImpl.java | 2 +- .../service/impl/OrderInfoServiceImpl.java | 5 ++-- cash-service/pom.xml | 12 +-------- 10 files changed, 33 insertions(+), 44 deletions(-) diff --git a/cash-api/account-server/src/main/resources/application.yml b/cash-api/account-server/src/main/resources/application.yml index 0b033ca2f..da51c33fd 100644 --- a/cash-api/account-server/src/main/resources/application.yml +++ b/cash-api/account-server/src/main/resources/application.yml @@ -34,7 +34,6 @@ alipay: pagehelper: helper-dialect: mysql - reasonable: true support-methods-arguments: true dubbo: diff --git a/cash-api/order-server/src/main/resources/application.yml b/cash-api/order-server/src/main/resources/application.yml index 5c570891f..aad8910e3 100644 --- a/cash-api/order-server/src/main/resources/application.yml +++ b/cash-api/order-server/src/main/resources/application.yml @@ -21,7 +21,6 @@ mybatis-flex: pagehelper: helper-dialect: mysql - reasonable: true support-methods-arguments: true dubbo: diff --git a/cash-api/product-server/src/main/resources/application.yml b/cash-api/product-server/src/main/resources/application.yml index 50a1b0481..3b1312ad7 100644 --- a/cash-api/product-server/src/main/resources/application.yml +++ b/cash-api/product-server/src/main/resources/application.yml @@ -21,5 +21,4 @@ mybatis-flex: jdbc-type-for-null: 'null' pagehelper: helper-dialect: mysql - reasonable: true support-methods-arguments: true diff --git a/cash-api/system-server/src/main/resources/application.yml b/cash-api/system-server/src/main/resources/application.yml index 2208e15a4..8dc079bba 100644 --- a/cash-api/system-server/src/main/resources/application.yml +++ b/cash-api/system-server/src/main/resources/application.yml @@ -12,5 +12,4 @@ logging: pagehelper: helper-dialect: mysql - reasonable: true support-methods-arguments: true \ No newline at end of file diff --git a/cash-common/cash-common-service/src/main/java/com/czg/order/dto/CheckOrderPay.java b/cash-common/cash-common-service/src/main/java/com/czg/order/dto/CheckOrderPay.java index e6f0a6799..df286e8eb 100644 --- a/cash-common/cash-common-service/src/main/java/com/czg/order/dto/CheckOrderPay.java +++ b/cash-common/cash-common-service/src/main/java/com/czg/order/dto/CheckOrderPay.java @@ -87,4 +87,30 @@ public class CheckOrderPay implements Serializable { public Integer getPointsNum() { return pointsNum == null ? 0 : pointsNum; } + + public BigDecimal getDiscountRatio() { + return discountRatio == null ? BigDecimal.ONE : discountRatio; + } + + public BigDecimal getFullCouponDiscountAmount() { + return fullCouponDiscountAmount == null ? BigDecimal.ZERO : fullCouponDiscountAmount; + } + + public BigDecimal getProductCouponDiscountAmount() { + return productCouponDiscountAmount == null ? BigDecimal.ZERO : productCouponDiscountAmount; + } + + public BigDecimal getDiscountAmount() { + return discountAmount == null ? BigDecimal.ZERO : discountAmount; + } + + public BigDecimal getPointsDiscountAmount() { + return pointsDiscountAmount == null ? BigDecimal.ZERO : pointsDiscountAmount; + } + + public BigDecimal getRoundAmount() { + return roundAmount == null ? BigDecimal.ZERO : roundAmount; + } + + } diff --git a/cash-common/cash-common-tools/pom.xml b/cash-common/cash-common-tools/pom.xml index b8e7c5566..52f9b09c0 100644 --- a/cash-common/cash-common-tools/pom.xml +++ b/cash-common/cash-common-tools/pom.xml @@ -49,17 +49,7 @@ com.github.pagehelper - pagehelper - - - com.github.jsqlparser - jsqlparser - - - - - com.github.pagehelper - sqlparser4.5 + pagehelper-spring-boot-starter org.springframework.boot diff --git a/cash-dependencies/pom.xml b/cash-dependencies/pom.xml index 457ba1e41..541d6f7c8 100644 --- a/cash-dependencies/pom.xml +++ b/cash-dependencies/pom.xml @@ -33,7 +33,7 @@ 3.3.3 3.3.3 2.0.0 - 6.1.0 + 2.1.0 4.40.54.ALL 2.0.24 2.8.3 @@ -168,21 +168,9 @@ seata-spring-boot-starter ${seata.version} - com.github.pagehelper - pagehelper - ${pagehelper.version} - - - com.github.jsqlparser - jsqlparser - - - - - com.github.pagehelper - sqlparser4.5 + pagehelper-spring-boot-starter ${pagehelper.version}