and 1=1 ${if( fine_username=="admin" , "", "and MASS_NO in ('" + ARRAY(replace(user1,",","','")) + "') " )}
类似与这种的判断
-----------
and 1=1 ${if( len(fine_username)== 0 , "", "and md in (select md from 权限表 where name = '"+fine_username+"' ) " )}
-------
and 1=1 ${if( len(fine_username)== 0 , "", "and md in (select md from 权限表 where name = '"+fine_username+"' ) and louceng in (select louceng from 权限表 where name = '"+fine_username+"' )" )}
这个的意思是 参数为空不生效,你可以把指定的人判断出来 fine_username = '张三'
------
and 1=1 ${if( fine_username == "张三" || fine_username == "李四" , "", "and md in (select md from 权限表 where name = '"+fine_username+"' ) and louceng in (select louceng from 权限表 where name = '"+fine_username+"' )" )}