and eh.tree_id in <foreach item="treeId" index="index" collection="condition.treeIds" open="(" separator="," close=")"> <if test="(index % 999) == 998"> null ) OR eh.tree_id in(</if> #{treeId} </foreach>
使用 每超过997条添加一个or 拼接一个in
and eh.tree_id in <foreach item="treeId" index="index" collection="condition.treeIds" open="(" separator="," close=")"> <if test="(index % 999) == 998"> null ) OR eh.tree_id in(</if> #{treeId} </foreach>
使用 每超过997条添加一个or 拼接一个in
提示:NULL为占位符号(必须有,否则会报缺失表达式),可根据自己实际情况替换为任意字符