Commit 6264aa6d by zhouhaibao

fix(pe-analysis): 修正渗透率计算精度问题

- 将渗透率计算的小数位数从4位调整为2位
- 保持渗透率计算公式的核心逻辑不变
- 确保计算结果的精度符合业务需求
1 parent 88b7a2a0
......@@ -2786,7 +2786,7 @@ public class BusinessSceneAnalysisService {
// 渗透率 = 品类成交数 / 交付数 * 100(保留4位小数)
BigDecimal rate = dealCount.multiply(BigDecimal.valueOf(100))
.divide(deliveryCount, 4, RoundingMode.DOWN);
.divide(deliveryCount, 2, RoundingMode.DOWN);
consumer.accept(rate);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!