${if(qx=='组长',"and ORGANIZE_YN='Y' , DEPARTMENT='"+b2+"'","")}
比如这个if
我这么写的 报sql没成功结束
${if(qx=='组长',"and ORGANIZE_YN='"+Y+"' and DEPARTMENT='"+b2+"'","")}
可以的啊
你可以继续拼接
你想实现什么业务逻辑?
那你得if嵌套