点全部展示全部数据,单选则展示对应店铺数据,该怎么实现啊
SQL 参考这个写法
select ${if(区域参数=="全部","区域字段 as aa,","店铺字段 as aa,")}
sum(a) as bb
from tab
where 1=1
${if(区域参数=="全部",""," and 区域 = '"+区域参数+"'")}
group by ${if(区域参数=="全部","区域字段","店铺字段")}
决策报表实现控件联动并查询 https://help.fanruan.com/finereport/doc-view-2085.html
=========
普通cpt参考
JS实现使用填报页面的控件查询 https://help.fanruan.com/finereport/doc-view-1828.html
下拉复选框--https://help.fanruan.com/finereport/doc-view-1285.html