|
@@ -240,6 +240,20 @@
|
|
|
)
|
|
|
</update>
|
|
|
|
|
|
+ <!-- 根据定价修改商品销售表价格 lym -->
|
|
|
+ <update id="updateGoodsSaleInfoPrice" parameterType="com.hcloud.microserver.system.facade.carbon.entity.ProductTypePriceWithBLOBs">
|
|
|
+ UPDATE t_goods_sale_info
|
|
|
+ SET sale_price = #{price,jdbcType=DECIMAL}
|
|
|
+ WHERE fk_goods_guid IN
|
|
|
+ ( SELECT tmp.guid FROM(SELECT a.guid,a.price,c.fk_product_type FROM t_goods_info a
|
|
|
+ LEFT JOIN t_goods_detail b ON a.guid = b.fk_goods_guid
|
|
|
+ LEFT JOIN t_product_info c ON b.fk_product_guid = c.guid
|
|
|
+ WHERE a.state = 1 AND b.state = 1 AND c.state = 1
|
|
|
+ AND FIND_IN_SET(c.fk_product_type,#{fkProductType,jdbcType=LONGVARCHAR})
|
|
|
+ ) tmp
|
|
|
+ )
|
|
|
+ </update>
|
|
|
+
|
|
|
<!-- 查询最新的产品类别定价 lym -->
|
|
|
<select id="selectNewProductTypePrice" parameterType="String" resultMap="ResultMapWithBLOBs">
|
|
|
SELECT <include refid="Base_Column_List"/>,<include refid="Blob_Column_List"/>
|