提交 17371cf8 作者: xiaowang

修复:商品规格的删除

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