|
@@ -1237,10 +1237,7 @@
|
|
|
WHERE
|
|
|
t1.company_wechat_id = #{companyWechatId}
|
|
|
AND t1.flag = 'OK'
|
|
|
- <if test="websitId != null and websitId != ''">
|
|
|
- AND t1.websit_id = #{websitId}
|
|
|
- </if>
|
|
|
- <if test="websitId == null and websits != null and websits.size > 0">
|
|
|
+ <if test="websits != null and websits.size > 0">
|
|
|
AND t1.websit_id IN
|
|
|
<foreach item="item" index="index" collection="websits" open="(" separator=","
|
|
|
close=")">
|
|
@@ -1267,10 +1264,7 @@
|
|
|
WHERE
|
|
|
t1.company_wechat_id = #{companyWechatId}
|
|
|
AND t1.flag = 'OK'
|
|
|
- <if test="websitId != null and websitId != ''">
|
|
|
- AND t1.websit_id = #{websitId}
|
|
|
- </if>
|
|
|
- <if test="websitId == null and websits != null and websits.size > 0">
|
|
|
+ <if test="websits != null and websits.size > 0">
|
|
|
AND t1.websit_id IN
|
|
|
<foreach item="item" index="index" collection="websits" open="(" separator=","
|
|
|
close=")">
|
|
@@ -1307,10 +1301,7 @@
|
|
|
<where>
|
|
|
a.goods_id = b.goods_id
|
|
|
AND a.company_wechat_id = #{companyWechatId}
|
|
|
- <if test="websitId != null and websitId != ''">
|
|
|
- AND a.websit_id = #{websitId}
|
|
|
- </if>
|
|
|
- <if test="websitId == null and websits != null and websits.size > 0">
|
|
|
+ <if test="websits != null and websits.size > 0">
|
|
|
AND a.websit_id IN
|
|
|
<foreach item="item" index="index" collection="websits" open="(" separator=","
|
|
|
close=")">
|