select id primaryKey
from modeTreeField
where ','|| allSuperFieldId||',' like #{modeType} and nvl(isdelete,0)!=1
select id primaryKey
from modeTreeField
where ','+allSuperFieldId+',' like #{modeType} and isnull(isdelete,0)!=1
select id primaryKey
from modeTreeField
where concat(',',allSuperFieldId,',') like #{modeType} and ifnull(isdelete,0)!=1
select t.id
from modeTreeField t
where ','|| t.allSuperFieldId||',' like #{appIdSql} or t.id = #{appId}
select t.id
from modeTreeField t
where ','+t.allSuperFieldId+',' like #{appIdSql} or t.id = #{appId}
select t.id
from modeTreeField
where concat(',',t.allSuperFieldId,',') like #{appIdSql} or t.id = #{appId}
select count(id) count
from modeinfo
where 1=1
and MODETYPE in ( )
and (ISDELETE is null or ISDELETE = '0')
select count(id) count
from workflow_bill a
where exists (select 1 from modeinfo b where a.id = b.formid and b.modetype in ( ))
or EXISTS (select 1 from appforminfo c where a.id = c.formid and c.appid in ( ))
or exists (select 1 from ModeFormExtend d where d.formid = a.id and d.appid in ( ))
select count(id) count
from mode_customsearch a
where exists (select 1 from modeinfo b where a.modeid = b.id and b.modetype in ( ))
or a.appid in ( )
select count(id) count
from mode_custombrowser a
where exists (select 1 from modeinfo b where a.modeid = b.id and b.modetype in ( ))
or a.appid in ( )
select count(id) count
from mode_customtree a
where a.appid in ( )