Explorar o código

求购大厅列表支付方式筛选

ltt %!s(int64=2) %!d(string=hai) anos
pai
achega
42956445f9

+ 12 - 4
sckw-modules/sckw-order/src/main/resources/mapper/KwoWantBuyMapper.xml

@@ -57,11 +57,19 @@
 <!--                #{item,jdbcType=VARCHAR}-->
 <!--            </foreach>-->
             <!-- 使用 AND 条件 -->
-            and (
-            <foreach collection="wantBuyReq.tradings" item="item" separator=" and ">
-                kt.trading = #{item,jdbcType=VARCHAR}
+<!--            and (-->
+<!--            <foreach collection="wantBuyReq.tradings" item="item" separator=" and ">-->
+<!--                kt.trading = #{item,jdbcType=VARCHAR}-->
+<!--            </foreach>-->
+<!--            )-->
+            <foreach collection="wantBuyReq.tradings" item="value" separator="">
+                AND EXISTS (
+                SELECT 1
+                FROM kwo_want_buy_trading kt2
+                WHERE kt2.want_buy_id = kb.id
+                AND kt2.trading = #{value}
+                )
             </foreach>
-            )
         </if>
         <if test="wantBuyReq.wantBuyIds != null and wantBuyReq.wantBuyIds.size() > 0">
             and kb.id in