Commit 46dacf79 by zhouhaibao

fix(excel): 修复百分比字符串转换器数值处理问题

- 修改了NumberValue的处理逻辑,添加了乘以10的计算
- 确保数值类型的数据能够正确转换为百分比格式
- 保持了原有字符串值处理逻辑不变
1 parent ea63e454
......@@ -33,7 +33,7 @@ public class PercentStringConverter implements Converter<BigDecimal> {
if (cellData.getStringValue() != null) {
stringValue = cellData.getStringValue().trim();
} else if (cellData.getNumberValue() != null) {
return cellData.getNumberValue();
return cellData.getNumberValue().multiply(new BigDecimal("100"));
}
if (StringUtils.isEmpty(stringValue)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!