|
@@ -9,7 +9,7 @@
|
|
|
LEFT JOIN cm_shop_info csi ON csi.shopProductId = csp.id
|
|
|
</if>
|
|
|
<if test="keyword != null and keyword != ''">
|
|
|
- left join shop s on s.shopId = cri.shopId
|
|
|
+ left join shop s on s.shopId = css.shopId
|
|
|
LEFT JOIN cm_shop_keyword csk ON csk.shopProductId = csp.id
|
|
|
left join cm_user_search_frequency cusf on cusf.id = csk.searchId
|
|
|
</if>
|
|
@@ -44,7 +44,7 @@
|
|
|
left join cm_user_search_frequency cusf on cusf.id = csk.searchId
|
|
|
</if>
|
|
|
<where>
|
|
|
- css.delFlag = 0 AND csp.delFlag = 0
|
|
|
+ css.delFlag = 0 and css.status = 0 AND csp.delFlag = 0
|
|
|
<if test="shopId != null">
|
|
|
and css.shopId = #{shopId}
|
|
|
</if>
|
|
@@ -64,7 +64,7 @@
|
|
|
|
|
|
<select id="getShopProductIds" resultType="java.lang.Integer">
|
|
|
SELECT
|
|
|
- csp.productId
|
|
|
+ csp.id
|
|
|
FROM cm_shop_product csp
|
|
|
LEFT JOIN cm_shop_statistics css ON css.id = csp.statisticsId
|
|
|
WHERE css.shopId = #{shopId} AND csp.delFlag = 0
|
|
@@ -87,6 +87,7 @@
|
|
|
SELECT
|
|
|
csp.id,
|
|
|
css.shopId,
|
|
|
+ cspd.id as shopProductId,
|
|
|
csp.image,
|
|
|
csp.guidingOne,
|
|
|
csp.guidingTwo,
|
|
@@ -122,6 +123,7 @@
|
|
|
SELECT
|
|
|
csp.id,
|
|
|
css.shopId,
|
|
|
+ cspd.id as shopProductId,
|
|
|
csp.image,
|
|
|
csp.guidingOne,
|
|
|
csp.guidingTwo,
|
|
@@ -138,7 +140,7 @@
|
|
|
INSERT INTO cm_roos_information
|
|
|
(
|
|
|
IP,
|
|
|
- shopId,
|
|
|
+ shopProductId,
|
|
|
<if test="consultName != null and consultName != ''">
|
|
|
consultName,
|
|
|
</if>
|
|
@@ -150,7 +152,7 @@
|
|
|
)
|
|
|
VALUES(
|
|
|
#{ip},
|
|
|
- #{shopId},
|
|
|
+ #{shopProductId},
|
|
|
<if test="consultName != null and consultName != ''">
|
|
|
#{consultName},
|
|
|
</if>
|