select tsl.person_id,tsl.person_name,tsl.mz,tdm.mz_name,tsl.xb,tdx.xb_name,tsl.bureau_id,
       tbo.org_name as bureau_name from t_sys_loginperson as tsl
    inner join t_dm_mz as tdm on tsl.mz=tdm.mz_id
    inner join t_dm_xb as tdx on tsl.xb=tdx.xb_id
    inner join t_base_organization as tbo on tsl.bureau_id=tbo.org_id;


select tbc.class_id,tbc.class_name,tbo.bureau_id,tbo.org_name from t_base_class as tbc inner join t_base_organization as tbo on
    tbc.bureau_id=tbo.org_id;