mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-23 22:04:32 +08:00
hotfix
This commit is contained in:
parent
5e31f49175
commit
79f4828db5
1 changed files with 2 additions and 2 deletions
|
@ -381,8 +381,8 @@ public class EasyExcelGenerator extends SetUser {
|
|||
// 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 {
|
||||
|
|
Loading…
Reference in a new issue