From f0be60fb93e662bf6b8147b9f5f9c5a9b3e0e8b9 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 01 四月 2026 11:32:05 +0800
Subject: [PATCH] fix: 工序参数配置页面分页展示有误,添加分页

---
 src/main/java/com/ruoyi/home/service/impl/HomeServiceImpl.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/ruoyi/home/service/impl/HomeServiceImpl.java b/src/main/java/com/ruoyi/home/service/impl/HomeServiceImpl.java
index 97d7713..dc8e2c4 100644
--- a/src/main/java/com/ruoyi/home/service/impl/HomeServiceImpl.java
+++ b/src/main/java/com/ruoyi/home/service/impl/HomeServiceImpl.java
@@ -2529,14 +2529,18 @@
                 .map(item -> item.getPrice() != null ? new BigDecimal(item.getPrice().toString()) : BigDecimal.ZERO)
                 .reduce(BigDecimal.ZERO, BigDecimal::add);
         long finalPrice = sum.divide(new BigDecimal("1000"), 0, RoundingMode.HALF_UP).longValue();
-
         map.put("price", finalPrice);//鍗曚綅w
         //鎬诲彂璐у崟
         map.put("delivery", (long) salesDeliveries.size());
-        //鎬婚攢鍞尯?
+        //鎬婚攢鍞柟鏁�
+        BigDecimal volume = salesDeliveries.stream()
+                .map(item -> item.getVolume() != null ? new BigDecimal(item.getVolume().toString()) : BigDecimal.ZERO)
+                .reduce(BigDecimal.ZERO, BigDecimal::add);
+        long finalVolume = volume.divide(new BigDecimal("1000"), 0, RoundingMode.HALF_UP).longValue();
+        map.put("volume",finalVolume);
         //绱瀹㈡埛
         Long count = customerMapper.selectCount(null);
-        map.put("customer", count);
+        map.put("customer",count);
         return map;
     }
 

--
Gitblit v1.9.3