finereport 判断 结合sql 的join
觉得sql语句很灵活不尽可以left join ,right join ,inner join 子查询,还可以在on后面跟finereport 的语句判断
left join (select * from a left join b on a.aa=b.bb where a.aaa>1)
on
${if(len(user_tree)==0,"","H.AREA LIKE CONCAT(getDepartmentIdByUserName('${username}'),'%')")}
可以这样用
网友评论