20241223 更新
1.更新需求文档
This commit is contained in:
@@ -23,7 +23,7 @@ public class DynamicBigDecimalSerializer extends JsonSerializer<BigDecimal> {
|
||||
DecimalFormat df = new DecimalFormat();
|
||||
df.setMinimumFractionDigits(scale); // 最小小数位数
|
||||
df.setMaximumFractionDigits(scale); // 最大小数位数
|
||||
df.setGroupingUsed(false); // 不使用千分位
|
||||
df.setGroupingUsed(false); // 不使用千分位,true 1000,000,000
|
||||
|
||||
gen.writeString(df.format(value)); // 输出为字符串
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user