Commit ea63e454 by zhouhaibao

fix(excel): 修复百分比字符串转换器计算逻辑

- 修改BigDecimal数值计算方式,先转换为字符串再乘以100
- 确保百分比数值正确放大100倍进行处理
1 parent b4b7ee57
...@@ -46,7 +46,7 @@ public class PercentStringConverter implements Converter<BigDecimal> { ...@@ -46,7 +46,7 @@ public class PercentStringConverter implements Converter<BigDecimal> {
return null; return null;
} }
try { try {
BigDecimal value = new BigDecimal(numStr); BigDecimal value = new BigDecimal(String.valueOf(numStr)).multiply(new BigDecimal("100"));
return value; return value;
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
return null; return null;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!