| | |
| | | select count(*) from lf.sys_meta |
| | | <where> |
| | | 1 = 1 |
| | | <if test="depid != null"> |
| | | and depid = ANY(fn_rec_array(#{depid}, 'dep')) |
| | | </if> |
| | | <if test="dirid != null"> |
| | | and dirid = #{dirid} |
| | | and dirid = ANY(fn_rec_array(#{dirid}, 'dir')) |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | |
| | | from lf.sys_meta a |
| | | <where> |
| | | 1 = 1 |
| | | <if test="depid != null"> |
| | | and depid = ANY(fn_rec_array(#{depid},'dep')) |
| | | </if> |
| | | <if test="dirid != null"> |
| | | and dirid = #{dirid} |
| | | and dirid = ANY(fn_rec_array(#{dirid},'dir')) |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |