${if(FIND("领导",fr_authority,0)>0,'and 1=2',"and OPRJ.U_Manager_Leader_Login_Name='"+fr_username+"'")}
请问如何在 if 和 find 里再嵌套 or ?
嵌套的内容是:如果角色中包含“领导”或“财务”,就拼接 and 1=2,否则就 and OPRJ.U_Manager_Leader_Login_Name='"+fr_username+"'"
(就是多了个“财务”)
${if(or(FIND("领导",fr_authority,0)>0,FIND("财务",fr_authority,0)>0),'and 1=2',"and OPRJ.U_Manager_Leader_Login_Name='"+fr_username+"'")}