筛选前
筛选后
*****
销量参数代码如下:
select * from (SELECT ufd.dykhjc AS 多元客户简称, SUM(ukp.jsr) AS 销量FROM uf_dykhb ufdGROUP BY ufd.dykhjc) as awhere 1=1 ${if(len(fh)=0,"",if(len(销量)=0,"","and 销量"+fh+销量))}
需求是,按照筛选正常显示,不符合的不显示
筛选器有问题,重新做了就好了
直接拿这个去数据库执行一下看看 什么结果
select *
from (SELECT ufd.dykhjc AS 多元客户简称,
SUM(ukp.jsr) AS 销量FROM uf_dykhb ufdGROUP BY ufd.dykhjc) as a
where 1 = 1
and 销量 >= 100000
select * from (SELECT ufd.dykhjc AS 多元客户简称, SUM(ukp.jsr) AS 销量FROM uf_dykhb ufdGROUP BY ufd.dykhjc) as awhere 1=1
${if(len(fh)=0,"",if(len(销量)=0,"","and 销量 '"+ fh + 销量+"'"))}
那你再做一个条件属性,销量=0的行高为0,不就看不到了?
你这个应该是多个数据集组成的表吧??