浏览代码

内审报告数据模板导出送审价、审定价格式调整

user5 1 年之前
父节点
当前提交
0805171f77

+ 10 - 2
src/main/java/com/jeeplus/modules/ruralprojectrecords/service/RuralProjectMessageElectronicSealService.java

@@ -3110,13 +3110,21 @@ public class RuralProjectMessageElectronicSealService extends CrudService<RuralP
             }
             //送审金额
             if(StringUtils.isNotBlank(projectReportSignatureInfo.getSubmitFee())){
-                data.put("submitFee",projectReportSignatureInfo.getSubmitFee());
+                BigDecimal submitFee=new BigDecimal(projectReportSignatureInfo.getSubmitFee());
+                // 不足两位小数补0
+                DecimalFormat decimalFormat = new DecimalFormat("0.00#");
+                String strVal = decimalFormat.format(submitFee);
+                data.put("submitFee",strVal);
             }else{
                 data.put("submitFee","");
             }
             //审定金额
             if(StringUtils.isNotBlank(projectReportSignatureInfo.getAuthorizeFee())){
-                data.put("authorizeFee",projectReportSignatureInfo.getAuthorizeFee());
+                BigDecimal authorizeFee=new BigDecimal(projectReportSignatureInfo.getAuthorizeFee());
+                // 不足两位小数补0
+                DecimalFormat decimalFormat = new DecimalFormat("0.00#");
+                String strVal = decimalFormat.format(authorizeFee);
+                data.put("authorizeFee",strVal);
             }else{
                 data.put("authorizeFee","");
             }