<if test="params.parentUuidList != null and params.parentUuidList.size > 0 ">
AND(
<foreach collection="params.parentUuidList" index="index" item="item" open="" separator="or" close="">
FIND_IN_SET(#{item},parent_uuid)
</foreach>
)
</if>
Mybatis中foreach遍历加or判断,使用separator
最新推荐文章于 2024-08-01 15:05:06 发布