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());