From a9ecf0cb912510505d1774143d8f55f94b349a2f Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 5 Mar 2024 17:28:50 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BA=A7=E5=93=81=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/rymcu/forest/service/impl/ProductServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/rymcu/forest/service/impl/ProductServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/ProductServiceImpl.java index 789cf93..f3b4845 100644 --- a/src/main/java/com/rymcu/forest/service/impl/ProductServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/ProductServiceImpl.java @@ -67,6 +67,7 @@ public class ProductServiceImpl extends AbstractService implements Prod newProduct = new Product(); BeanCopierUtil.convert(product, newProduct); newProduct.setCreatedTime(new Date()); + productMapper.insertSelective(newProduct); // 创建产品详情 productMapper.insertProductContent(newProduct.getIdProduct(), product.getProductContent(), product.getProductContentHtml()); }