Browse Source

新品发布bugfix

zhijiezhao 3 năm trước cách đây
mục cha
commit
65929b4dc0

+ 1 - 0
src/main/java/com/caimei/modules/product/service/ProductService.java

@@ -400,6 +400,7 @@ public class ProductService extends CrudService<ProductDao, Product> {
                 product.setSqlSupplierTaxPoint(Double.valueOf(product.getSupplierTaxPoint()));
             }
             productDao.insert(product);
+            productDetailInfo.setProductID(product.getProductID());
             // 保存商品图片
             String image1 = product.getImage1();
             if (StringUtils.isNotEmpty(image1)) {

+ 2 - 0
src/main/resources/mappings/modules/product/ProductMapper.xml

@@ -393,6 +393,7 @@
 			trainingMethod,
 			trainingType,
 			trainingFee,
+			productDescribe,
 			splitCode
 		) VALUES (
 					 #{brandID},
@@ -464,6 +465,7 @@
 					 #{trainingMethod},
 					 #{trainingType},
 					 #{trainingFee},
+		          	 #{productDescribe},
 					 #{splitCode}
 						 )
 	</insert>