Commit 6df578c4 by ghxdhr

修改修约计算方式

parent c74d0484
......@@ -295,7 +295,7 @@ public class SingleSheetMoreItemOperation implements Operation {
cell.setCellValue(afterPointRoundNum);
return false;
}
String substring = value.substring(point + roundNum + 1);
String substring = value.substring(point + roundNum + 2);
if (Integer.parseInt(substring) > 0) {
BigDecimal bigDecimal = new BigDecimal(afterPointRoundNum).add(new BigDecimal(valueMap.get(roundNum)));
cell.setCellValue(bigDecimal.toString());
......
......@@ -317,7 +317,7 @@ public class SingleSheetMoreOperation implements Operation {
cell.setCellValue(afterPointRoundNum);
return false;
}
String substring = value.substring(point + roundNum + 1);
String substring = value.substring(point + roundNum + 2);
if (Integer.parseInt(substring) > 0) {
BigDecimal bigDecimal = new BigDecimal(afterPointRoundNum).add(new BigDecimal(valueMap.get(roundNum)));
cell.setCellValue(bigDecimal.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment