CREATE OR REPLACE FUNCTION getDict(dict VARCHAR2,dict_code VARCHAR2)
RETURN VARCHAR2 IS
dict_name F_DATADICTIONARY.DATAVALUE%type;
BEGIN
SELECT DATAVALUE into dict_name
FROM F_DATADICTIONARY
WHERE CATALOGCODE = dict and DATACODE=dict_code;
RETURN dict_name;
END ;
decode(t.jgsy_chaojg, '0','空机构','1','正常', '2','超机构',t.jgsy_chaojg)jgsyChaojgText