Преглед изворни кода

fix:商城商品添加默认审核通过

liujunchi пре 3 година
родитељ
комит
446c264794

+ 1 - 1
cooleshow-cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -50,7 +50,7 @@
 			</if>
 			<if test="title != null">
 				and (sni.title_ like '%' #{title} '%'
-				or sni.id_ like concat('%',#{titile},'%')
+				or sni.id_ like concat('%',#{title},'%')
 				)
 			</if>
 			<if test="search != null">

+ 1 - 0
cooleshow-mall/mall-admin/src/main/java/com/yonge/cooleshow/admin/service/impl/PmsProductServiceImpl.java

@@ -72,6 +72,7 @@ public class PmsProductServiceImpl implements PmsProductService {
         //创建商品
         PmsProduct product = productParam;
         product.setId(null);
+        product.setVerifyStatus(1);
         productMapper.insertSelective(product);
         //根据促销类型设置价格:会员价格、阶梯价格、满减价格
         Long productId = product.getId();