帮忙写个示例
大致这样
${if(sql("xxx","select 1 from table where userid='"+userid+"'",1,1)=1,"and 字段1='xx' and 字段2='yy'","and 字段3='xx'")}
没听懂