提交 373cbaf1 作者: xiaowang

修复:产品管理搜索

上级 ad8e7c07
......@@ -78,8 +78,6 @@ public interface ProductDao {
int countProductSpecByBrandId(Integer id);
int countSpecByProdSkuId(Integer id);
void removeProductSku(Integer id);
void removeProductSpec(Integer id);
......@@ -121,4 +119,6 @@ public interface ProductDao {
List<ProductSpecPriceDO> listAllProductSpecPriceByType(
@Param("prodSkuSpecIds") Set<Integer> prodSkuSpecIds);
int countSpecByProdSkuId(Integer id);
}
......@@ -521,4 +521,11 @@
#{d}
</foreach>)
</select>
<select id="countSpecByProdSkuId" resultType="java.lang.Integer">
select count(*)
from product_spec
where product_id = #{id}
and is_deleted = 0
</select>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论