Browse Source

no message

FengChaoYu 2 months ago
parent
commit
9a08b10e2c
1 changed files with 3 additions and 12 deletions
  1. 3 12
      mall-server-api/src/main/resources/mapper/MaterialMapper.xml

+ 3 - 12
mall-server-api/src/main/resources/mapper/MaterialMapper.xml

@@ -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=")">