select * from Sys_CustomerHui a inner join
Sys_User_CucFuncRight b on a.Customerid= b.customerid
where userno='999'
and isnull(a.id,'') like '%%'
and isnull(a.Customerid,'') like '%%'
and isnull(a.CustomerNo,'') like '%%'
and isnull(a.HuiType,'') like '%%'