你的这个问题啊 去掉允许为空的√,就可以去掉不选。至于全部,在sql中处理一下,把所有销售组织的数据汇总一下 并用
您之前写好的sql
select T.* from
(
select 销售组织,时间,sum(汇总字段)from table
where 月份 between '${time1}' and '${tem2}'
group by 销售组织,时间
union all
select "全部" as 销售组织,时间,sum(汇总字段) from table
where 月份 between '${time1}' and '${tem2}'
group by "全部" ,时间
) T
where T.销售组织='${code}';
希望可以解决您的问题
