From 956ace77a868c6d31f280d049c80a7a5de794685 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 18 Dec 2025 19:51:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(pricing):=20=E8=B0=83=E6=95=B4=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E9=85=8D=E7=BD=AE=E6=8F=92=E5=85=A5=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了 price_coupon_config 表的插入字段顺序 - 确保 SQL 插入语句字段与值一一对应 - 避免因字段顺序不一致导致的数据插入错误 --- .../ycwl/basic/pricing/mapper/PriceCouponConfigMapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponConfigMapper.java b/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponConfigMapper.java index fd354880..95b4e924 100644 --- a/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponConfigMapper.java +++ b/src/main/java/com/ycwl/basic/pricing/mapper/PriceCouponConfigMapper.java @@ -51,8 +51,8 @@ public interface PriceCouponConfigMapper extends BaseMapper { * 插入优惠券配置 */ @Insert("INSERT INTO price_coupon_config (coupon_name, coupon_type, discount_value, min_amount, " + - "max_discount, applicable_products, total_quantity, used_quantity, valid_from, valid_until, " + - "required_attribute_keys, is_active, scenic_id, create_time, update_time) VALUES " + + "max_discount, applicable_products, required_attribute_keys, total_quantity, used_quantity, valid_from, valid_until, " + + "is_active, scenic_id, create_time, update_time) VALUES " + "(#{couponName}, #{couponType}, #{discountValue}, #{minAmount}, #{maxDiscount}, " + "#{applicableProducts}, #{requiredAttributeKeys}, #{totalQuantity}, #{usedQuantity}, #{validFrom}, #{validUntil}, " + "#{isActive}, #{scenicId}, NOW(), NOW())")