<if test="ids !='' and ids != null">
and a.tree_names REGEXP #{ids}
</if>
参数ids:"ni|hao|wo|shi|ni|ge",等价于 a.tree_names like '%参数中的任意一个%'
<if test="ids !='' and ids != null">
and a.tree_names REGEXP #{ids}
</if>
参数ids:"ni|hao|wo|shi|ni|ge",等价于 a.tree_names like '%参数中的任意一个%'