|
@@ -1335,7 +1335,7 @@
|
|
name=#{name},
|
|
name=#{name},
|
|
discription=#{discription},
|
|
discription=#{discription},
|
|
typeId=#{typeId},
|
|
typeId=#{typeId},
|
|
- auditStatus =1,
|
|
|
|
|
|
+ auditStatus =1,
|
|
onlineStatus=1,
|
|
onlineStatus=1,
|
|
status=#{status},
|
|
status=#{status},
|
|
publishTime=#{publishTime},
|
|
publishTime=#{publishTime},
|
|
@@ -1345,16 +1345,17 @@
|
|
publishSource=#{publishSource},
|
|
publishSource=#{publishSource},
|
|
shopId=#{shopId},
|
|
shopId=#{shopId},
|
|
seoKeyword=#{seoKeyword},
|
|
seoKeyword=#{seoKeyword},
|
|
- labelIds = #{labelIds}
|
|
|
|
|
|
+ labelIds = #{labelIds},
|
|
|
|
+ relatedLabels = #{labelStrs}
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<insert id="insertEntryInfo" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertEntryInfo" useGeneratedKeys="true" keyProperty="id">
|
|
insert into cm_baike_product
|
|
insert into cm_baike_product
|
|
(commodityType, name, discription, typeId, actualPv, auditStatus, onlineStatus, status, publishTime, addTime,
|
|
(commodityType, name, discription, typeId, actualPv, auditStatus, onlineStatus, status, publishTime, addTime,
|
|
- alias, image, seoKeyword, publishSource, shopId, labelIds)
|
|
|
|
|
|
+ alias, image, seoKeyword, publishSource, shopId, labelIds, relatedLabels)
|
|
values (#{commodityType}, #{name}, #{discription}, #{typeId}, 0, 1, 1, #{status}, #{publishTime}, NOW(),
|
|
values (#{commodityType}, #{name}, #{discription}, #{typeId}, 0, 1, 1, #{status}, #{publishTime}, NOW(),
|
|
- #{alias}, #{image}, #{seoKeyword}, #{publishSource}, #{shopId}, #{labelIds})
|
|
|
|
|
|
+ #{alias}, #{image}, #{seoKeyword}, #{publishSource}, #{shopId}, #{labelIds}, #{labelStrs})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<delete id="delImageListByEntryId">
|
|
<delete id="delImageListByEntryId">
|
|
@@ -1431,7 +1432,12 @@
|
|
select keyword
|
|
select keyword
|
|
from cm_user_search_frequency
|
|
from cm_user_search_frequency
|
|
where trueStatus = 1
|
|
where trueStatus = 1
|
|
- and delStatus = 1
|
|
|
|
- and id in (#{labelIds})
|
|
|
|
|
|
+ and delStatus = 1
|
|
|
|
+ and id in (#{labelIds})
|
|
|
|
+ </select>
|
|
|
|
+ <select id="findKeyWordId" resultType="java.lang.String">
|
|
|
|
+ select keyword
|
|
|
|
+ from cm_user_search_frequency
|
|
|
|
+ where id = #{id}
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|