我org.beanio
用来解析固定长度的记录。
不幸的是,有些price
价格的整数部分和小数部分分布到不同的位置。
问题:是否可以将两个@Field
s 定义为一个值,并提取BigDecimal
通孔的不同部分format
?
@Field(at = 20, length = 6, format = ...<the integer part>)
@Field(at = 100, length = 2, format = ...<the fractional part>)
private BigDecimal price;