| | |
| | | , bu.real_name as userName |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN ywxt.sg_device d ON pro.id = d.program_id |
| | | Left JOIN ywxt.sg_gx_config sgc ON d.device_type = sgc.gx_device_type |
| | | inner JOIN ywxt.sg_device d ON pro.id = d.program_id |
| | | Left JOIN ywxt.sg_gx_config sgc ON d.device_type = sgc.gx_device_type or sgc.gx_device_type in ('sgzb','sgys') |
| | | left join ywxt.blade_role ro on ro.id = sgc.role_id |
| | | left join ywxt.sg_project_person_config sppc on sgc.role_id = sppc.rold_id and sppc.program_id = pro.id |
| | | left join ywxt.blade_user bu on sppc.user_id = bu.id |