From a487857702491b96c5f95fcc0321ea5ae713f25a Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Wed, 14 May 2025 17:54:48 +0800
Subject: [PATCH] fix:修复商城价格计算方式

---
 src/main/resources/mapper/modules/MallGoodsMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml
index 2203099..ce0e50f 100644
--- a/src/main/resources/mapper/modules/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -68,12 +68,12 @@
             c.stock sku_stock,
             c.sku_volume,
             c.original_price sku_original_price,
-            a.original_price*a.static_prop staticPropPrice,
+            FLOOR(a.original_price * a.static_prop) staticPropPrice,
             c.present_price sku_present_price,
             c.style_id sku_style_id,
             c.goods_weight sku_goods_weight,
             c.sample sample,
-            c.original_price*a.static_prop sku_static_prop_price,
+            FLOOR(c.original_price*a.static_prop) sku_static_prop_price,
             c.level_one_price sku_level_one_price,
             c.level_two_price sku_level_two_price,
             c.level_three_price sku_level_three_price,
@@ -94,7 +94,7 @@
                 a.thumb,
                 a.unit,
                 a.original_price,
-                a.original_price*a.static_prop staticPropPrice,
+                FLOOR(a.original_price * a.static_prop) staticPropPrice,
                 a.present_price,
                 a.level_one_price,
                 a.level_two_price,
@@ -345,7 +345,7 @@
         a.thumb,
         a.unit,
         a.original_price,
-        a.original_price*a.static_prop staticPropPrice,
+        FLOOR(a.original_price * a.static_prop) staticPropPrice,
         a.present_price,
         a.score,
         a.is_hot,

--
Gitblit v1.9.1