在一个包含数万个Java文件的大型项目中,有几个Java类,开发人员可以在这些类中将字符串作为参数传递给我实现的构造函数类
public byte[] getProductReport(List<String> products, Date from, Date to) {
// ... do some stuff before...
List<ReportParameterDto> reportParameters = new ArrayList<>();
reportParameters.add(new ReportParame
我正在使用iReport开发包含子报表的报表,并且在主报表中传递两个外部参数:CurrWeek和CurrYear参数。我正在将相同的参数传递给子报表。
在这两个报告中,我都将参数声明为BigDecimal。当我运行报告时,它显示如下所示的错误:
Error filling print...
net.sf.jasperreports.engine.JRException:
Incompatible java.math.BigDecimal value assigned to parameter
CurrWeek in the WeeklyReportFo