查询事件名称事件类型和分类
select NAME,
AE_TYPE,
(select LABEL
from sys_dict t1
where type = 'ae_type'
and t1.value = a.AE_TYPE) as "事件类型",
AE_CLASS,
(select LABEL
from sys_dict d2
where type = 'ae_class'
and d2.value = a.ae_class) as "事件分类"
from ae_sys_aename a
AE_TYPE,
(select LABEL
from sys_dict t1
where type = 'ae_type'
and t1.value = a.AE_TYPE) as "事件类型",
AE_CLASS,
(select LABEL
from sys_dict d2
where type = 'ae_class'
and d2.value = a.ae_class) as "事件分类"
from ae_sys_aename a