Browse Source

1.修复债权获取债权综合受偿比率的小数位数问题

GouGengquan 1 month ago
parent
commit
5999a29d6e

+ 5 - 2
biz-base/src/main/resources/application-local.yaml

@@ -66,8 +66,11 @@ oa-api-url: localhost:8088/api/
 
 file-net:
   # 基础配置
-  base-dir: /Users/wuwei/opt/temp/
+  base-dir: E:\productivity-platform-files\
   max-file-size: 102400
+  domain: http://doc.scdayou.com/dfs/productivity-platform
+  # 图片
+  image: /images/
   # 资产业务配置
   asset-template-report-path: assets\templates\report\
   asset-template-calculate-path: assets\templates\calculate\
@@ -76,7 +79,7 @@ file-net:
   house-guaranty-path: house/guaranty
   house-guaranty-template-path: house/guaranty/temp/
 
-posyspath:  /Users/wuwei/pageoffice
+posyspath:  D:\pageoffice
 
 
 map:

+ 1 - 1
service/src/main/java/com/dayou/service/impl/AssetsReportServiceImpl.java

@@ -653,7 +653,7 @@ public class AssetsReportServiceImpl extends ServiceImpl<AssetsReportMapper, Ass
         if (ObjectUtil.isNotNull(allSheetRowIndex)) {
             // 设置债权综合受偿比率
             double compositeRecoveryRatioDouble = Double.parseDouble(getCellValueByIndex(allSheetRowIndex, 13, fileNetConfig.getBaseDir() + calculateDoc.getDocUrl(), "汇总万元表"));
-            crReportFillBO.setCompositeRecoveryRatio(String.valueOf(compositeRecoveryRatioDouble * 100));
+            crReportFillBO.setCompositeRecoveryRatio(String.format("%.2f", compositeRecoveryRatioDouble * 100));
         }
 
         // 读取汇总万元表