过滤使用组织和单据类型

FUseOrgId='GetValue(FSALEORGID)'  AND  FClauseTypeId = (CASE  WHEN  'GetValue(FBillTypeID)' = '55a45f6010b04b' THEN 1 ELSE 4 END) 

原文地址:https://www.cnblogs.com/zouhuaxin/p/12890047.html