From 6fb679bcc7d1a4fda409b2ef4c811255473179be Mon Sep 17 00:00:00 2001 From: liweidong-hj Date: Mon, 19 Jan 2026 16:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/Impl/LdTwoOutStorageServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nov/KgLowDurable/service/Impl/LdTwoOutStorageServiceImpl.java b/src/main/java/com/nov/KgLowDurable/service/Impl/LdTwoOutStorageServiceImpl.java index 7a3778f..d22c7b9 100644 --- a/src/main/java/com/nov/KgLowDurable/service/Impl/LdTwoOutStorageServiceImpl.java +++ b/src/main/java/com/nov/KgLowDurable/service/Impl/LdTwoOutStorageServiceImpl.java @@ -23,6 +23,7 @@ import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; import java.math.BigDecimal; +import java.math.RoundingMode; import java.util.*; import java.util.stream.Collectors; @@ -246,7 +247,7 @@ public class LdTwoOutStorageServiceImpl extends ServiceImpl { LdTwoInventoryVO vo = new LdTwoInventoryVO(); BeanUtils.copyProperties(form, vo); - vo.setInventory(form.getNum()); + vo.setInventory(form.getNum().setScale(0, RoundingMode.DOWN)); return vo; }) .collect(Collectors.toList());