🎨 产品模块接口调整

This commit is contained in:
ronger 2024-03-05 17:28:50 +08:00
parent 4a34f85799
commit a9ecf0cb91

View File

@ -67,6 +67,7 @@ public class ProductServiceImpl extends AbstractService<Product> implements Prod
newProduct = new Product(); newProduct = new Product();
BeanCopierUtil.convert(product, newProduct); BeanCopierUtil.convert(product, newProduct);
newProduct.setCreatedTime(new Date()); newProduct.setCreatedTime(new Date());
productMapper.insertSelective(newProduct);
// 创建产品详情 // 创建产品详情
productMapper.insertProductContent(newProduct.getIdProduct(), product.getProductContent(), product.getProductContentHtml()); productMapper.insertProductContent(newProduct.getIdProduct(), product.getProductContent(), product.getProductContentHtml());
} }