可以在数据集里实现,定义两个参数 $LargeArea,$Subsidiary,控件值默认为空,SQL中加入if(len($LargeArea)==0,"","LargeArea = '所选大区'")
if(len($Subsidiary)==0,"","Subsidiary= '所选子公司"),
或
SELECT
if(len($LargeArea)==0,"","LargeArea")",
if(len($Subsidiary)==0,"","Subsidiary")",
SUM(task),sum(sales volume)
...
GROUP BY
if(len($LargeArea)==0,"","LargeArea")",
if(len($Subsidiary)==0,"","Subsidiary")"