韩文(提问者)select a.*,b.培训日期 from(select * from 黑点人员 where left(黑点月份,7) = \'${month}\' and if(\'${cBcity}\'=\'\',1=1,地市=\'${cBcity}\') and if(\'${cBcounty}\'=\'\',1=1,区县=\'${cBcounty}\'))a
left join
(select * from 黑点人员填报 where left(黑点月份,7) = \'${month}\' and if(\'${cBcity}\'=\'\',1=1,地市=\'${cBcity}\') and if(\'${cBcounty}\'=\'\',1=1,区县=\'${cBcounty}\'))b on a.地市=b.地市 and a.区县=b.区县 and a.账号=b.账号