数据集select distinct ooag004 from ooag_t
where ooag001='${fr_username}'
报表报错 : java.lang.nullpointerexception
应该是没有取到fr_username的值引起
使用下面语句可以避免
select distinct ooag004 from ooag_t where 1=1
${if(len(fr_username)==0,"","ooag001='"+fr_username+"'")}
这是9.0的
10.0要用$fine_username
数据集中带入参数验证一下有没有查出数据