select t1.id as customerId,t1.`name` as customerName, t1.parent_id as companyId, t3.entity_id as shopId, t4.`name` as shopName
select t1.id as customerId,t1.`name` as customerName, t1.parent_id as companyId, t3.entity_id as shopId, ifnull(t4.`abbreviation`,t4.`name`) as shopName
from privilage_organizational t1, privilage_organizational_domain t2, privilage_domain_entity t3, poi_store t4