SELECT
a.id,
a.company_id,
d.company_name,
a.type,
b.dictdata_value,
a.`name`,
a.url,
a.`status`,
c.dictdata_value
FROM
project_url a
LEFT JOIN dictionary b
ON a.type = b.dict_value
AND a.company_id = b.company_id
and b.dict_name = 'type'
LEFT JOIN dictionary c
ON a.`status` = c.dict_value
AND a.company_id = c.company_id
and c.dict_name = 'status'
LEFT JOIN company d
ON a.company_id=d.id;