liuyier commented on issue #648:
URL: https://github.com/apache/fesod/issues/648#issuecomment-3420244551
> 请尝试修改这个自定义转换器,重写 `supportExcelTypeKey` 方法并返回 null。
>
> public class BigDecimalFormatByConfigConverter extends
BigDecimalStringConverter {
>
> @Override
> public CellDataTypeEnum supportExcelTypeKey() {
> return null;
> }
>
> // ...
> }
> `ExcelTest ` 实体类
>
> @ExcelProperty(value = "数量")
> private BigDecimal number;
> 仅供参考,据我了解,这可能会影响到所有使用 BigDecimal 类型的属性。请根据您的实际使用场景进行彻底的测试。
我刚测试了下,重写supportExcelTypeKey方法后,确实是生效了。
这是什么原因,我在1.2.0版本上没有重写这个方法可以正常使用。
但升到了1.3.0还需要重写supportExcelTypeKey方法并返回 return null ?啊这。。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]