<where>
and a.id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
<if test="(index % 999) == 998"> NULL ) OR a.id IN (</if>#{item,jdbcType=NVARCHAR}
</foreach>
</where>
mybatis循环超过1000条报错的处理办法
阅读 154
2022-08-29
<where>
and a.id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
<if test="(index % 999) == 998"> NULL ) OR a.id IN (</if>#{item,jdbcType=NVARCHAR}
</foreach>
</where>
相关推荐
精彩评论(0)