我想将图像中显示的结果集分组为 JasperReports 中显示的报告格式。我正在使用 JasperReports 4.5。我用谷歌搜索了很多,但找不到满足我要求所需的 xml 标签。
查询结果集如下
select Design, ProfitPer, LabourChg, WgtY, WgtR, TypeName, SetName, ShapeName, Size,
Pieces, Weight, Price, sum(ProfitPer) Profit, round(sum(Cus2),3) Charges from
VDetaillist where design like 'B101E'
group by Design, ProfitPer, LabourChg, CompCost, WgtY, WgtR , TypeName, SetName, ShapeName, Size, Pieces, Weight, Price, SetCost, USS
其中 Dsign Profit 和 Charges 是总和值。Design (B101E),ProfitPer,LabourChg,WgtY,WgtR 是非重复值。而 TypeName(Dia,Emarld),Shpae(Round,Square) 和 Size(4,2.2 * 2.2), Pieces, Weight 是重复值。
非常感谢提前