From 8fd3db7778b3991810d33ac4dffd2f9031b106fc Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期六, 11 十月 2025 16:37:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/user_action' into user_action

---
 framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java b/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java
index c934cdc..72a1f33 100644
--- a/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java
+++ b/framework/src/main/java/cn/lili/modules/goods/entity/dos/Goods.java
@@ -252,6 +252,13 @@
                 sku.remove("couponId");
                 sku.remove("couponName");
             }
+            Object templateId = sku.get("customizeTemplateId");
+            if (templateId == null || StringUtil.isEmpty(templateId.toString())) {
+                sku.remove("customizeTemplateId");
+                sku.remove("customizeTemplateName");
+            }
+
+
             sku.values().forEach(i -> {
                 if (CharSequenceUtil.isBlank(i.toString())) {
                     throw new ServiceException(ResultCode.MUST_HAVE_GOODS_SKU_VALUE);

--
Gitblit v1.8.0