工单附加字段
--查询工单 附加字段
select CUSTOM_FIELD_DEF.*,
COALESCE((SELECT FIELD_LABEL
FROM CUSTOM_FIELD_DEF_T TABLE_T
WHERE CUSTOM_FIELD_DEF.HANDLE =
TABLE_T.CUSTOM_FIELD_DEF_BO
AND TABLE_T.LOCALE = 'zh'),
(SELECT FIELD_LABEL
FROM CUSTOM_FIELD_DEF_T TABLE_T
WHERE CUSTOM_FIELD_DEF.HANDLE = TABLE_T.CUSTOM_FIELD_DEF_BO
AND TABLE_T.LOCALE = 'en'),
(SELECT FIELD_LABEL
FROM CUSTOM_FIELD_DEF_T TABLE_T
WHERE CUSTOM_FIELD_DEF.HANDLE = TABLE_T.CUSTOM_FIELD_DEF_BO
AND ROWNUM = 1)) AS FIELD_LABEL
from CUSTOM_FIELD_DEF
where SITE = '1130'
and TABLE_NAME = 'SHOP_ORDER'
--工单所有自定义字段值
SELECT x.*, x.ROWID
FROM WIPDBA.CUSTOM_FIELDS x
WHERE x.HANDLE = 'ShopOrderBO:1220,191201239520'