From 0588d6be74335f41c79a8d8e32dbd1c3d3e47fa3 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期三, 29 五月 2019 17:20:50 +0800
Subject: [PATCH] 精选库商品入库及更新调整 + 9k9类商品查询取消标签查询

---
 fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml
index 8577025..3b43dd8 100644
--- a/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml
+++ b/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml
@@ -10,8 +10,7 @@
 		<result column="fs_createtime" property="createtime" jdbcType="TIMESTAMP" />
 		<result column="fs_updatetime" property="updatetime" jdbcType="TIMESTAMP" />
 		
-		<association property="qualityFactory" column="fs_qfgoods_id" 
-    		javaType="com.yeshi.fanli.entity.bus.lable.QualityFactory">
+		<association property="taoBaoGoodsBrief" column="fs_qfgoods_id" javaType="com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief">
 			<id column="fs_qfgoods_id" property="id" jdbcType="BIGINT" />
     	</association>
 	</resultMap>
@@ -34,7 +33,7 @@
 		useGeneratedKeys="true" keyProperty="id">insert into
 		yeshi_ec_quality_flash_sale
 		(fs_id,fs_qfgoods_id,fs_type,fs_weight,fs_createtime,fs_updatetime) values
-		(#{id,jdbcType=BIGINT},#{qualityFactory.id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP})
+		(#{id,jdbcType=BIGINT},#{taoBaoGoodsBrief.id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP})
 	</insert>
 	
 	<insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale"
@@ -42,7 +41,7 @@
 		insert into yeshi_ec_quality_flash_sale
 		<trim prefix="(" suffix=")" suffixOverrides=",">
 			<if test="id != null">fs_id,</if>
-			<if test="qualityFactory != null">fs_qfgoods_id,</if>
+			<if test="taoBaoGoodsBrief != null">fs_qfgoods_id,</if>
 			<if test="type != null">fs_type,</if>
 			<if test="weight != null">fs_weight,</if>
 			<if test="createtime != null">fs_createtime,</if>
@@ -51,7 +50,7 @@
 		values
 		<trim prefix="(" suffix=")" suffixOverrides=",">
 			<if test="id != null">#{id,jdbcType=BIGINT},</if>
-			<if test="qualityFactory != null">#{qualityFactory.id,jdbcType=BIGINT},</if>
+			<if test="taoBaoGoodsBrief != null">#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if>
 			<if test="type != null">#{type,jdbcType=INTEGER},</if>
 			<if test="weight != null">#{weight,jdbcType=DOUBLE},</if>
 			<if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if>
@@ -61,7 +60,7 @@
 	
 	<update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale">update
 		yeshi_ec_quality_flash_sale set 
-		fs_qfgoods_id =	#{qualityFactory.id,jdbcType=BIGINT},
+		fs_qfgoods_id =	#{taoBaoGoodsBrief.id,jdbcType=BIGINT},
 		fs_type =	#{type,jdbcType=INTEGER},
 		fs_weight =	#{weight,jdbcType=DOUBLE},
 		fs_createtime =	#{createtime,jdbcType=TIMESTAMP},
@@ -71,7 +70,7 @@
 	<update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale">
 		update yeshi_ec_quality_flash_sale
 		<set>
-			<if test="qualityFactory != null">fs_qfgoods_id=#{qualityFactory.id,jdbcType=BIGINT},</if>
+			<if test="taoBaoGoodsBrief != null">fs_qfgoods_id=#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if>
 			<if test="type != null">fs_type=#{type,jdbcType=INTEGER},</if>
 			<if test="weight != null">fs_weight=#{weight,jdbcType=DOUBLE},</if>
 			<if test="createtime != null">fs_createtime=#{createtime,jdbcType=TIMESTAMP},</if>
@@ -89,7 +88,7 @@
 		<foreach collection="list" item="item" separator=",">
 			(
 			#{item.id,jdbcType=BIGINT},
-			#{item.qualityFactory.id,jdbcType=BIGINT},
+			#{item.taoBaoGoodsBrief.id,jdbcType=BIGINT},
 			#{item.type,jdbcType=INTEGER},
 			#{item.weight,jdbcType=DOUBLE},
 			#{item.createtime,jdbcType=TIMESTAMP},
@@ -137,7 +136,7 @@
 				separator=",">#{item}</foreach>
   	</select>
   	
-  	<delete id="deleteByQualityID" parameterType="java.lang.Long">
+  	<delete id="deleteByGoodsId" parameterType="java.lang.Long">
   		delete from yeshi_ec_quality_flash_sale where fs_qfgoods_id = #{qid,jdbcType=BIGINT}
 	</delete>
 	

--
Gitblit v1.8.0