Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Nov 4, 2024
1 parent 5e31f49 commit 79f4828
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ protected Map<String, Object> buildData(Record record, Map<String, String> varsM
// Keep Type
} else if (dt == DisplayType.DECIMAL) {
String format = easyField.getExtraAttr(EasyFieldConfigProps.DECIMAL_FORMAT);
int scale = format.split("\\.").length == 1 ? 0
: StringUtils.isBlank(format) ? 2 : format.split("\\.")[1].length();
int scale = StringUtils.isBlank(format) ? 2 :
format.split("\\.").length == 1 ? 0 : format.split("\\.")[1].length();
// Keep Type
fieldValue = ((BigDecimal) fieldValue).setScale(scale, RoundingMode.HALF_UP);
} else {
Expand Down

0 comments on commit 79f4828

Please sign in to comment.