select * from db_platform_report.ads_kfc_service_dim_kfc_bsc_dp_user_day
where 1=1
${if(orgLevel=='1',"",if(orgLevel='2', "and NA_dept_id ='"+deptId+"'"))}
缺少一个既不等于1也不等于2的情况
${if(orgLevel=='1',"",if(orgLevel=='2', "and NA_dept_id ='"+deptId+"'",""))}
少一个条件,if是有两个返回结果
${if(orgLevel=='1',"",if(orgLevel='2', "and NA_dept_id ='"+deptId+"'",""))}