From fa27fd4a21e04352a97988c153b7709ebecc4e89 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 20 十一月 2025 10:52:33 +0800
Subject: [PATCH] 处理bug

---
 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