From 7ae6893e2746869f879d270544b7804a82ea88a9 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期五, 19 九月 2025 14:20:42 +0800 Subject: [PATCH] 会员列表导出 --- 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 5acdfae..2882af1 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 @@ -179,6 +179,7 @@ private Integer goodsSort; @ApiModelProperty(value ="琛ㄧず铏氭嫙鍟嗗搧绫诲瀷 鐜版湁绫诲瀷锛欳OUPON浼樻儬鍔�") + @TableField(updateStrategy = FieldStrategy.IGNORED) private String virtualGoodsType; public Goods() { @@ -236,6 +237,12 @@ if (!sku.containsKey("quantity") || StringUtil.isEmpty(sku.get("quantity").toString()) || Convert.toInt(sku.get("quantity").toString()) < 0) { throw new ServiceException(ResultCode.GOODS_SKU_QUANTITY_ERROR); } + //娌℃湁浼樻儬鍗风殑鍟嗗搧闇�瑕佺Щ闄や紭鎯犲嵎淇℃伅 + Object couponId = sku.get("couponId"); + if (couponId == null || StringUtil.isEmpty(couponId.toString())) { + sku.remove("couponId"); + sku.remove("couponName"); + } sku.values().forEach(i -> { if (CharSequenceUtil.isBlank(i.toString())) { throw new ServiceException(ResultCode.MUST_HAVE_GOODS_SKU_VALUE); -- Gitblit v1.8.0