<if test="code != null and code != ''">
and c.cd_code in
<foreach item="item" index="index" collection="code.split(',')" open="(" separator="," close=")">
'${item}'
</foreach>
</if>
mybatis sql 解决逗号分割问题
最新推荐文章于 2024-07-17 15:20:26 发布