where id in(select distinct(userid) from Vw_User_Permission where id in (SELECT id FROM SYS_PERMISSION_NEW WHERE TYPE='B' AND LENGTH(id)>=7 and name like '%审%'))
where 1=1
and scbz='0' and username != 'admin'
<iftest="type !=null"> and MODULECODE = #{type}</if>
<iftest="trueName !=null"> and true_name like '%'||#{trueName}||'%'</if>
<iftest="policemanid !=null"> and policemanid like '%'||#{policemanid}||'%'</if>
<iftest="telephone !=null"> and telephone like '%'||#{telephone}||'%'</if>
<iftest="unitcode !=null"> and UNITCODE like '%'||#{unitcode}||'%'</if>