|
|
@@ -51,10 +51,17 @@
|
|
|
and kb.create_time <= #{wantBuyReq.endCreateTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="wantBuyReq.tradings != null and wantBuyReq.tradings.size() > 0">
|
|
|
- and kt.trading in
|
|
|
- <foreach collection="wantBuyReq.tradings" item="item" open="(" close=")" separator=",">
|
|
|
- #{item,jdbcType=VARCHAR}
|
|
|
+ <!--私用and条件-->
|
|
|
+<!-- and kt.trading in-->
|
|
|
+<!-- <foreach collection="wantBuyReq.tradings" item="item" open="(" close=")" separator=",">-->
|
|
|
+<!-- #{item,jdbcType=VARCHAR}-->
|
|
|
+<!-- </foreach>-->
|
|
|
+ <!-- 使用 AND 条件 -->
|
|
|
+ and (
|
|
|
+ <foreach collection="wantBuyReq.tradings" item="item" separator=" and ">
|
|
|
+ kt.trading = #{item,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="wantBuyReq.wantBuyIds != null and wantBuyReq.wantBuyIds.size() > 0">
|
|
|
and kb.id in
|