下面sql语句是MySQL写法
select count(*) from sys_dept where status = 0 and del_flag = '0' and
find_in_set(#{deptId}, ancestors)
在Oracle环境下运行则会出现这样的错误
ORA-00920:无效的关系运算符
在Oracle中的正确写法为
select count(*) from sys_dept where status = 0 and del_flag = '0'
and instr(#{deptId}, ancestors)>0