转换的SQL
${IF(LEN(ProfitCode)=0,"",' AND "CompanyCode" IN ("'+ProfitCode+'")')}
字段名称需要双引号"name"过滤的值需要单引号'name'
改成
and "companycode" in (\''+Profitcode+'\')')
sql 改成 in ('+ProfitCode+')