提交 17371cf8 作者: xiaowang

修复:商品规格的删除

上级 eccf553d
......@@ -13,8 +13,8 @@ import java.util.Set;
/**
* @Author LW
* @date 2022/10/8 10:58
* 概要:
*
* @date 2022/10/8 10:58 概要:
*/
@Mapper
public interface IndustrySpecDao {
......@@ -54,7 +54,8 @@ public interface IndustrySpecDao {
int countListPageIndustrySpec(Integer id, String keyword);
List<IndustrySpecDO> listPageIndustrySpec(int pageNo, Integer pageSize, Integer industrySkuId, String keyword);
List<IndustrySpecDO> listPageIndustrySpec(
int pageNo, Integer pageSize, Integer industrySkuId, String keyword);
int batchInsertSpecPrice(List<IndustrySpecPriceDO> list);
......@@ -74,10 +75,10 @@ public interface IndustrySpecDao {
void batchUpdateMallIndustSpec(@Param("list") List<Integer> list, @Param("id") Integer id);
List<IndustryProductInventoryDO> listIndustryProdInventory(
@Param("inventoryIds") Set<Integer> inventoryIds);
List<IndustryProductInventoryDO> listIndustryProdInventory(Set<Integer> inventoryIds);
List<IndustrySpecDO> listIndustrySpec(Set<Integer> industrySpecIds);
List<IndustrySpecDO> listIndustrySpec(@Param("industrySpecIds") Set<Integer> industrySpecIds);
int countIndustrySpecBySkuId(Integer id);
......
......@@ -311,12 +311,10 @@
industry_spec ins
INNER JOIN industry_sku inds ON ins.industry_sku_id = inds.id
WHERE
ins.id IN (
<foreach collection="industrySpecIds" separator="," item="id" index="index">
ins.is_deleted = 0
<foreach collection="industrySpecIds" separator="," item="id" index="index" open="AND ins.id IN (" close=")">
#{id}
</foreach>
)
AND ins.is_deleted = 0
</select>
<select id="countIndustrySpecBySkuId" resultType="java.lang.Integer">
select count(*)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论