提交 ae7bbda4 作者: xiaowang

规格报错修复

上级 7d15a4e5
...@@ -53,7 +53,7 @@ public interface ProductDao { ...@@ -53,7 +53,7 @@ public interface ProductDao {
List<ProductSpecDO> listPageProductSpec( List<ProductSpecDO> listPageProductSpec(
@Param(value = "pageNo") Integer pageNo, @Param(value = "pageNo") Integer pageNo,
@Param(value = "pageSize") Integer pageSize, @Param(value = "pageSize") Integer pageSize,
@Param(value = "productSkuId") Integer productSkuId, @Param(value = "productId") Integer productId,
@Param(value = "keyword") String keyword); @Param(value = "keyword") String keyword);
int batchInsertSpecPrice(List<ProductSpecPriceDO> list); int batchInsertSpecPrice(List<ProductSpecPriceDO> list);
...@@ -68,7 +68,7 @@ public interface ProductDao { ...@@ -68,7 +68,7 @@ public interface ProductDao {
List<ProductSpecDO> listProductSpec(Integer id); List<ProductSpecDO> listProductSpec(Integer id);
List<ProductDO> listProductSkuDO(List<Integer> productSkuId); List<ProductDO> listProductSkuDO(List<Integer> productId);
List<InventorySpecDO> listInventorySpecInfo(List<Integer> industryProductInventoryIds); List<InventorySpecDO> listInventorySpecInfo(List<Integer> industryProductInventoryIds);
...@@ -103,7 +103,7 @@ public interface ProductDao { ...@@ -103,7 +103,7 @@ public interface ProductDao {
ProductSpecPriceDTO feignGetUnitPrice(Integer id, Integer tagId); ProductSpecPriceDTO feignGetUnitPrice(Integer id, Integer tagId);
List<ProductSpecDO> getProductSpecList(List<Integer> productSkuIds); List<ProductSpecDO> getProductSpecList(List<Integer> productIds);
List<MallProdSkuInfoSpecDO> getProductSpecByIds(List<Integer> delProductSpecId); List<MallProdSkuInfoSpecDO> getProductSpecByIds(List<Integer> delProductSpecId);
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<foreach collection="list" item="d" separator=";" index="index"> <foreach collection="list" item="d" separator=";" index="index">
update mall_prod_info update mall_prod_info
<set> <set>
product_id = #{d.prodSkuId}, product_id = #{d.productId},
categories_id = #{d.categoriesId}, categories_id = #{d.categoriesId},
prod_spec_name = #{d.prodSkuSpecName}, prod_spec_name = #{d.prodSkuSpecName},
choose_type = #{d.chooseType}, choose_type = #{d.chooseType},
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
</update> </update>
<update id="updateMallProdSkuInfo"> <update id="updateMallProdSkuInfo">
update mall_prod_info update mall_prod_info
set product_id = #{prodSkuId}, set product_id = #{productId},
categories_id = #{categoriesId}, categories_id = #{categoriesId},
prod_spec_name = #{prodSkuSpecName}, prod_spec_name = #{prodSkuSpecName},
choose_type = #{chooseType}, choose_type = #{chooseType},
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
<select id="getMallProSkuInfo" resultType="com.mmc.pms.entity.MallProdInfoDO"> <select id="getMallProSkuInfo" resultType="com.mmc.pms.entity.MallProdInfoDO">
SELECT mi.id, SELECT mi.id,
mi.goods_info_id, mi.goods_info_id,
mi.product_id prodSkuId, mi.product_id productId,
mi.prod_spec_name prodSkuSpecName, mi.prod_spec_name prodSkuSpecName,
mi.categories_id categoriesId, mi.categories_id categoriesId,
mi.choose_type chooseType, mi.choose_type chooseType,
...@@ -594,7 +594,7 @@ ...@@ -594,7 +594,7 @@
<select id="getAllMallProSkuInfo" resultType="com.mmc.pms.entity.MallProdInfoDO"> <select id="getAllMallProSkuInfo" resultType="com.mmc.pms.entity.MallProdInfoDO">
SELECT mi.id, SELECT mi.id,
mi.goods_info_id, mi.goods_info_id,
mi.product_id prodSkuId, mi.product_id productId,
mi.prod_spec_name prodSkuSpecName, mi.prod_spec_name prodSkuSpecName,
mi.categories_id categoriesId, mi.categories_id categoriesId,
mi.choose_type chooseType, mi.choose_type chooseType,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
keyProperty="id" useGeneratedKeys="true"> keyProperty="id" useGeneratedKeys="true">
insert into mall_prod_info (goods_info_id, product_id, prod_spec_name, choose_type, insert into mall_prod_info (goods_info_id, product_id, prod_spec_name, choose_type,
sku_unit_id, is_must, flag) sku_unit_id, is_must, flag)
values (#{goodsInfoId}, #{prodSkuId}, #{prodSkuSpecName}, #{chooseType}, #{skuUnitId}, #{must}, values (#{goodsInfoId}, #{productId}, #{prodSkuSpecName}, #{chooseType}, #{skuUnitId}, #{must},
#{flag}) #{flag})
</insert> </insert>
<update id="updateProductSku"> <update id="updateProductSku">
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
where brand_info_id = #{id} where brand_info_id = #{id}
and is_deleted = 0 and is_deleted = 0
</select> </select>
<select id="countSpecByProdSkuId" resultType="java.lang.Integer"> <select id="countSpecByproductId" resultType="java.lang.Integer">
select count(*) select count(*)
from product_spec from product_spec
where product_id = #{id} where product_id = #{id}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论