|
@@ -121,6 +121,10 @@
|
|
<select id="findLadderPrice" resultType="com.caimei.modules.weisha.entity.OrganizeProductLadderPrice">
|
|
<select id="findLadderPrice" resultType="com.caimei.modules.weisha.entity.OrganizeProductLadderPrice">
|
|
select * from organize_product_ladder_price where productId = #{productId}
|
|
select * from organize_product_ladder_price where productId = #{productId}
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="findFormerLadderPriceList"
|
|
|
|
+ resultType="com.caimei.modules.weisha.entity.OrganizeProductLadderPrice">
|
|
|
|
+ select ladderNum,buyNum,buyPrice from product_ladder_price where productId = #{productId}
|
|
|
|
+ </select>
|
|
|
|
|
|
<insert id="insert" parameterType="CmOrganizeProduct" keyProperty="id" useGeneratedKeys="true">
|
|
<insert id="insert" parameterType="CmOrganizeProduct" keyProperty="id" useGeneratedKeys="true">
|
|
INSERT INTO cm_organize_product(
|
|
INSERT INTO cm_organize_product(
|
|
@@ -191,6 +195,9 @@
|
|
set productId = #{productId},ladderNum = #{ladderNum},buyNum=#{buyNum},buyPrice=#{buyPrice}
|
|
set productId = #{productId},ladderNum = #{ladderNum},buyNum=#{buyNum},buyPrice=#{buyPrice}
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
+ <update id="updateLadderPriceFlag">
|
|
|
|
+ update cm_organize_product set ladderPriceFlag = #{ladderPriceFlag} where id = #{productId}
|
|
|
|
+ </update>
|
|
|
|
|
|
<delete id="delete">
|
|
<delete id="delete">
|
|
UPDATE cm_organize_product set delFlag = 1 where id = #{id}
|
|
UPDATE cm_organize_product set delFlag = 1 where id = #{id}
|