SELECT * FROM sales_basic
WHERE 1=1
${if(fine_username='admin',"and "+a+" in('江苏','浙江')",if(fine_username='jssale'," and "+a+"='江苏'","and "+a+"='浙江'"))}
and 地区 in('${a}')
and 销售员 in('${b}')
SELECT * FROM sales_basic
WHERE 1=1
${if(fine_username='admin' && OR(a='江苏',a='浙江'),"",
if(fine_username='jssale',if(OR(a='江苏',a='浙江'),""," AND 0=1") )
)}
and 地区 in('${a}')
and 销售员 in('${b}')