当前位置: 代码迷 >> 综合 >> Mybatis使用in
  详细解决方案

Mybatis使用in

热度:54   发布时间:2024-03-07 02:55:04.0

 情况使用如下,做个记录

  <if test="null != pubSentimentNewsType and pubSentimentNewsType.size>0">and tnpf.pub_sentiment_news_type in<foreach collection="pubSentimentNewsType" item="item" open="(" separator="," close=")">#{item}</foreach></if>

 

  相关解决方案