From 30b24dda0402ff2c9bad1f180309395b726b2f62 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Fri, 28 Nov 2025 11:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=9B=BE=E5=BA=93=E9=99=84?= =?UTF-8?q?=E5=9B=BE=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/LibraryProductImpl.java | 21 +++++++++++++++---- .../mapper/library/LibraryProductMapper.xml | 6 +++--- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/library/service/impl/LibraryProductImpl.java b/mall-shop/src/main/java/com/suisung/mall/shop/library/service/impl/LibraryProductImpl.java index 2f0b5ec6..f0ef5b6a 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/library/service/impl/LibraryProductImpl.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/library/service/impl/LibraryProductImpl.java @@ -195,6 +195,7 @@ public class LibraryProductImpl extends BaseServiceImpl updateTableIds=new ArrayList<>(); List updateProductImageList=new ArrayList<>(); + List addProductImageList=new ArrayList<>(); products.forEach(product->{ if (null==product.getId()){ throw new ApiException("id is null"); @@ -207,10 +208,19 @@ public class LibraryProductImpl extends BaseServiceImpl - - - + + +