直接上SQL
SELECT
"orderCode" AS "订单编码",
CASE
WHEN TO_NUMBER("amount", '9999999999D9999') < 0.01 THEN '0'
ELSE TRIM(TRAILING '.' FROM TRIM(TRAILING '0' FROM TO_CHAR(TO_NUMBER("amount", '9999999999D9999'), 'FM9999999990D99')))
END AS "金额"
FROM
handlingcharges_header;
查询出来结果