Jasper reports Jasper报告中来自Java的passorderby子句
我正在使用最新版本的Jasper soft studio来设计Jasper报告。我想根据Java中的某些标准将ORDERBY子句传递给jasper report。您能否指导如何在报表查询中从Java附加包含ORDERBY子句的参数 质疑 根据前端字段选择,Order by子句应为以下两项中的一项: 按c.科目名称、g.凭证日期、g.凭证编号、d.sr编号订购 按c.借方+c.贷方说明订购Jasper reports Jasper报告中来自Java的passorderby子句,jasper-reports,Jasper Reports,我正在使用最新版本的Jasper soft studio来设计Jasper报告。我想根据Java中的某些标准将ORDERBY子句传递给jasper report。您能否指导如何在报表查询中从Java附加包含ORDERBY子句的参数 质疑 根据前端字段选择,Order by子句应为以下两项中的一项: 按c.科目名称、g.凭证日期、g.凭证编号、d.sr编号订购 按c.借方+c.贷方说明订购 可能重复的,谢谢您的帮助。欢迎您: with tmp as ( select d.gl_code
可能重复的,谢谢您的帮助。欢迎您:
with tmp as (
select d.gl_code, nvl(sum(d.debit),0)- nvl(sum(d.credit),0) as simple
from gl_forms g,gl_voucher_detail d,financial_year f
where g.voucher_no = d.voucher_no
and f.fid = $P{P_FID}
and g.voucher_date >= to_date('01-07-'+f.start_year,'dd-MM-yyyy') and g.voucher_date < $P{P_FROM}
and g.post=1
group by d.gl_code)
select g.voucher_no,
g.voucher_date,
g.voucher_type,
g.remarks remarks,
d.sr_no,
c.account_name,
d.debit,
d.credit,
d.narration narration,
c.account_code,
c.account_name || ' - ' || c.account_code Account,
(select name from company) name,
nvl((o.debit-o.credit),0) + nvl(tmp.simple,0) opening
from gl_voucher_detail d
join gl_forms g
on g.voucher_no = d.voucher_no
and g.post=1
and g.voucher_date between $P{P_FROM} and $P{P_TO}
left outer join opening_balances o
on d.gl_code = o.account_code
and o.fid = $P{P_FID}
right outer join chart_of_account c
on c.account_code = d.gl_code
left outer join tmp
on c.account_code = tmp.gl_code
where c.account_level=4
and c.active=1
and c.account_code = CASEWHEN($P{P_ACCOUNT}='%',c.account_code,$P{P_ACCOUNT})