From acb65864a2d0f5ad753ccceb87e04a4c224737b7 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 14:45:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=AE=A1=E7=AE=97=E5=AE=9E=E9=99=85?= =?UTF-8?q?=E5=87=BA=E6=B6=B2=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iflytop/handacid/app/service/ChannelCtrlService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 6e0a5b3..72fa17d 100644 --- a/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java +++ b/src/main/java/com/iflytop/handacid/app/service/ChannelCtrlService.java @@ -339,9 +339,9 @@ public class ChannelCtrlService { throw new IllegalArgumentException("Formulation 或其字段 volume/revolutions 不能为空"); } Integer pumpConversionFactor = systemConfigService.getValueByKeyToInteger(SystemConfigKey.PUMP_CONVERSION_FACTOR); - double deltaRevolutions = afterPosition - beforePosition; - double targetVolume = formulation.getVolume() / pumpConversionFactor; - double targetRevs = formulation.getRevolutions() / pumpConversionFactor; + double deltaRevolutions = (afterPosition - beforePosition) / pumpConversionFactor; + double targetVolume = formulation.getVolume(); + double targetRevs = formulation.getRevolutions(); if (targetRevs == 0) { throw new IllegalArgumentException("Formulation.revolutions 不能为 0"); }