白名单:数据
id , g_id,sys_id
1,2,3
1,2,4
黑名单:数据
id , g_id,sys_id
b,2,3
结果
1,2,4
select t1.* from sys_baimingdan t1 where not exists (select 1 from sys_heimingdan t2 where t1.sys_id = t2.sys_id and t1.g_ID = t2.g_ID);