依条件查询本身记录和第一层子记录
第一种方法:
eg:
int a[] = new int[]{1,2};
select * from tepd.functions where functionsid in (a) or topfuncid in (a)
第二种:
int b =6;
select * from tepd.functions a where a.functionsid=b union select * from tepd.functions b where b.topfuncid=b