|
@@ -141,7 +141,7 @@
|
|
|
<select id="getCategoryIds" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select category_id as 'categoryId' , category_name as 'categoryName'
|
|
|
from kuaishou_item_category
|
|
|
- where category_sort = 1
|
|
|
+ where parent_id = 0
|
|
|
order by category_id
|
|
|
</select>
|
|
|
<select id="getActivityIds" resultType="java.lang.Long" parameterType="java.lang.Long">
|
|
@@ -174,7 +174,7 @@
|
|
|
</select>
|
|
|
<select id="selectMaxRelateId" resultType="java.lang.Long">
|
|
|
select max(relate_id)
|
|
|
- from kuaishou_item_list
|
|
|
+ from ${targetOwnershipId}.kuaishou_item_list
|
|
|
</select>
|
|
|
<select id="getItemImgUrl" resultType="java.lang.String">
|
|
|
select item_img_url
|
|
@@ -227,6 +227,50 @@
|
|
|
select item_id as 'itemId', item_commission_rate as 'itemCommissionRate'
|
|
|
from kuaishou_activity_item_list
|
|
|
</select>
|
|
|
+ <select id="getDataOwnership" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
+ select ownership_id as 'ownershipId',ownership_name as 'ownershipName'
|
|
|
+ from ruixuan.kuaishou_data_ownership
|
|
|
+ </select>
|
|
|
+ <select id="checkUser" resultType="java.lang.Long">
|
|
|
+ select user_id
|
|
|
+ from ${ownershipId}.sys_user
|
|
|
+ where nick_name = #{userName} limit 1
|
|
|
+ </select>
|
|
|
+ <select id="selectDataOwnershipNameById" resultType="java.lang.String" parameterType="java.lang.String">
|
|
|
+ select ownership_name
|
|
|
+ from kuaishou_data_ownership
|
|
|
+ where ownership_id = #{ownershipId}
|
|
|
+
|
|
|
+ </select>
|
|
|
+ <select id="getUserInfo" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
+ select user_id as 'userId', nick_name as 'userName'
|
|
|
+ from ${targetOwnershipId}.sys_user
|
|
|
+ where nick_name = #{userName}
|
|
|
+ order by create_time desc limit 1
|
|
|
+ </select>
|
|
|
+ <select id="getItemOwnership" resultType="java.lang.String" parameterType="java.lang.Long">
|
|
|
+ select ownership_id
|
|
|
+ from ruixuan.kuaishou_item_check
|
|
|
+ where item_id = #{itemId}
|
|
|
+ </select>
|
|
|
+ <select id="getCleanData" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
+ select *
|
|
|
+ from (select item_id as 'itemId', 'ruixuan' as 'ownershipId'
|
|
|
+ from ruixuan.kuaishou_item_list
|
|
|
+ union all
|
|
|
+ select item_id as 'itemId', 'miaogousi' as 'ownershipId'
|
|
|
+ from miaogousi.kuaishou_item_list
|
|
|
+ union all
|
|
|
+ select item_id as 'itemId', 'rocket' as 'ownershipId'
|
|
|
+ from rocket.kuaishou_item_list) t
|
|
|
+ group by t.itemId
|
|
|
+ </select>
|
|
|
+ <select id="checkItemData" resultType="java.lang.Integer">
|
|
|
+ select count(1)
|
|
|
+ from ${ownershipId}.kuaishou_supply_chain
|
|
|
+ where item_id = #{itemId}
|
|
|
+
|
|
|
+ </select>
|
|
|
|
|
|
<insert id="insertItem" parameterType="com.ruixuan.isc.entity.KuaishouItemList">
|
|
|
insert into kuaishou_item_list
|
|
@@ -324,7 +368,7 @@
|
|
|
|
|
|
<insert id="insertItemBindUser">
|
|
|
replace
|
|
|
- into kuaishou_item_bind_user(
|
|
|
+ into ${targetOwnershipId}.kuaishou_item_bind_user(
|
|
|
item_id,
|
|
|
user_id,
|
|
|
user_name
|
|
@@ -338,7 +382,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<insert id="batchCategory">
|
|
|
- replace into kuaishou_item_category(
|
|
|
+ replace into ruixuan.kuaishou_item_category(
|
|
|
category_id,
|
|
|
category_name,
|
|
|
parent_id,
|
|
@@ -355,6 +399,328 @@
|
|
|
</foreach>
|
|
|
|
|
|
</insert>
|
|
|
+ <insert id="insertRuiXuanItem" parameterType="com.ruixuan.isc.entity.KuaishouItemList">
|
|
|
+ insert into ruixuan.kuaishou_item_list
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="itemId != null">item_id,</if>
|
|
|
+ <if test="mediaId != null">media_id,</if>
|
|
|
+ <if test="itemTitle != null">item_title,</if>
|
|
|
+ <if test="itemPrice != null">item_price,</if>
|
|
|
+ <if test="itemDesc != null">item_desc,</if>
|
|
|
+ <if test="zkFinalPrice != null">zk_final_price,</if>
|
|
|
+ <if test="itemImgUrl != null">item_img_url,</if>
|
|
|
+ <if test="itemDescUrls != null">item_desc_urls,</if>
|
|
|
+ <if test="shopStar != null">shop_star,</if>
|
|
|
+ <if test="mallLogisticsScore != null">mall_logistics_score,</if>
|
|
|
+ <if test="activityItemStatus != null">activity_item_status,</if>
|
|
|
+ <if test="shopScore != null">shop_score,</if>
|
|
|
+ <if test="categoryId != null">category_id,</if>
|
|
|
+ <if test="categoryName != null">category_name,</if>
|
|
|
+ <if test="itemGalleryUrls != null">item_gallery_urls,</if>
|
|
|
+ <if test="identity != null">identity,</if>
|
|
|
+ <if test="activityId != null">activity_id,</if>
|
|
|
+ <if test="shopTitle != null">shop_title,</if>
|
|
|
+ <if test="commissionRate != null">commission_rate,</if>
|
|
|
+ <if test="mallServiceScore != null">mall_service_score,</if>
|
|
|
+ <if test="mallQualityScore != null">mall_quality_score,</if>
|
|
|
+ <if test="skuList != null">sku_list,</if>
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
|
+ <if test="userName != null">user_name,</if>
|
|
|
+ <if test="examineId != null">examine_id,</if>
|
|
|
+ <if test="examineName != null">examine_name,</if>
|
|
|
+ <if test="examineStatus != null">examine_status,</if>
|
|
|
+ <if test="refuseDetail != null">refuse_detail,</if>
|
|
|
+ <if test="postArea != null">post_area,</if>
|
|
|
+ <if test="noPostArea != null">no_post_area,</if>
|
|
|
+ <if test="regimentalPromotionRate != null">regimental_promotion_rate,</if>
|
|
|
+ <if test="regimentalPromotion != null">regimental_promotion,</if>
|
|
|
+ <if test="sampleCount != null">sample_count,</if>
|
|
|
+ <if test="sampleRequirement != null">sample_requirement,</if>
|
|
|
+ <if test="deliveryRate != null">delivery_rate,</if>
|
|
|
+ <if test="partnerRecommendText != null">partner_recommend_text,</if>
|
|
|
+ <if test="detailUrl != null">detail_url,</if>
|
|
|
+ <if test="samplesReceived != null">samples_received,</if>
|
|
|
+ <if test="samplesPeoples != null">samples_peoples,</if>
|
|
|
+ <if test="relateId != null">relate_id,</if>
|
|
|
+ <if test="ruleId != null">rule_id,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="itemId != null">#{itemId},</if>
|
|
|
+ <if test="mediaId != null">#{mediaId},</if>
|
|
|
+ <if test="itemTitle != null">#{itemTitle},</if>
|
|
|
+ <if test="itemPrice != null">#{itemPrice},</if>
|
|
|
+ <if test="itemDesc != null">#{itemDesc},</if>
|
|
|
+ <if test="zkFinalPrice != null">#{zkFinalPrice},</if>
|
|
|
+ <if test="itemImgUrl != null">#{itemImgUrl},</if>
|
|
|
+ <if test="itemDescUrls != null">#{itemDescUrls},</if>
|
|
|
+ <if test="shopStar != null">#{shopStar},</if>
|
|
|
+ <if test="mallLogisticsScore != null">#{mallLogisticsScore},</if>
|
|
|
+ <if test="activityItemStatus != null">#{activityItemStatus},</if>
|
|
|
+ <if test="shopScore != null">#{shopScore},</if>
|
|
|
+ <if test="categoryId != null">#{categoryId},</if>
|
|
|
+ <if test="categoryName != null">#{categoryName},</if>
|
|
|
+ <if test="itemGalleryUrls != null">#{itemGalleryUrls},</if>
|
|
|
+ <if test="identity != null">#{identity},</if>
|
|
|
+ <if test="activityId != null">#{activityId},</if>
|
|
|
+ <if test="shopTitle != null">#{shopTitle},</if>
|
|
|
+ <if test="commissionRate != null">#{commissionRate},</if>
|
|
|
+ <if test="mallServiceScore != null">#{mallServiceScore},</if>
|
|
|
+ <if test="mallQualityScore != null">#{mallQualityScore},</if>
|
|
|
+ <if test="skuList != null">#{skuList},</if>
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
|
+ <if test="userName != null">#{userName},</if>
|
|
|
+ <if test="examineId != null">#{examineId},</if>
|
|
|
+ <if test="examineName != null">#{examineName},</if>
|
|
|
+ <if test="examineStatus != null">#{examineStatus},</if>
|
|
|
+ <if test="refuseDetail != null">#{refuseDetail},</if>
|
|
|
+ <if test="postArea != null">#{postArea},</if>
|
|
|
+ <if test="noPostArea != null">#{noPostArea},</if>
|
|
|
+ <if test="regimentalPromotionRate != null">#{regimentalPromotionRate},</if>
|
|
|
+ <if test="regimentalPromotion != null">#{regimentalPromotion},</if>
|
|
|
+ <if test="sampleCount != null">#{sampleCount},</if>
|
|
|
+ <if test="sampleRequirement != null">#{sampleRequirement},</if>
|
|
|
+ <if test="deliveryRate != null">#{deliveryRate},</if>
|
|
|
+ <if test="partnerRecommendText != null">#{partnerRecommendText},</if>
|
|
|
+ <if test="detailUrl != null">#{detailUrl},</if>
|
|
|
+ <if test="samplesReceived != null">#{samplesReceived},</if>
|
|
|
+ <if test="samplesPeoples != null">#{samplesPeoples},</if>
|
|
|
+ <if test="relateId != null">#{relateId},</if>
|
|
|
+ <if test="ruleId != null">#{ruleId},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <insert id="insertMiaoGouSiItem" parameterType="com.ruixuan.isc.entity.KuaishouItemList">
|
|
|
+ insert into miaogousi.kuaishou_item_list
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="itemId != null">item_id,</if>
|
|
|
+ <if test="mediaId != null">media_id,</if>
|
|
|
+ <if test="itemTitle != null">item_title,</if>
|
|
|
+ <if test="itemPrice != null">item_price,</if>
|
|
|
+ <if test="itemDesc != null">item_desc,</if>
|
|
|
+ <if test="zkFinalPrice != null">zk_final_price,</if>
|
|
|
+ <if test="itemImgUrl != null">item_img_url,</if>
|
|
|
+ <if test="itemDescUrls != null">item_desc_urls,</if>
|
|
|
+ <if test="shopStar != null">shop_star,</if>
|
|
|
+ <if test="mallLogisticsScore != null">mall_logistics_score,</if>
|
|
|
+ <if test="activityItemStatus != null">activity_item_status,</if>
|
|
|
+ <if test="shopScore != null">shop_score,</if>
|
|
|
+ <if test="categoryId != null">category_id,</if>
|
|
|
+ <if test="categoryName != null">category_name,</if>
|
|
|
+ <if test="itemGalleryUrls != null">item_gallery_urls,</if>
|
|
|
+ <if test="identity != null">identity,</if>
|
|
|
+ <if test="activityId != null">activity_id,</if>
|
|
|
+ <if test="shopTitle != null">shop_title,</if>
|
|
|
+ <if test="commissionRate != null">commission_rate,</if>
|
|
|
+ <if test="mallServiceScore != null">mall_service_score,</if>
|
|
|
+ <if test="mallQualityScore != null">mall_quality_score,</if>
|
|
|
+ <if test="skuList != null">sku_list,</if>
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
|
+ <if test="userName != null">user_name,</if>
|
|
|
+ <if test="examineId != null">examine_id,</if>
|
|
|
+ <if test="examineName != null">examine_name,</if>
|
|
|
+ <if test="examineStatus != null">examine_status,</if>
|
|
|
+ <if test="refuseDetail != null">refuse_detail,</if>
|
|
|
+ <if test="postArea != null">post_area,</if>
|
|
|
+ <if test="noPostArea != null">no_post_area,</if>
|
|
|
+ <if test="regimentalPromotionRate != null">regimental_promotion_rate,</if>
|
|
|
+ <if test="regimentalPromotion != null">regimental_promotion,</if>
|
|
|
+ <if test="sampleCount != null">sample_count,</if>
|
|
|
+ <if test="sampleRequirement != null">sample_requirement,</if>
|
|
|
+ <if test="deliveryRate != null">delivery_rate,</if>
|
|
|
+ <if test="partnerRecommendText != null">partner_recommend_text,</if>
|
|
|
+ <if test="detailUrl != null">detail_url,</if>
|
|
|
+ <if test="samplesReceived != null">samples_received,</if>
|
|
|
+ <if test="samplesPeoples != null">samples_peoples,</if>
|
|
|
+ <if test="relateId != null">relate_id,</if>
|
|
|
+ <if test="ruleId != null">rule_id,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="itemId != null">#{itemId},</if>
|
|
|
+ <if test="mediaId != null">#{mediaId},</if>
|
|
|
+ <if test="itemTitle != null">#{itemTitle},</if>
|
|
|
+ <if test="itemPrice != null">#{itemPrice},</if>
|
|
|
+ <if test="itemDesc != null">#{itemDesc},</if>
|
|
|
+ <if test="zkFinalPrice != null">#{zkFinalPrice},</if>
|
|
|
+ <if test="itemImgUrl != null">#{itemImgUrl},</if>
|
|
|
+ <if test="itemDescUrls != null">#{itemDescUrls},</if>
|
|
|
+ <if test="shopStar != null">#{shopStar},</if>
|
|
|
+ <if test="mallLogisticsScore != null">#{mallLogisticsScore},</if>
|
|
|
+ <if test="activityItemStatus != null">#{activityItemStatus},</if>
|
|
|
+ <if test="shopScore != null">#{shopScore},</if>
|
|
|
+ <if test="categoryId != null">#{categoryId},</if>
|
|
|
+ <if test="categoryName != null">#{categoryName},</if>
|
|
|
+ <if test="itemGalleryUrls != null">#{itemGalleryUrls},</if>
|
|
|
+ <if test="identity != null">#{identity},</if>
|
|
|
+ <if test="activityId != null">#{activityId},</if>
|
|
|
+ <if test="shopTitle != null">#{shopTitle},</if>
|
|
|
+ <if test="commissionRate != null">#{commissionRate},</if>
|
|
|
+ <if test="mallServiceScore != null">#{mallServiceScore},</if>
|
|
|
+ <if test="mallQualityScore != null">#{mallQualityScore},</if>
|
|
|
+ <if test="skuList != null">#{skuList},</if>
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
|
+ <if test="userName != null">#{userName},</if>
|
|
|
+ <if test="examineId != null">#{examineId},</if>
|
|
|
+ <if test="examineName != null">#{examineName},</if>
|
|
|
+ <if test="examineStatus != null">#{examineStatus},</if>
|
|
|
+ <if test="refuseDetail != null">#{refuseDetail},</if>
|
|
|
+ <if test="postArea != null">#{postArea},</if>
|
|
|
+ <if test="noPostArea != null">#{noPostArea},</if>
|
|
|
+ <if test="regimentalPromotionRate != null">#{regimentalPromotionRate},</if>
|
|
|
+ <if test="regimentalPromotion != null">#{regimentalPromotion},</if>
|
|
|
+ <if test="sampleCount != null">#{sampleCount},</if>
|
|
|
+ <if test="sampleRequirement != null">#{sampleRequirement},</if>
|
|
|
+ <if test="deliveryRate != null">#{deliveryRate},</if>
|
|
|
+ <if test="partnerRecommendText != null">#{partnerRecommendText},</if>
|
|
|
+ <if test="detailUrl != null">#{detailUrl},</if>
|
|
|
+ <if test="samplesReceived != null">#{samplesReceived},</if>
|
|
|
+ <if test="samplesPeoples != null">#{samplesPeoples},</if>
|
|
|
+ <if test="relateId != null">#{relateId},</if>
|
|
|
+ <if test="ruleId != null">#{ruleId},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <insert id="insertRocketItem" parameterType="com.ruixuan.isc.entity.KuaishouItemList">
|
|
|
+ insert into rocket.kuaishou_item_list
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="itemId != null">item_id,</if>
|
|
|
+ <if test="mediaId != null">media_id,</if>
|
|
|
+ <if test="itemTitle != null">item_title,</if>
|
|
|
+ <if test="itemPrice != null">item_price,</if>
|
|
|
+ <if test="itemDesc != null">item_desc,</if>
|
|
|
+ <if test="zkFinalPrice != null">zk_final_price,</if>
|
|
|
+ <if test="itemImgUrl != null">item_img_url,</if>
|
|
|
+ <if test="itemDescUrls != null">item_desc_urls,</if>
|
|
|
+ <if test="shopStar != null">shop_star,</if>
|
|
|
+ <if test="mallLogisticsScore != null">mall_logistics_score,</if>
|
|
|
+ <if test="activityItemStatus != null">activity_item_status,</if>
|
|
|
+ <if test="shopScore != null">shop_score,</if>
|
|
|
+ <if test="categoryId != null">category_id,</if>
|
|
|
+ <if test="categoryName != null">category_name,</if>
|
|
|
+ <if test="itemGalleryUrls != null">item_gallery_urls,</if>
|
|
|
+ <if test="identity != null">identity,</if>
|
|
|
+ <if test="activityId != null">activity_id,</if>
|
|
|
+ <if test="shopTitle != null">shop_title,</if>
|
|
|
+ <if test="commissionRate != null">commission_rate,</if>
|
|
|
+ <if test="mallServiceScore != null">mall_service_score,</if>
|
|
|
+ <if test="mallQualityScore != null">mall_quality_score,</if>
|
|
|
+ <if test="skuList != null">sku_list,</if>
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
|
+ <if test="userName != null">user_name,</if>
|
|
|
+ <if test="examineId != null">examine_id,</if>
|
|
|
+ <if test="examineName != null">examine_name,</if>
|
|
|
+ <if test="examineStatus != null">examine_status,</if>
|
|
|
+ <if test="refuseDetail != null">refuse_detail,</if>
|
|
|
+ <if test="postArea != null">post_area,</if>
|
|
|
+ <if test="noPostArea != null">no_post_area,</if>
|
|
|
+ <if test="regimentalPromotionRate != null">regimental_promotion_rate,</if>
|
|
|
+ <if test="regimentalPromotion != null">regimental_promotion,</if>
|
|
|
+ <if test="sampleCount != null">sample_count,</if>
|
|
|
+ <if test="sampleRequirement != null">sample_requirement,</if>
|
|
|
+ <if test="deliveryRate != null">delivery_rate,</if>
|
|
|
+ <if test="partnerRecommendText != null">partner_recommend_text,</if>
|
|
|
+ <if test="detailUrl != null">detail_url,</if>
|
|
|
+ <if test="samplesReceived != null">samples_received,</if>
|
|
|
+ <if test="samplesPeoples != null">samples_peoples,</if>
|
|
|
+ <if test="relateId != null">relate_id,</if>
|
|
|
+ <if test="ruleId != null">rule_id,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="itemId != null">#{itemId},</if>
|
|
|
+ <if test="mediaId != null">#{mediaId},</if>
|
|
|
+ <if test="itemTitle != null">#{itemTitle},</if>
|
|
|
+ <if test="itemPrice != null">#{itemPrice},</if>
|
|
|
+ <if test="itemDesc != null">#{itemDesc},</if>
|
|
|
+ <if test="zkFinalPrice != null">#{zkFinalPrice},</if>
|
|
|
+ <if test="itemImgUrl != null">#{itemImgUrl},</if>
|
|
|
+ <if test="itemDescUrls != null">#{itemDescUrls},</if>
|
|
|
+ <if test="shopStar != null">#{shopStar},</if>
|
|
|
+ <if test="mallLogisticsScore != null">#{mallLogisticsScore},</if>
|
|
|
+ <if test="activityItemStatus != null">#{activityItemStatus},</if>
|
|
|
+ <if test="shopScore != null">#{shopScore},</if>
|
|
|
+ <if test="categoryId != null">#{categoryId},</if>
|
|
|
+ <if test="categoryName != null">#{categoryName},</if>
|
|
|
+ <if test="itemGalleryUrls != null">#{itemGalleryUrls},</if>
|
|
|
+ <if test="identity != null">#{identity},</if>
|
|
|
+ <if test="activityId != null">#{activityId},</if>
|
|
|
+ <if test="shopTitle != null">#{shopTitle},</if>
|
|
|
+ <if test="commissionRate != null">#{commissionRate},</if>
|
|
|
+ <if test="mallServiceScore != null">#{mallServiceScore},</if>
|
|
|
+ <if test="mallQualityScore != null">#{mallQualityScore},</if>
|
|
|
+ <if test="skuList != null">#{skuList},</if>
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
|
+ <if test="userName != null">#{userName},</if>
|
|
|
+ <if test="examineId != null">#{examineId},</if>
|
|
|
+ <if test="examineName != null">#{examineName},</if>
|
|
|
+ <if test="examineStatus != null">#{examineStatus},</if>
|
|
|
+ <if test="refuseDetail != null">#{refuseDetail},</if>
|
|
|
+ <if test="postArea != null">#{postArea},</if>
|
|
|
+ <if test="noPostArea != null">#{noPostArea},</if>
|
|
|
+ <if test="regimentalPromotionRate != null">#{regimentalPromotionRate},</if>
|
|
|
+ <if test="regimentalPromotion != null">#{regimentalPromotion},</if>
|
|
|
+ <if test="sampleCount != null">#{sampleCount},</if>
|
|
|
+ <if test="sampleRequirement != null">#{sampleRequirement},</if>
|
|
|
+ <if test="deliveryRate != null">#{deliveryRate},</if>
|
|
|
+ <if test="partnerRecommendText != null">#{partnerRecommendText},</if>
|
|
|
+ <if test="detailUrl != null">#{detailUrl},</if>
|
|
|
+ <if test="samplesReceived != null">#{samplesReceived},</if>
|
|
|
+ <if test="samplesPeoples != null">#{samplesPeoples},</if>
|
|
|
+ <if test="relateId != null">#{relateId},</if>
|
|
|
+ <if test="ruleId != null">#{ruleId},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+
|
|
|
+ </insert>
|
|
|
+ <insert id="insertItemCheck">
|
|
|
+ replace
|
|
|
+ into ruixuan.kuaishou_item_check(item_id,ownership_id) values (
|
|
|
+ #{itemId},
|
|
|
+ #{targetOwnershipId}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="batchMgsCategory">
|
|
|
+ replace into miaogousi.kuaishou_item_category(
|
|
|
+ category_id,
|
|
|
+ category_name,
|
|
|
+ parent_id,
|
|
|
+ category_sort
|
|
|
+ )
|
|
|
+ values
|
|
|
+ <foreach collection="adds" item="add" separator=",">
|
|
|
+ (
|
|
|
+ #{add.categoryId},
|
|
|
+ #{add.categoryName},
|
|
|
+ #{add.parentId},
|
|
|
+ #{add.categorySort}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+ </insert>
|
|
|
+ <insert id="batchRocketCategory">
|
|
|
+ replace into rocket.kuaishou_item_category(
|
|
|
+ category_id,
|
|
|
+ category_name,
|
|
|
+ parent_id,
|
|
|
+ category_sort
|
|
|
+ )
|
|
|
+ values
|
|
|
+ <foreach collection="adds" item="add" separator=",">
|
|
|
+ (
|
|
|
+ #{add.categoryId},
|
|
|
+ #{add.categoryName},
|
|
|
+ #{add.parentId},
|
|
|
+ #{add.categorySort}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
|
|
|
|
|
|
<update id="updateKuaishouItemList" parameterType="com.ruixuan.isc.entity.KuaishouItemList">
|