Forráskód Böngészése

解决商品查询bug

xie.kaifeng 3 hónapja
szülő
commit
782afc7599

+ 4 - 4
mtp3-century/src/main/resources/mapper/GoodsMapper.xml

@@ -76,8 +76,8 @@
         left join goodsex gex on g.goodsid = gex.goodsid
         <where>
             1 = 1
-            <if test="split!=null and split.length>0">
-                <foreach collection="split" item="item" open="and g.goodsstatus in (" close=")"
+            <if test="vo.split!=null and vo.split.length>0">
+                <foreach collection="vo.split" item="item" open="and g.goodsstatus in (" close=")"
                          separator=",">
                     ${item}
                 </foreach>
@@ -100,8 +100,8 @@
             <if test="vo.yyareauserid != null and vo.yyareauserid !=''">
                 and g.goodsid in(select t.goodsid from AreaGoodsConfig t where t.userid= #{vo.yyareauserid})
             </if>
-            <if test="tradeModeSplit!=null and tradeModeSplit.length>0">
-                <foreach collection="tradeModeSplit" item="item" open=" and m.trademode not in (" close=")"
+            <if test="vo.tradeModeSplit!=null and vo.tradeModeSplit.length>0">
+                <foreach collection="vo.tradeModeSplit" item="item" open=" and m.trademode in (" close=")"
                          separator=",">
                     ${item}
                 </foreach>