<foreach item="item" index="index" collection="str.split(‘,‘)" open="(" separator="," close=")">#{item}</foreach>
mybatis:字符串转成数组拼接成SQL
原文:https://www.cnblogs.com/huiy/p/11320415.html