case when Account_invoice_CGFP.orderAmountOld + Account_invoice_CGFP.orderAmountTax - Account_invoice_CGFP.clearedAmount = 0 AND Account_invoice_CGFP.clearedAmount = 0 then '已核销' when Account_invoice_CGFP.clearedAmount = 0 then '未核销' else '部分核销' end
复制代码
完成后点击“确定”后,编辑器会在这段代码的首尾自动添加“(”和“)”,变成
(case when Account_invoice_CGFP.orderAmountOld + Account_invoice_CGFP.orderAmountTax - Account_invoice_CGFP.clearedAmount = 0 AND Account_invoice_CGFP.clearedAmount = 0 then '已核销' when Account_invoice_CGFP.clearedAmount = 0 then '未核销' else '部分核销' end)