From c732ccc1142f54fb32649c5d062757880a84b003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Fri, 1 Aug 2025 15:22:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A4=84=E7=90=86=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java b/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java index 72fa17d..bdcdb61 100644 --- a/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java +++ b/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java @@ -339,7 +339,7 @@ public class ChannelCtrlService { throw new IllegalArgumentException("Formulation 或其字段 volume/revolutions 不能为空"); } Integer pumpConversionFactor = systemConfigService.getValueByKeyToInteger(SystemConfigKey.PUMP_CONVERSION_FACTOR); - double deltaRevolutions = (afterPosition - beforePosition) / pumpConversionFactor; + int deltaRevolutions = (int) (((afterPosition - beforePosition) / pumpConversionFactor)); double targetVolume = formulation.getVolume(); double targetRevs = formulation.getRevolutions(); if (targetRevs == 0) {