<if test="shopManageUserIds != null and shopManageUserIds.size > 0">
AND rpd.manage_user_id @> ARRAY
<foreach collection="shopManageUserIds" item="id" open="[" separator="," close="]">
#{id}
</foreach>::bigint[]
</if>
and lm."manageUserId" <![CDATA[&&]]> ARRAY[
<foreach collection="creatorIds" item="item" separator=",">
#{item}
</foreach>]::bigint[]
and (marketplace_id, seller_id, asin, to_char(rpt_date, 'yyyy-mm-dd')) in
(
<foreach collection="inputs" item="input" separator=",">
(#{input.marketplaceId}, #{input.sellerId}, #{input.asin}, #{input.rptDateText})
</foreach>
)
最后
以上就是震动小甜瓜最近收集整理的关于mybatis 中 使用 查询条件为数组 入参是集合查询方式 若是SQL脚本的话 条件=any(数组)的全部内容,更多相关mybatis内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复