大佬们这个怎么用FR的书写格式获取到type这个参数?
${if(p1 = "接收","
SELECT
SUM(
CASE
WHEN '"+tax+"' = '税收' THEN tax_in
WHEN '"+tax+"' = '不含税收' THEN net_wo
END
) money
FROM
***
WHERE
data_year = '"+ year +"'"+ if(type ='true',"and type = '3'","and type = '1'")+""," ")}
这个${}里面就不要${}了,需要拼接
拷贝下语句,帮你修改吧
=========
${if(p1="接收"," select
sum(
case
when '"+tax+"'='税收' then tax_in
when '"+tax+"'='不含税收' then net_wo
end ) money
from biao
where data_year='" +year+"'"+
if(type='true'," and type='3'"," and type='1'"),
"")}