提交 56f7a706 作者: xiaowang

返回产品id

上级 be531dd6
......@@ -11,7 +11,7 @@
<insert id="insertProductSpec" keyProperty="id" useGeneratedKeys="true"
parameterType="com.mmc.pms.entity.ProductSpecDO">
insert into product_spec (product_id, spec_name, spec_image, part_no, version_desc)
values (#{productSkuId}, #{specName}, #{specImage}, #{partNo}, #{versionDesc})
values (#{productId}, #{specName}, #{specImage}, #{partNo}, #{versionDesc})
</insert>
<insert id="batchInsertSpecPrice" useGeneratedKeys="true"
keyProperty="id" parameterType="com.mmc.pms.entity.ProductSpecPriceDO">
......@@ -48,7 +48,7 @@
spec_image = #{specImage},
part_no = #{partNo},
version_desc = #{versionDesc},
product_id = #{productSkuId}
product_id = #{productId}
where id = #{id}
</update>
<update id="removeProductSku">
......@@ -138,7 +138,7 @@
</select>
<select id="countSpecName" resultType="java.lang.Integer">
select count(*) from product_spec
where spec_name = #{specName} and is_deleted = 0 and product_id = #{productSkuId}
where spec_name = #{specName} and is_deleted = 0 and product_id = #{productId}
<if test="id !=null and id !=''">
and id <![CDATA[<>]]> #{id}
</if>
......@@ -151,7 +151,7 @@
</select>
<select id="getProductSpecDetail" resultType="com.mmc.pms.entity.ProductSpecDO">
select id,
product_id productSkuId,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
......@@ -173,7 +173,7 @@
</select>
<select id="listPageProductSpec" resultType="com.mmc.pms.entity.ProductSpecDO">
select id,
product_id productSkuId,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
......@@ -182,7 +182,7 @@
from product_spec
<where>
is_deleted = 0
and product_id = #{productSkuId}
and product_id = #{productId}
<if test="keyword != null and keyword != ''">
and spec_name like CONCAT('%',#{keyword},'%')
</if>
......@@ -208,7 +208,7 @@
</select>
<select id="listProductSpec" resultType="com.mmc.pms.entity.ProductSpecDO">
select id,
product_id productSkuId,
product_id productId,
spec_name,
spec_image,
part_no,
......@@ -216,7 +216,7 @@
create_time
from product_spec
where is_deleted = 0
and product_id = #{productSkuId}
and product_id = #{productId}
</select>
<select id="listProductSkuDO" resultType="com.mmc.pms.entity.ProductDO">
SELECT ps.id,
......@@ -241,7 +241,7 @@
id,
industry_product_inventory_id industryProductInventoryId,
product_spec_id productSpecId,
product_id productSkuId
product_id productId
FROM
inventory_spec
WHERE
......@@ -254,7 +254,7 @@
<select id="listProductSpecInfo" resultType="com.mmc.pms.entity.ProductSpecDO">
SELECT
id,
product_id productSkuId,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
......@@ -369,7 +369,7 @@
<select id="getProductSpecList" resultType="com.mmc.pms.entity.ProductSpecDO">
SELECT
id,
product_id productSkuId,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论