20241223 更新
1.更新需求文档
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
+18
-2
@@ -269,8 +269,6 @@ DESC LIMIT 1;
|
|||||||
|
|
||||||
通过在远接口添加参数解决
|
通过在远接口添加参数解决
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 20241223-1 鉴定事项确认书需要委托单位打印,也就是委托单位需要在审核完成并委托送件后,同时能够打印委托书与确认书。
|
## 20241223-1 鉴定事项确认书需要委托单位打印,也就是委托单位需要在审核完成并委托送件后,同时能够打印委托书与确认书。
|
||||||
|
|
||||||
### 1 主要问题
|
### 1 主要问题
|
||||||
@@ -284,3 +282,21 @@ DESC LIMIT 1;
|
|||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 20241223-2 填报委托时的页面,还是需要在检材重量这一块满足他们的填写需求(100 以下保留两位小数,100以上保留一位小数)。
|
||||||
|
|
||||||
|
### 1 解决方案
|
||||||
|
|
||||||
|
添加自定义序列化器,返回给前端数据时格式化BigDecimal的值,下面是序列化器的实现和使用:
|
||||||
|
|
||||||
|
自定义序列化器
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
用法
|
||||||
|
|
||||||
|

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