youseries / ureport

UReport2 is a high-performance pure Java report engine based on Spring architecture, where complex Chinese-style statements and reports can be prepared by iterating over cells.
Apache License 2.0
2.02k stars 834 forks source link

表达式正确,报出异常com.bstek.ureport.exception.ConvertException: Can not convert [18000, 18000] to BigDecimal. #346

Closed bigliangcong closed 6 years ago

bigliangcong commented 6 years ago

为了您的问题能得到及时准确解答,请认真填写下面各个选项,感谢您的配合。

youseries commented 6 years ago

这是因为当前H11取到的值有两个,这两个值默认会以逗号分隔的字符串返回,所以导致转换为数字时报错。 究其原因还是要理解父格的概念,确保取到的H11单元格的值为一个,这样就对了。

bigliangcong commented 6 years ago

嗯嗯 好的

发件人:高杰 notifications@github.com 发送时间:2018年8月3日(星期五) 11:00 收件人:youseries/ureport ureport@noreply.github.com 抄 送:梁聪 liangcong@z-try.com; Author author@noreply.github.com 主 题:Re: [youseries/ureport] 表达式正确,报出异常com.bstek.ureport.exception.ConvertException: Can not convert [18000, 18000] to BigDecimal. (#346)

这是因为当前H11取到的值有两个,这两个值默认会以逗号分隔的字符串返回,所以导致转换为数字时报错。 究其原因还是要理解父格的概念,确保取到的H11单元格的值为一个,这样就对了。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.