版本:9.0 stable-2018.11.21.15.43.39.941问题: 1、如何实现点击饼状图不同区块,自动超链接到不同报表,而不用点击后再选择其中一个超链接,然后才连接到其他报表? 2、如何自动加载初始化范围数据而不用点击在搜索? 3、如何设置默认日期为当前年的起始日期和开始日期?select
case
when p.importance_ =0 then '不重要'
when p.importance_ =1 then '一般'
when p.importance_ =2 then '重要'
when p.importance_ =3 then '非常重要'
else '未填写'
end as 重要度,
count(*) 数量
from project_ p
where 1=1 ${if(len(起始日期)==0,"","and p.createDate >'"+起始日期+"'")} ${if(len(结束日期)==0,"","and p.createDate <'"+结束日期+"'")}
group by p.importance_;谢谢。